]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: selftests: Filter ZCR_EL2 in get-reg-list
authorMark Brown <broonie@kernel.org>
Thu, 23 Oct 2025 23:43:39 +0000 (00:43 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Oct 2025 16:13:27 +0000 (16:13 +0000)
commita186fbcfd845699d51809f7c7e54cf997fe32820
tree1cfd5648f2a01422102e1cc0fcff6df8e79c298f
parent92e781c93ebe75e39ecdf78fb8ef1fdf1b63a9f8
KVM: arm64: selftests: Filter ZCR_EL2 in get-reg-list

get-reg-list includes ZCR_EL2 in the list of EL2 registers that it looks
for when NV is enabled but does not have any feature gate for this register,
meaning that testing any combination of features that includes EL2 but does
not include SVE will result in a test failure due to a missing register
being reported:

| The following lines are missing registers:
|
| ARM64_SYS_REG(3, 4, 1, 2, 0),

Add ZCR_EL2 to feat_id_regs so that the test knows not to expect to see it
without SVE being enabled.

Fixes: 3a90b6f27964 ("KVM: arm64: selftests: get-reg-list: Add base EL2 registers")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20251024-kvm-arm64-get-reg-list-zcr-el2-v1-1-0cd0ff75e22f@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/arm64/get-reg-list.c