KVM: arm64: Key use of VHE instructions in nVHE code off ARM64_KVM_HVHE
authorMarc Zyngier <maz@kernel.org>
Fri, 9 Jun 2023 16:21:52 +0000 (17:21 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 12 Jun 2023 23:17:23 +0000 (23:17 +0000)
commit6f617d3aa643e4ed6929f5b582759f4a73804034
treee0e61c450a4f57e82f79913cf0ce302e59f166fe
parent57e784b4079e9499ea1bafd56a0d422252aa2401
KVM: arm64: Key use of VHE instructions in nVHE code off ARM64_KVM_HVHE

We can now start with the fun stuff: if we enable VHE *only* for
the hypervisor, we need to generate the VHE instructions when
accessing the system registers.

For this, reporpose the alternative sequence to be keyed off
ARM64_KVM_HVHE in the nVHE hypervisor code, and only there.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230609162200.2024064-10-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_hyp.h