diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2017-12-04 21:35:28 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-12-14 09:26:52 +0100 |
commit | bcdec41cefbea525ad424050650acb0f2eed1378 (patch) | |
tree | a1dd3c7c025f5bc1dc1811d9bcace4bba063fca3 /virt/kvm/kvm_main.c | |
parent | 875656fe0c8473c544860d557ca1512753d6aeef (diff) | |
download | blackbird-obmc-linux-bcdec41cefbea525ad424050650acb0f2eed1378.tar.gz blackbird-obmc-linux-bcdec41cefbea525ad424050650acb0f2eed1378.zip |
KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_get_sregs
Move vcpu_load() and vcpu_put() into the architecture specific
implementations of kvm_arch_vcpu_ioctl_get_sregs().
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
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.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index e25c1a1a4120..4c2f6a4d1852 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2612,9 +2612,7 @@ out_free1: r = -ENOMEM; if (!kvm_sregs) goto out; - vcpu_load(vcpu); r = kvm_arch_vcpu_ioctl_get_sregs(vcpu, kvm_sregs); - vcpu_put(vcpu); if (r) goto out; r = -EFAULT; |