summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.h
diff options
context:
space:
mode:
authorNadav Amit <namit@cs.technion.ac.il>2014-09-18 23:39:43 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-24 16:07:52 +0400
commit040c8dc8a5afa7364bb8bb5b1b76c30007d6be14 (patch)
tree9686489a905a31c8eccbd10e3c3bb83eca8d88e9 /arch/x86/kvm/x86.h
parent77c3913b74212a86027d311f5e81625736816620 (diff)
downloadlinux-040c8dc8a5afa7364bb8bb5b1b76c30007d6be14.tar.xz
KVM: x86: emulating descriptor load misses long-mode case
In 64-bit mode a #GP should be delivered to the guest "if the code segment descriptor pointed to by the selector in the 64-bit gate doesn't have the L-bit set and the D-bit clear." - Intel SDM "Interrupt 13—General Protection Exception (#GP)". This patch fixes the behavior of CS loading emulation code. Although the comment says that segment loading is not supported in long mode, this function is executed in long mode, so the fix is necassary. Signed-off-by: Nadav Amit <namit@cs.technion.ac.il> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.h')
0 files changed, 0 insertions, 0 deletions