Thread (7 messages) flat view 7 messages, 3 authors, 8h ago
HOTtoday

Revision v3 of 2 in this series.

Revisions (2)
  1. v2 [diff vs current]
  2. v3 current

[PATCH v3 0/2] KVM: arm64: nv: Shadow S2 life-cycle fixes

From: Marc Zyngier <maz@kernel.org>
Date: 2026-08-21 16:18:34
Also in: kvmarm

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help