KVM: VMX: fix emulation of invalid guest state.
authorGleb Natapov <gleb@redhat.com>
Thu, 20 Dec 2012 14:57:45 +0000 (16:57 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 2 Jan 2013 21:36:29 +0000 (19:36 -0200)
commitd99e415275dd3f757b75981adad8645cdc26da45
tree5a5c5c21c22aba3a33d60a6e3ea50f7d4a81453a
parent89efbed02cfd7e9ce3324de0b44a70ee1c716fac
KVM: VMX: fix emulation of invalid guest state.

Currently when emulation of invalid guest state is enable
(emulate_invalid_guest_state=1) segment registers are still fixed for
entry to vm86 mode some times. Segment register fixing is avoided in
enter_rmode(), but vmx_set_segment() still does it unconditionally.
The patch fixes it.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c