Re: [PATCH v6 0/7] KVM: arm64: nv: Implement nested stage-2 reverse map

From: Marc Zyngier

Date: Thu Sep 24 2026 - 16:43:04 EST


On Tue, 15 Sep 2026 16:42:58 +0100, Wei-Lin Chang wrote:
> This is v6 of optimizing the shadow s2 mmu unmapping during MMU
> notifiers.
>
> This version fixes a few issues, and adds Marc's space optimization
> for kvm_guest_s2_mapping [1]. Please see the changelog for the details.
>
> Tested by booting L3, and running in-kernel targetted tests described
> in [2]. v5 got some tested-by's from Itaru and Wang (thanks), I didn't
> carry them over since some bugs fixed in v6 are non-obvious. Some
> retest would be much appreciated!
>
> [...]

Applied to next, thanks!

[1/7] KVM: arm64: Use a variable for the canonical IPA in kvm_s2_fault_map()
commit: 3b8ce2b5132ae4eebd81811ffd3bc2395c41ecfd
[2/7] KVM: arm64: nv: Introduce guest stage-2 tracking structures
commit: a6ca6cba59598de94eda90e4b3a4e405621aca90
[3/7] KVM: arm64: nv: Track guest stage-2 mapping creation
commit: c2778d14cd2ff757224715221a2ddff89fc6f127
[4/7] KVM: arm64: nv: Track guest stage-2 mapping removal
commit: 5491980c1a416139ea67faa6c4d52fa1ed0cd4e0
[5/7] KVM: arm64: nv: Avoid full shadow stage-2 unmap
commit: e6084aecaeefe9177280ea74c90127294260d805
[6/7] KVM: arm64: nv: Drop kvm_s2_mmu pointer from kvm_guest_s2_mapping
commit: 2064f15b08485384d4fca892c63a1c1b4f86e9c8
[7/7] KVM: arm64: Refactor kvm_unmap_gfn_range() with common variables
commit: 862fa568078514d0a41bd0946a65c23a0c0edec9

Cheers,

M.
--
Without deviation from the norm, progress is not possible.