]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Hoist PMUv3 check into KVM_ARM_VCPU_INIT ioctl handler
authorOliver Upton <oliver.upton@linux.dev>
Wed, 20 Sep 2023 19:50:30 +0000 (19:50 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 21 Sep 2023 18:13:28 +0000 (18:13 +0000)
commit9116db11feb521d9eaa850d3a6a8b713f59c6971
tree1a04dfc7d9fbbe4399a9dbcbf29cd99b0f51a90b
parentef150908b6bd80a54126dbec324bd63a24a5628a
KVM: arm64: Hoist PMUv3 check into KVM_ARM_VCPU_INIT ioctl handler

Test that the system supports PMUv3 before ever getting to
kvm_reset_vcpu().

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/r/20230920195036.1169791-3-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/arm.c
arch/arm64/kvm/reset.c