]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: task switch: use seg regs provided by subarch instead of reading from GDT
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 16 Jul 2008 22:07:11 +0000 (19:07 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Jul 2008 08:34:09 +0000 (11:34 +0300)
commit29315d8a39345e8b49897587f3a73a4bd31c776c
tree2f116fe9d97f602359f45a55832cb6621d451b76
parentb07d203fb3bf75c904802df7107aa4853aecf2c8
KVM: task switch: use seg regs provided by subarch instead of reading from GDT

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>
arch/x86/kvm/x86.c