]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: set NM intercept when enabling CR0.TS in the guest
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 29 Jan 2008 12:01:27 +0000 (13:01 +0100)
committerAvi Kivity <avi@qumranet.com>
Mon, 3 Mar 2008 09:20:21 +0000 (11:20 +0200)
commit0b9e6aa9bd1c5eb0b85263bfc0d16a12a7d9b9b5
tree3e9e8030bad6c3ef263edbe94b23469333238123
parent115820de9a3fe7111097f15065f3383c13745ee9
KVM: SVM: set NM intercept when enabling CR0.TS in the guest

Explicitly enable the NM intercept in svm_set_cr0 if we enable TS in the guest
copy of CR0 for lazy FPU switching. This fixes guest SMP with Linux under SVM.
Without that patch Linux deadlocks or panics right after trying to boot the
other CPUs.

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