]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: vgic-v3: Fix GICv3 trapping in protected mode
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Nov 2025 17:24:55 +0000 (17:24 +0000)
committerOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 22:29:11 +0000 (14:29 -0800)
commit567ebfedb5bd204a8ce6a11695f02730f1bf57f4
tree6a72e3a55067bd9ba19dca09109ffa8fce033f0e
parent8d3dfab1d305d61359454d9c09b736f077a9fce4
KVM: arm64: vgic-v3: Fix GICv3 trapping in protected mode

As we are about to start trapping a bunch of extra things, augment
the pKVM trap description with all the registers trapped by ICH_HCR_EL2.TC,
making them legal instead of resulting in a UNDEF injection in the guest.

While we're at it, ensure that pKVM captures the vgic model so that it
can be checked by the emulation code.

Tested-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Tested-by: Mark Brown <broonie@kernel.org>
Link: https://msgid.link/20251120172540.2267180-6-maz@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/kvm/hyp/nvhe/pkvm.c
arch/arm64/kvm/hyp/nvhe/sys_regs.c