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

From: Marc Zyngier

Date: Tue Oct 06 2026 - 05:22:15 EST


On Mon, 05 Oct 2026 10:07:42 +0100,
Suzuki K Poulose <suzuki.poulose@xxxxxxx> 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@xxxxxxx>
> ---
> 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.