]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13acacbc8745266e2754e049230ab5d2d61a1d97
tree8cb8d3ed13da28adb72edb2013d5f81c0d445c81
parent0545389c5924a084b553c5d527b49a7589e6e059
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