Re: [PATCH] KVM: arm64: Give AArch32 guests' CLIDR reads the vCPU's CLIDR_EL1
From: Marc Zyngier
Date: Fri Dec 04 2026 - 10:36:33 EST
On Tue, 01 Dec 2026 22:50:16 +0000, Ben Avison wrote:
> Since commit 7af0c2534f4c ("KVM: arm64: Normalize cache configuration"),
> access_clidr() returns __vcpu_sys_reg(vcpu, r->reg), but the cp15_regs[]
> entry for the AArch32 CLIDR (MRC p15, 1, <Rt>, c0, c0, 1) names no
> register, so r->reg is 0 (__INVALID_SYSREG__) and a 32-bit EL1 guest
> reads 0: no caches, LoC 0. The register is trapped (HCR_EL2.TID2, or
> TID4 with FEAT_EVT), so the hardware's value never shows either. The
> AArch32 CLIDR is architecturally mapped to CLIDR_EL1[31:0], so it should
> read what the vCPU's CLIDR_EL1 holds, as 64-bit guests already do. Name
> CLIDR_EL1 in the entry, as its neighbour CSSELR does with CSSELR_EL1.
>
> [...]
Applied to fixes, thanks!
[1/1] KVM: arm64: Give AArch32 guests' CLIDR reads the vCPU's CLIDR_EL1
commit: 1eca9d70e9e04e5cbd3a9efc927013b4e94ad889
Cheers,
M.
--
Without deviation from the norm, progress is not possible.