commit | 0647f4aa8c58a7e5adb873b485c83e0c93d9c6d1 | [log] [tgz] |
---|---|---|
author | Gleb Natapov <gleb@redhat.com> | Wed Dec 12 19:10:50 2012 +0200 |
committer | Gleb Natapov <gleb@redhat.com> | Sun Dec 23 14:00:47 2012 +0200 |
tree | 0a9689713119e36d5f99665fb70918baca405103 | |
parent | 07f42f5f25dc214a33214159fc8b62b984b713eb [diff] |
KVM: VMX: relax check for CS register in rmode_segment_valid() rmode_segment_valid() checks if segment descriptor can be used to enter vm86 mode. VMX spec mandates that in vm86 mode CS register will be of type data, not code. Lets allow guest entry with vm86 mode if the only problem with CS register is incorrect type. Otherwise entire real mode will be emulated. Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>