KVM: arm64: Add nPIR{E0}_EL1 to HFG traps
authorJoey Gouly <joey.gouly@arm.com>
Thu, 12 Oct 2023 12:34:58 +0000 (13:34 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 12 Oct 2023 15:38:50 +0000 (16:38 +0100)
commit0fd76865006dfdc3cdc6dade538ca2257a847364
treed8fe85d750e6a5530f198e86d39463a80791f627
parent60197a4631b907b30343e25af702257d92f359cf
KVM: arm64: Add nPIR{E0}_EL1 to HFG traps

nPIR_EL1 and nPIREO_EL1 are part of the 'reverse polarity' set of bits, set
them so that we disable the traps for a guest. Unfortunately, these bits
are not yet described in the ARM ARM, but only live in the XML description.

Also add them to the NV FGT forwarding infrastructure.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Fixes: e930694e6145 ("KVM: arm64: Restructure FGT register switching")
Cc: Oliver Upton <oliver.upton@linux.dev>
[maz: add entries to the NV FGT array, commit message update]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231012123459.2820835-2-joey.gouly@arm.com
arch/arm64/include/asm/kvm_arm.h
arch/arm64/kvm/emulate-nested.c