summaryrefslogtreecommitdiff
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2017-12-04 23:35:30 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2017-12-14 11:26:54 +0300
commitfd2325612c1493c85cce89ea16b2396baca83311 (patch)
treeb2d82a8da7af6431d198b9de99a2e137f7115e9d /virt/kvm/kvm_main.c
parentb4ef9d4e8cb8938e6c0aa3be672b0aeeb791ecf3 (diff)
downloadlinux-fd2325612c1493c85cce89ea16b2396baca83311.tar.xz
KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_get_mpstate
Move vcpu_load() and vcpu_put() into the architecture specific implementations of kvm_arch_vcpu_ioctl_get_mpstate(). 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/kvm/kvm_main.c')
-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 e04a216bcd14..8e2f582417c3 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2634,9 +2634,7 @@ out_free1:
case KVM_GET_MP_STATE: {
struct kvm_mp_state mp_state;
- vcpu_load(vcpu);
r = kvm_arch_vcpu_ioctl_get_mpstate(vcpu, &mp_state);
- vcpu_put(vcpu);
if (r)
goto out;
r = -EFAULT;