[PATCH v3 0/2] KVM: arm64: nv: Shadow S2 life-cycle fixes
Wei-Lin Chang
weilin.chang at arm.com
Sun Aug 23 07:07:38 PDT 2026
On Fri, Aug 21, 2026 at 05:18:27PM +0100, Marc Zyngier wrote:
> This is the (hopefully) last revision for this set of fixes for the
> shadow S2 life cycle.
>
> * From v2 [1]
>
> - Fixed the nonsensical type used for allocating the nested S2
> array, switching to kvmalloc_objs() in the process, guaranteeing
> some level of type checking
>
> - Dropped the extra S2 freeing after Wei-Lin pointed out that we are
> guaranteed to run the MMU notifier release callback, ensuring that
> nothing is left behind
>
> - Collected AB from Lorenzo, with thanks.
>
> [1] https://lore.kernel.org/all/20260814103230.858578-1-maz@kernel.org/
>
> Marc Zyngier (2):
> KVM: arm64: nv: Fix life cycle of the nested_mmus array
> KVM: arm64: nv: Delay freeing of shadow S2 structures until VM
> destruction
>
> arch/arm64/include/asm/kvm_host.h | 2 +-
> arch/arm64/include/asm/kvm_nested.h | 3 +-
> arch/arm64/kvm/arm.c | 8 ++-
> arch/arm64/kvm/nested.c | 100 ++++++++++++++--------------
> 4 files changed, 58 insertions(+), 55 deletions(-)
>
> --
> 2.47.3
>
Reviewed-by: Wei-Lin Chang <weilin.chang at arm.com>
More information about the linux-arm-kernel
mailing list