aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/x86.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@qumranet.com>2007-11-15 11:38:46 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:05 -0500
commit9327fd1195b77e67b86db8c1c1c4c4f7db009b00 (patch)
tree749d44bc2ed554280acd6f807d95569cd695c496 /drivers/kvm/x86.c
parent4cee576493b6abc95cc7447a65f1b9d2b40b8f20 (diff)
KVM: Make unloading of FPU state when putting vcpu arch-independent
Instead of having each architecture do it individually, we do this in the arch-independent code (just x86 as of now). [avi: add svm to the mix, which was added to mainline during the 2.6.24-rc process] Signed-off-by: Amit Shah <amit.shah@qumranet.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/x86.c')
-rw-r--r--drivers/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/x86.c b/drivers/kvm/x86.c
index fdc7632d7620..9618fcba887e 100644
--- a/drivers/kvm/x86.c
+++ b/drivers/kvm/x86.c
@@ -678,6 +678,7 @@ void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
678void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) 678void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu)
679{ 679{
680 kvm_x86_ops->vcpu_put(vcpu); 680 kvm_x86_ops->vcpu_put(vcpu);
681 kvm_put_guest_fpu(vcpu);
681} 682}
682 683
683static void cpuid_fix_nx_cap(struct kvm_vcpu *vcpu) 684static void cpuid_fix_nx_cap(struct kvm_vcpu *vcpu)