KVM: PPC: Book3S: Remove load/put vcpu for KVM_GET_REGS/KVM_SET_REGS
authorSimon Guo <[email protected]>
Wed, 23 May 2018 07:02:11 +0000 (15:02 +0800)
committerPaul Mackerras <[email protected]>
Fri, 1 Jun 2018 00:31:03 +0000 (10:31 +1000)
commit8f04412699e42c7fb5f68a847b1531ad3211b523
tree8baffd67e7697cc2762cd825bcce2723860289ac
parentc8235c2891d0561960fd5d62fdda58cfb6e503b2
KVM: PPC: Book3S: Remove load/put vcpu for KVM_GET_REGS/KVM_SET_REGS

In both HV and PR KVM, the KVM_SET_REGS/KVM_GET_REGS ioctl should
be able to perform without the vcpu loaded.

Since the vcpu mutex locking/unlock has been moved out of vcpu_load()
/vcpu_put(), KVM_SET_REGS/KVM_GET_REGS don't need to do ioctl with
the vcpu loaded anymore. This patch removes vcpu_load()/vcpu_put()
from KVM_SET_REGS/KVM_GET_REGS ioctl.

Signed-off-by: Simon Guo <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
arch/powerpc/kvm/book3s.c