[PATCH v2] KVM: arm64: Preserve GPRs for AArch32 CP64 reads generating an UNDEF
Oliver Upton
oupton at kernel.org
Wed Aug 12 23:49:44 PDT 2026
On Sun, 02 Aug 2026 20:22:22 +0200, Karl Mehltretter wrote:
> kvm_handle_cp_64() only seeds params.regval for writes. If a CP64 read is
> decoded but UNDEFs, emulate_cp() still returns handled and the caller
> writes params.regval back to Rt/Rt2.
>
> This can happen for PMU counter read accesses generating an UNDEF. KVM
> injects the exception into the guest, so the MRRC GPRs must remain
> unchanged.
>
> [...]
Applied to next, thanks!
[1/1] KVM: arm64: Preserve GPRs for AArch32 CP64 reads generating an UNDEF
https://git.kernel.org/kvmarm/kvmarm/c/47746d4b7436
--
Best,
Oliver
More information about the linux-arm-kernel
mailing list