]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
KVM: task switch: use seg regs provided by subarch instead of reading from GDT
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 13 Aug 2008 15:00:27 +0000 (18:00 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Aug 2008 18:05:06 +0000 (11:05 -0700)
commit3756d6be6e5ee6a66aa18a8798eab81b56d1fe68
tree911358510da01161c55d76c89a7a5fb27901cef5
parent2594ba0ab5aeb2222e5a6aa00b117b07adb9d89d
KVM: task switch: use seg regs provided by subarch instead of reading from GDT

(cherry-picked from commit 34198bf8426276a2ce1e97056a0f02d43637e5ae)

There is no guarantee that the old TSS descriptor in the GDT contains
the proper base address. This is the case for Windows installation's
reboot-via-triplefault.

Use guest registers instead. Also translate the address properly.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86.c