]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: VMX: fix DPL during entry to protected mode
authorGleb Natapov <gleb@redhat.com>
Tue, 11 Dec 2012 13:14:10 +0000 (15:14 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Dec 2012 23:00:27 +0000 (21:00 -0200)
commita4d3326c2de46fd7bcc47d1e8786efccfc152f81
tree62f62c8db52b530949001e3ca39c684da9387976
parent0ca0d818cbcbcac75a02833861b6fc42a98b904e
KVM: VMX: fix DPL during entry to protected mode

On CPUs without support for unrestricted guests DPL cannot be smaller
than RPL for data segments during guest entry, but this state can occurs
if a data segment selector changes while vcpu is in real mode to a value
with lowest two bits != 00. Fix that by forcing DPL == RPL on transition
to protected mode.

This is a regression introduced by c865c43de66dc97.

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