]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a5800389c05835d841fc9f1f66446be8fae0f24
treea7478c30a118a490b2ba1e9bac0c6c7af0bea24e
parent228e9bb420a11de0d0ccc1b21039fb7fd4c40f34
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