]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 3 Feb 2022 09:28:51 +0000 (10:28 +0100)
commitee7117ea57437af18d177022c202105c22b834ad
treee8c0de4c5569bda88ba0aa5225ed7622bf175288
parentbe1031015c32712a7b8a67df1b18468e9bf3adb5
KVM: arm64: pkvm: Use the mm_ops indirection for cache maintenance

BugLink: https://bugs.launchpad.net/bugs/1959879
[ Upstream commit 094d00f8ca58c5d29b25e23b4daaed1ff1f13b41 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/arm64/kvm/hyp/pgtable.c