diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2017-12-04 21:35:26 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-12-14 09:26:51 +0100 |
commit | 1fc9b76b3dd2c57ca0fe42742043a5c3cbdc41c1 (patch) | |
tree | cd354bacf1cd3e842b7a7bea471ee84d15860b07 /virt/kvm/kvm_main.c | |
parent | KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_run (diff) | |
download | linux-1fc9b76b3dd2c57ca0fe42742043a5c3cbdc41c1.tar.xz linux-1fc9b76b3dd2c57ca0fe42742043a5c3cbdc41c1.zip |
KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_get_regs
Move vcpu_load() and vcpu_put() into the architecture specific
implementations of kvm_arch_vcpu_ioctl_get_regs().
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 '')
-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 0b149827570c..6dab2e6f8321 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2583,9 +2583,7 @@ static long kvm_vcpu_ioctl(struct file *filp, kvm_regs = kzalloc(sizeof(struct kvm_regs), GFP_KERNEL); if (!kvm_regs) goto out; - vcpu_load(vcpu); r = kvm_arch_vcpu_ioctl_get_regs(vcpu, kvm_regs); - vcpu_put(vcpu); if (r) goto out_free1; r = -EFAULT; |