Commit 0c710007 authored by Marc Zyngier's avatar Marc Zyngier Committed by Will Deacon
Browse files

FROMGIT: 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: 25aa2869 ("KVM: arm64: Move guest CMOs to the fault handlers")
Reviewed-by: default avatarQuentin Perret <qperret@google.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220114125038.1336965-1-maz@kernel.org
(cherry picked from commit 094d00f8
 git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git

 fixes)
Bug: 209777660
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Change-Id: Id020c5adb0ce0d02bc6cd344e7d01859539b9f4f
parent eb81e57b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment