KVM: x86: Loading segments on 64-bit mode may be wrong
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 2 Jun 2014 15:34:05 +0000 (18:34 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 15:46:16 +0000 (17:46 +0200)
commit2eedcac8a97cef43c9c5236398fc8c9d0fd9cc0c
tree8cb8d3ed13da28adb72edb2013d5f81c0d445c81
parente37a75a13cdae5deaa2ea2cbf8d55b5dd08638b6
KVM: x86: Loading segments on 64-bit mode may be wrong

The current emulator implementation ignores the high 32 bits of the base in
long-mode.  During segment load from the LDT, the base of the LDT is calculated
incorrectly and may cause the wrong segment to be loaded.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c