KVM: arm64: nv: Add switching support for HFGxTR/HDFGxTR
authorMarc Zyngier <maz@kernel.org>
Tue, 15 Aug 2023 18:38:59 +0000 (19:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 17 Aug 2023 09:00:28 +0000 (10:00 +0100)
commitd4d2dacc7cddc37aaa7c6eed8665d533d1037e1e
tree8c30755fbd4aa3659a3d84adfee775170d903336
parentea3b27d8dea081f1693b310322ae71fa75d1875b
KVM: arm64: nv: Add switching support for HFGxTR/HDFGxTR

Now that we can evaluate the FGT registers, allow them to be merged
with the hypervisor's own configuration (in the case of HFG{RW}TR_EL2)
or simply set for HFGITR_EL2, HDGFRTR_EL2 and HDFGWTR_EL2.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Jing Zhang <jingzhangos@google.com>
Link: https://lore.kernel.org/r/20230815183903.2735724-26-maz@kernel.org
arch/arm64/kvm/hyp/include/hyp/switch.h