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/ (local)
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