KVM: SVM: Make lazy FPU switching work with nested svm
commit66a562f7e2576cde384ec813b481404d8f54f4c6
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 19 Feb 2010 15:23:08 +0000 (19 16:23 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:28 +0000 (25 12:34 +0300)
treeea64df4f210caf8b0e375932a422174f95f658b8
parent06fc7772690dec2a0e3814633357babf8f63af41
KVM: SVM: Make lazy FPU switching work with nested svm

The new lazy fpu switching code may disable cr0 intercepts
when running nested. This is a bug because the nested
hypervisor may still want to intercept cr0 which will break
in this situation. This patch fixes this issue and makes
lazy fpu switching working with nested svm.

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