[PATCH V4 2/2] KVM: selftests: Change MDSCR_EL1 register holding variables as uint64_t

Anshuman Khandual anshuman.khandual at arm.com
Wed Jun 11 20:35:47 PDT 2025


Change MDSCR_EL1 register holding local variables as uint64_t that reflects
its true register width as well.

Cc: Marc Zyngier <maz at kernel.org>
Cc: Oliver Upton <oliver.upton at linux.dev>
Cc: Joey Gouly <joey.gouly at arm.com>
Cc: kvm at vger.kernel.org
Cc: kvmarm at lists.linux.dev
Cc: linux-kernel at vger.kernel.org
Cc: linux-kselftest at vger.kernel.org
Cc: linux-arm-kernel at lists.infradead.org
Reviewed-by: Ada Couprie Diaz <ada.coupriediaz at arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual at arm.com>
---
 tools/testing/selftests/kvm/arm64/debug-exceptions.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/kvm/arm64/debug-exceptions.c b/tools/testing/selftests/kvm/arm64/debug-exceptions.c
index c7fb55c9135b..e34963956fbc 100644
--- a/tools/testing/selftests/kvm/arm64/debug-exceptions.c
+++ b/tools/testing/selftests/kvm/arm64/debug-exceptions.c
@@ -140,7 +140,7 @@ static void enable_os_lock(void)
 
 static void enable_monitor_debug_exceptions(void)
 {
-	uint32_t mdscr;
+	uint64_t mdscr;
 
 	asm volatile("msr daifclr, #8");
 
@@ -223,7 +223,7 @@ void install_hw_bp_ctx(uint8_t addr_bp, uint8_t ctx_bp, uint64_t addr,
 
 static void install_ss(void)
 {
-	uint32_t mdscr;
+	uint64_t mdscr;
 
 	asm volatile("msr daifclr, #8");
 
-- 
2.25.1




More information about the linux-arm-kernel mailing list