Commit bca1fa63 authored by Marc Zyngier's avatar Marc Zyngier Committed by Will Deacon
Browse files

UPSTREAM: KVM: arm64: Handle all ID registers trapped for a protected VM



A protected VM accessing ID_AA64ISAR2_EL1 gets punished with an UNDEF,
while it really should only get a zero back if the register is not
handled by the hypervisor emulation (as mandated by the architecture).

Introduce all the missing ID registers (including the unallocated ones),
and have them to return 0.

Reported-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220609121223.2551-3-will@kernel.org


(cherry picked from commit fa7a1721)
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Bug: 233587962
Bug: 233588291
Change-Id: Ibcb99e561e10e0bfbf2578080b9bbef50501d9a8
parent 28ab8fd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment