Skip to content

Commit 5cf1774

Browse files
Andrew JonesMarc Zyngier
authored andcommitted
KVM: arm64: selftests: get-reg-list: actually enable pmu regs in pmu sublist
We reworked get-reg-list to make it easier to enable optional register sublists by parametrizing their vcpu feature flags as well as making other generalizations. That was all to make sure we enable the PMU registers when we want to test them. Somehow we forgot to actually include the PMU feature flag in the PMU sublist description though! Do that now. Fixes: 313673b ("KVM: arm64: selftests: get-reg-list: Split base and pmu registers") Signed-off-by: Andrew Jones <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent bac0b13 commit 5cf1774

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testing/selftests/kvm/aarch64/get-reg-list.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,8 @@ static __u64 sve_rejects_set[] = {
10191019
#define VREGS_SUBLIST \
10201020
{ "vregs", .regs = vregs, .regs_n = ARRAY_SIZE(vregs), }
10211021
#define PMU_SUBLIST \
1022-
{ "pmu", .regs = pmu_regs, .regs_n = ARRAY_SIZE(pmu_regs), }
1022+
{ "pmu", .capability = KVM_CAP_ARM_PMU_V3, .feature = KVM_ARM_VCPU_PMU_V3, \
1023+
.regs = pmu_regs, .regs_n = ARRAY_SIZE(pmu_regs), }
10231024
#define SVE_SUBLIST \
10241025
{ "sve", .capability = KVM_CAP_ARM_SVE, .feature = KVM_ARM_VCPU_SVE, .finalize = true, \
10251026
.regs = sve_regs, .regs_n = ARRAY_SIZE(sve_regs), \

0 commit comments

Comments
 (0)