]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: arm64: Correct feature test for S1PIE in get-reg-list
authorMark Brown <broonie@kernel.org>
Wed, 31 Jul 2024 16:21:13 +0000 (17:21 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 7 Aug 2024 19:13:20 +0000 (19:13 +0000)
commitad518452fd263766946346324810f14bd8bb8b34
treeb6ff1db8ea41f4735c22b012dbdf7baad8a8dd8d
parent7e814a20f6da2bd2044b1a4682dd92a6f0df5a92
KVM: selftests: arm64: Correct feature test for S1PIE in get-reg-list

The ID register for S1PIE is ID_AA64MMFR3_EL1.S1PIE which is bits 11:8 but
get-reg-list uses a shift of 4, checking SCTLRX instead. Use a shift of 8
instead.

Fixes: 5f0419a0083b ("KVM: selftests: get-reg-list: add Permission Indirection registers")
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20240731-kvm-arm64-fix-s1pie-test-v1-1-a9253f3b7db4@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/aarch64/get-reg-list.c