summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2017-12-04 21:35:34 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2017-12-14 09:26:56 +0100
commit1393123e1e24aba96413d351b9546086ea07504d (patch)
treec3ea1f5937dde196f3f4c3053a1ad932a32f9dc8 /virt
parent66b5656222990f1a536f5900ccd98539f9cf231f (diff)
downloadlinux-1393123e1e24aba96413d351b9546086ea07504d.tar.gz
linux-1393123e1e24aba96413d351b9546086ea07504d.tar.bz2
linux-1393123e1e24aba96413d351b9546086ea07504d.zip
KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_get_fpu
Move vcpu_load() and vcpu_put() into the architecture specific implementations of kvm_arch_vcpu_ioctl_get_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 b44762fcaf84..5791aa687233 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2704,9 +2704,7 @@ out_free1:
r = -ENOMEM;
if (!fpu)
goto out;
- vcpu_load(vcpu);
r = kvm_arch_vcpu_ioctl_get_fpu(vcpu, fpu);
- vcpu_put(vcpu);
if (r)
goto out;
r = -EFAULT;