]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
KVM: SVM: Fix lazy FPU switching
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 21 Jan 2008 12:09:33 +0000 (13:09 +0100)
committerAvi Kivity <avi@qumranet.com>
Mon, 3 Mar 2008 09:18:18 +0000 (11:18 +0200)
commit334df50a866ff7e234c9566960997ca5b9d0a382
treeb5fb897acca9ab85ba879f98d5dfafbc69560819
parent038f2f725503b55ab76cfd2645915a85594710fe
KVM: SVM: Fix lazy FPU switching

If the guest writes to cr0 and leaves the TS flag at 0 while vcpu->fpu_active
is also 0, the TS flag in the guest's cr0 gets lost. This leads to corrupt FPU
state an causes Windows Vista 64bit to crash very soon after boot.  This patch
fixes this bug.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Markus Rechberger <markus.rechberger@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/svm.c