]> git.karo-electronics.de Git - karo-tx-linux.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)
commit34198bf8426276a2ce1e97056a0f02d43637e5ae
tree2f116fe9d97f602359f45a55832cb6621d451b76
parent98899aa0e0bf5de05850082be0eb837058c09ea5
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