+34
−31
Loading
Centralize guest memory region destruction to prevent resource leaks and inconsistent cleanup across unmap and partition destruction paths. Unify region removal, encrypted partition access recovery, and region invalidation to improve maintainability and reliability. Reduce code duplication and make future updates less error-prone by encapsulating cleanup logic in a single helper. Signed-off-by:Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> Reviewed-by:
Nuno Das Neves <nunodasneves@linux.microsoft.com> Reviewed-by:
Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com> Signed-off-by:
Wei Liu <wei.liu@kernel.org>