KVM: VMX: Allow real mode emulation using vm86 with dpl=0
authorAvi Kivity <avi@redhat.com>
Tue, 21 Aug 2012 14:07:02 +0000 (17:07 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 27 Aug 2012 23:02:20 +0000 (20:02 -0300)
commit495e116684cebc5ae625916aba37fc07f345707b
treea7478c30a118a490b2ba1e9bac0c6c7af0bea24e
parentc865c43de66dc973865bda337022f03b6e16c8df
KVM: VMX: Allow real mode emulation using vm86 with dpl=0

Real mode is always entered from protected mode with dpl=0.  Since
the dpl doesn't affect execution, and we already override it to 3
in the vmcs (as vmx requires), we can allow execution in that state.

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