]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Honor guest requested traps in GICv3 emulation
authorMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 15:25:14 +0000 (16:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 17:32:55 +0000 (18:32 +0100)
commit59af011d001b836aa52a3dbb5c54daf6fffb511e
tree3a13d8ca9fea0fc7317208fe966f2d0bb8b4d23c
parent15a1ba8d049855c5ae454c84e6dd2d7657bacbe8
KVM: arm64: Honor guest requested traps in GICv3 emulation

On platforms that require emulation of the CPU interface, we still
need to honor the traps requested by the guest (ICH_HCR_EL2 as well
as the FGTs for ICC_IGRPEN{0,1}_EL1.

Check for these bits early and lail out if any trap applies.

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