Re: [PATCH v2 1/4] x86/mm: Correct the actual size of available global ASID range
From: Rik van Riel
Date: Tue Jan 20 2026 - 12:16:46 EST
On Tue, 2026-01-20 at 21:44 +0800, Hou Wenlong wrote:
> As noted in the comment, the available ASID range for global ASID
> allocation is '[TLB_NR_DYN_ASIDS, MAX_ASID_AVAILABLE-1]', which is a
> close interval. The size of bitmap is defined as
> 'MAX_ASID_AVAILABLE',
> so the actual available size should be
> '(MAX_ASID_AVAILABLE-1) - TLB_NR_DYN_ASIDS + 1'; otherwise, one ASID
> will
> leak.
>
> Signed-off-by: Hou Wenlong <houwenlong.hwl@xxxxxxxxxxxx>
Reviewed-by: Rik van Riel <riel@xxxxxxxxxxx>
--
All Rights Reversed.