KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_set_regs
Move vcpu_load() and vcpu_put() into the architecture specific implementations of kvm_arch_vcpu_ioctl_set_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>
This commit is contained in:

committed by
Paolo Bonzini

parent
1fc9b76b3d
commit
875656fe0c
@@ -2603,9 +2603,7 @@ out_free1:
|
||||
r = PTR_ERR(kvm_regs);
|
||||
goto out;
|
||||
}
|
||||
vcpu_load(vcpu);
|
||||
r = kvm_arch_vcpu_ioctl_set_regs(vcpu, kvm_regs);
|
||||
vcpu_put(vcpu);
|
||||
kfree(kvm_regs);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user