]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: selftests: Remove ARM64_FEATURE_FIELD_BITS and its last user
authorBen Horgan <ben.horgan@arm.com>
Tue, 25 Nov 2025 10:12:06 +0000 (10:12 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Nov 2025 18:16:46 +0000 (18:16 +0000)
commitbf09ee918053edec7efeb2f9977b53b02e029553
tree45e8115291f7bb4f7677730b40298c5304e24bde
parenta04fbfb8a175d4904727048b97fcdef12e392ed1
KVM: arm64: selftests: Remove ARM64_FEATURE_FIELD_BITS and its last user

ARM64_FEATURE_FIELD_BITS is set to 4 but not all ID register fields are 4
bits. See for instance ID_AA64SMFR0_EL1. The last user of this define,
ARM64_FEATURE_FIELD_BITS, is the set_id_regs selftest. Its logic assumes
the fields aren't a single bits; assert that's the case and stop using the
define. As there are no more users, ARM64_FEATURE_FIELD_BITS is removed
from the arm64 tools sysreg.h header. A separate commit removes this from
the kernel version of the header.

Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Oliver Upton <oupton@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/arch/arm64/include/asm/sysreg.h
tools/testing/selftests/kvm/arm64/set_id_regs.c