KVM: arm64: Relax invariance of KVM_ARM_VCPU_POWER_OFF
authorOliver Upton <oliver.upton@linux.dev>
Fri, 9 Jun 2023 19:00:45 +0000 (19:00 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 12 Jun 2023 23:08:33 +0000 (23:08 +0000)
commite3c1c0cae31ec9ebfdffeaa2c86ddeba6cf5c74c
treee725ee5e66d771c815385009b5edaab6dd309466
parenta7a2c72ae01483d3923b18ee18c8007de2bc5e20
KVM: arm64: Relax invariance of KVM_ARM_VCPU_POWER_OFF

Allow the value of KVM_ARM_VCPU_POWER_OFF to differ between calls to
KVM_ARM_VCPU_INIT. Userspace can already change the state of the vCPU
through the KVM_SET_MP_STATE ioctl, so making the bit invariant seems
needlessly restrictive.

Link: https://lore.kernel.org/r/20230609190054.1542113-3-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/arm.c