summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2017-12-04 21:35:35 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2017-12-14 09:26:57 +0100
commit6a96bc7fa0cdd96bac2b8298d708a94f8de6f6d4 (patch)
treece8c773ce662332d689cce3409e12faaf79b4b3e /virt
parent1393123e1e24aba96413d351b9546086ea07504d (diff)
downloadlinux-6a96bc7fa0cdd96bac2b8298d708a94f8de6f6d4.tar.gz
linux-6a96bc7fa0cdd96bac2b8298d708a94f8de6f6d4.tar.bz2
linux-6a96bc7fa0cdd96bac2b8298d708a94f8de6f6d4.zip
KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_set_fpu
Move vcpu_load() and vcpu_put() into the architecture specific implementations of kvm_arch_vcpu_ioctl_set_fpu(). Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 5791aa687233..ca0ec9fb72ce 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2720,9 +2720,7 @@ out_free1:
fpu = NULL;
goto out;
}
- vcpu_load(vcpu);
r = kvm_arch_vcpu_ioctl_set_fpu(vcpu, fpu);
- vcpu_put(vcpu);
break;
}
default: