KVM: SVM: set NM intercept when enabling CR0.TS in the guest
commit6b390b6392309b98fd116b57c2926c44975cde26
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 29 Jan 2008 12:01:27 +0000 (29 13:01 +0100)
committerAvi Kivity <avi@qumranet.com>
Mon, 3 Mar 2008 09:20:21 +0000 (3 11:20 +0200)
tree3e9e8030bad6c3ef263edbe94b23469333238123
parent334df50a866ff7e234c9566960997ca5b9d0a382
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