]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Don't map 'kvm_vgic_global_state' at EL2 with pKVM
authorWill Deacon <will@kernel.org>
Tue, 22 Oct 2024 14:40:16 +0000 (15:40 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 23 Oct 2024 23:22:19 +0000 (23:22 +0000)
commit8aaf3f7dce74605a2e9f31bd421825a996ac7de3
tree0c19c4bf877741d0b12a5f1ce4c2ff7b61b47c70
parentad361ed4771da6aebb3ca6184a81ae4b8ad9f0b6
KVM: arm64: Don't map 'kvm_vgic_global_state' at EL2 with pKVM

Now that 'kvm_vgic_global_state' is no longer needed for ICC_CTLR_EL1
emulation on machines with a broken SEIS implementation, drop the
pKVM hypervisor mapping of the page.

Note that kvm_vgic_global_state is still mapped in non-protected
hypervisor configurations (i.e. {n,h}VHE) through the rodata section
mapping.

Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Will Deacon <will@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241022144016.27350-3-will@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/nvhe/setup.c