KVM: arm64: Hoist PAuth checks into KVM_ARM_VCPU_INIT ioctl
authorOliver Upton <oliver.upton@linux.dev>
Wed, 20 Sep 2023 19:50:32 +0000 (19:50 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 21 Sep 2023 18:13:28 +0000 (18:13 +0000)
commitbaa28a53ddbe2d27377b9a4aeff5eb8b706c8d38
treeefe9225443cf468033568a559f056d5ba6c5896c
parentbe9c0c018389e0722a97ac5cd3152afff1111e37
KVM: arm64: Hoist PAuth checks into KVM_ARM_VCPU_INIT ioctl

Test for feature support in the ioctl handler rather than
kvm_reset_vcpu(). Continue to uphold our all-or-nothing policy with
address and generic pointer authentication.

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