From: Marcelo Tosatti Date: Wed, 16 Jul 2008 22:07:11 +0000 (-0300) Subject: KVM: task switch: use seg regs provided by subarch instead of reading from GDT X-Git-Tag: v2.6.27-rc1~57^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34198bf8426276a2ce1e97056a0f02d43637e5ae;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed