]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Hoist NV+SVE check into KVM_ARM_VCPU_INIT ioctl handler
authorOliver Upton <oliver.upton@linux.dev>
Wed, 20 Sep 2023 19:50:34 +0000 (19:50 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 21 Sep 2023 18:13:29 +0000 (18:13 +0000)
commitd99fb82fd35e816b3656141e5dd940dfd00d09fd
treef83d61792e3ede2d9020252978295ee99ee2919b
parent12405b09926f0270f7033ed5293241180ea57343
KVM: arm64: Hoist NV+SVE check into KVM_ARM_VCPU_INIT ioctl handler

Move the feature check out of kvm_reset_vcpu() so we can make the
function succeed uncondtitionally.

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