KVM: arm64: Reload stage-2 for VMID change on VHE
authorMarc Zyngier <maz@kernel.org>
Wed, 18 Oct 2023 23:32:10 +0000 (23:32 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 20 Oct 2023 17:52:01 +0000 (17:52 +0000)
commit5eba523e1e5e83d2c1a282c3c488d98b990333c2
treefc4d2860473f082c2db9349d91560e5a3e300be5
parent4288ff7ba195f49138eec0d9c4ff8c049714e918
KVM: arm64: Reload stage-2 for VMID change on VHE

Naturally, a change to the VMID for an MMU implies a new value for
VTTBR. Reload on VMID change in anticipation of loading stage-2 on
vcpu_load() instead of every guest entry.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231018233212.2888027-4-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/vmid.c