KVM: arm64: pkvm: Handle GICv3 traps as required
authorMarc Zyngier <maz@kernel.org>
Wed, 13 Oct 2021 12:03:41 +0000 (13:03 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 18 Oct 2021 15:57:09 +0000 (16:57 +0100)
commitcbca19738472be8156d854663ed724b01255c932
tree1ecd09a1fb94abf5dbd3878d6c1f5d49c41674d8
parentf3d5ccabab20c1be5838831f460f320a12e5e2c9
KVM: arm64: pkvm: Handle GICv3 traps as required

Forward accesses to the ICV_*SGI*_EL1 registers to EL1, and
emulate ICV_SRE_EL1 by returning a fixed value.

This should be enough to support GICv3 in a protected guest.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20211013120346.2926621-7-maz@kernel.org
arch/arm64/kvm/hyp/nvhe/sys_regs.c