KVM: arm64: pkvm: Use the mm_ops indirection for cache maintenance
authorMarc Zyngier <maz@kernel.org>
Fri, 14 Jan 2022 08:57:58 +0000 (08:57 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 14 Jan 2022 14:12:23 +0000 (14:12 +0000)
commit094d00f8ca58c5d29b25e23b4daaed1ff1f13b41
tree77abdba59e80ad7430fa8ff1ddeb0d52f8e89d65
parent1c53a1ae36120997a82f936d044c71075852e521
KVM: arm64: pkvm: Use the mm_ops indirection for cache maintenance

CMOs issued from EL2 cannot directly use the kernel helpers,
as EL2 doesn't have a mapping of the guest pages. Oops.

Instead, use the mm_ops indirection to use helpers that will
perform a mapping at EL2 and allow the CMO to be effective.

Fixes: 25aa28691bb9 ("KVM: arm64: Move guest CMOs to the fault handlers")
Reviewed-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220114125038.1336965-1-maz@kernel.org
arch/arm64/kvm/hyp/pgtable.c