KVM: VMX: Adjust rflags if in real mode emulation
authorAvi Kivity <avi@redhat.com>
Wed, 12 Aug 2009 12:29:37 +0000 (15:29 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:43 +0000 (10:46 +0300)
commit345dcaa8fde7fa70252d58c862bf41fd2149ca2c
tree7e351dd56f459ab19eaf8f46b5fa94f81006c00f
parent6621fbc2c6add9c9abfc87d7bc9b248ffd307ae3
KVM: VMX: Adjust rflags if in real mode emulation

We set rflags.vm86 when virtualizing real mode to do through vm8086 mode;
so we need to take it out again when reading rflags.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c