diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2017-12-04 21:35:34 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-12-14 09:26:56 +0100 |
commit | 1393123e1e24aba96413d351b9546086ea07504d (patch) | |
tree | c3ea1f5937dde196f3f4c3053a1ad932a32f9dc8 /virt | |
parent | 66b5656222990f1a536f5900ccd98539f9cf231f (diff) | |
download | linux-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.c | 2 |
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; |