]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Make most GICv3 accesses UNDEF if they trap
authorMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 15:25:15 +0000 (16:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 17:32:56 +0000 (18:32 +0100)
commit4a999a1d7ae52592723a9a219aaa7a3406d66dd6
treec7b855f5ff0875d5e574d856a6982b2866fc584c
parent59af011d001b836aa52a3dbb5c54daf6fffb511e
KVM: arm64: Make most GICv3 accesses UNDEF if they trap

We don't expect to trap any GICv3 register for host handling,
apart from ICC_SRE_EL1 and the SGI registers. If they trap,
that's because the guest is playing with us despite being
told it doesn't have a GICv3.

If it does, UNDEF is what it will get.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240827152517.3909653-10-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/vgic-v3-sr.c
arch/arm64/kvm/sys_regs.c
arch/arm64/kvm/sys_regs.h