Commit c0d1a39
committed
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/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>1 parent ce3b90b commit c0d1a39
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | | - | |
| 715 | + | |
717 | 716 | | |
718 | 717 | | |
719 | 718 | | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
725 | 722 | | |
726 | 723 | | |
727 | 724 | | |
| |||
762 | 759 | | |
763 | 760 | | |
764 | 761 | | |
765 | | - | |
| 762 | + | |
766 | 763 | | |
767 | 764 | | |
768 | 765 | | |
| |||
1200 | 1197 | | |
1201 | 1198 | | |
1202 | 1199 | | |
1203 | | - | |
| 1200 | + | |
1204 | 1201 | | |
1205 | 1202 | | |
1206 | 1203 | | |
| |||
0 commit comments