On Thu, Oct 1, 2026 at 1:26 PM Sean Christopherson <[email protected]> wrote: > > Unmap KVM-created VMAs for KVM-internal memslots when the associated > memslot is freed instead of unmapping via x86's internal API. This will > allow deleting/freeing all memslots before kvm_arch_destroy_vm() without > leaking VMAs, and in general is a net positive as it makes it far less > likely that KVM will leak VMAs, e.g. in the unlikely scenario some other > flow deletes KVM-internal memslots without going through > __x86_set_memory_region(). > > Signed-off-by: Sean Christopherson <[email protected]>
LGTM; this code is so much better. Feel free to add: Reviewed-by: James Houghton <[email protected]>
