summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/cpuid.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-06-06 18:36:48 +0300
committerAvi Kivity <avi@redhat.com>2012-07-09 14:19:00 +0300
commitd881e6f6cffe3993245963143cab2528f918e071 (patch)
treee5a84dc9865e47e54a2f97fc57d2762bda45c742 /arch/x86/kvm/cpuid.h
parente676505ac96813e8b93170b1f5e5ffe0cf6a2348 (diff)
downloadop-kernel-dev-d881e6f6cffe3993245963143cab2528f918e071.zip
op-kernel-dev-d881e6f6cffe3993245963143cab2528f918e071.tar.gz
KVM: VMX: Return correct CPL during transition to protected mode
In protected mode, the CPL is defined as the lower two bits of CS, as set by the last far jump. But during the transition to protected mode, there is no last far jump, so we need to return zero (the inherited real mode CPL). Fix by reading CPL from the cache during the transition. This isn't 100% correct since we don't set the CPL cache on a far jump, but since protected mode transition will always jump to a segment with RPL=0, it will always work. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud