]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Always unlink memory regions when deleting (VM free)
authorSean Christopherson <seanjc@google.com>
Fri, 2 Aug 2024 20:14:29 +0000 (13:14 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 30 Aug 2024 02:01:42 +0000 (19:01 -0700)
commitc0d1a39d1d20e5e770bad72bbe1e9d4fa1367e28
tree84ea8b2dcc412db2eca4709991f68470850ddbe0
parentce3b90bd0a165c0473e462b9182e30e0659f99cf
KVM: selftests: Always unlink memory regions when deleting (VM free)

Unlink memory regions when freeing a VM, even though it's not strictly
necessary since all tracking structures are freed soon after.  The time
spent deleting entries is negligible, and not unlinking entries is
confusing, e.g. it's easy to overlook that the tree structures are
freed by the caller.

Link: https://lore.kernel.org/r/20240802201429.338412-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/kvm_util.c