Re: [PATCH v3 0/2] KVM: arm64: nv: Shadow S2 life-cycle fixes
Wei-Lin Chang <[email protected]>
| Newsgroups | dev.linux.lists.kvmarm,org.infradead.lists.linux-arm-kernel |
|---|---|
| Message-ID | <dwwsihz275bzh2ykt7rxj3sdq5wdorqju2fso6o3jf6sn6sxrx@nua7yri24fjc> |
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/[email protected]/ > > 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 <[email protected]>