[PATCH v22 11/23] KVM: arm64: Add VM specific callback for S2 MMU operations

Marc Zyngier maz at kernel.org
Tue Oct 6 02:24:06 PDT 2026


On Mon, 05 Oct 2026 10:07:42 +0100,
Suzuki K Poulose <suzuki.poulose at arm.com> wrote:
> 
> Add VM type specific S2 MMU operation backends which can be initialized per
> VM flavor, to keep the handling cleaner.
> 
> Signed-off-by: Suzuki K Poulose <suzuki.poulose at arm.com>
> ---
> Change since v21:
>  - Define all vm_s2_ops call back. All calls are mandatory.
>  - Define callback for each flavor, disjointing the non-protetcted pKVM and
>    normal KVM (VHE & nVHE) and remove the KVM_PGT_FN() hacks.

It is a bit annoying that we still have part of the operations being
indirected by kvm_vm_s2_ops, and others by KVM_PGT_FN(), which is
still there. I was hoping that we'd have only one indirection. after
this patch.

	M.

-- 
Jazz isn't dead. It just smells funny.



More information about the linux-arm-kernel mailing list