summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFuad Tabba <fuad.tabba@linux.dev>2026-11-02 07:58:42 +0000
committerMarc Zyngier <maz@kernel.org>2026-11-03 11:58:30 +0000
commit2c77a4a3040da8095e052849e2a0a05f598c8601 (patch)
tree07330898b11ef43913559caa09c5b07082e85983 /tools/perf/scripts/python/bin
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
KVM: arm64: Clear the VM's feature bitmap when kvm_setup_vcpu() fails
KVM_ARM_VCPU_INIT records the requested features in the VM-wide bitmap before kvm_setup_vcpu() runs, and leaves them there when setup fails (e.g., HAS_EL2_E2H0 on a host without FEAT_NV1). The PMU attributes read that bitmap before the vCPU is initialized, so after such a failure with PMU_V3 requested, KVM_SET_DEVICE_ATTR on the PMU group no longer returns -ENODEV. Until an INIT has succeeded, every INIT that gets past the feature checks rewrites the bitmap. After that, kvm_vcpu_init_changed() requires the requested features to match it, so the copy is a no-op. Clear the bitmap on failure while KVM_ARCH_FLAG_VCPU_FEATURES_CONFIGURED is clear. Fixes: 427733579744e ("KVM: arm64: Select default PMU in KVM_ARM_VCPU_INIT handler") Suggested-by: Oliver Upton <oupton@kernel.org> Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://patch.msgid.link/20261102075843.2556018-2-fuad.tabba@linux.dev Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions