On 16.12.2025 17:32, Andrew Cooper wrote:
> XENMEM_claim_pages can be issued on a domain in the later stages of
> domain_kill(). In that case, the claimed memory is leaked, as there's no way
> to subsequently release the claim.
>
> Claims are intended for use during domain construction; to reserve sufficient
> RAM to construct the domain fully. There's no legitimate reason to be calling
> it on a dying domain.
>
> Fixes: 65c9792df600 ("mmu: Introduce XENMEM_claim_pages (subop of memory
> ops)")
> Signed-off-by: Andrew Cooper <[email protected]>
Reviewed-by: Jan Beulich <[email protected]>