KVM: SVM: Restore unconditional cr0 intercept under npt
authorAvi Kivity <avi@redhat.com>
Sun, 10 Jan 2010 10:14:04 +0000 (12:14 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:51 +0000 (12:35 -0300)
commit888f9f3e0cfa32baf05b3840f0248f5502292a0f
tree11f035e747b6e41c227c0ea64bd07800500d296f
parentbff7827479ed004c0394e6e7b35ae601bb1a97ad
KVM: SVM: Restore unconditional cr0 intercept under npt

Currently we don't intercept cr0 at all when npt is enabled.  This improves
performance but requires us to activate the fpu at all times.

Remove this behaviour in preparation for adding selective cr0 intercepts.

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