> On Dec 3, 2026, at 06:56, Chris Down <[email protected]> wrote:
>
> Hi Muchun,
Hi,
>
> Muchun Song writes:
>> + if (!pte_none(entry))
>> + return pte_page(entry) == page ? 0 : -EOPNOTSUPP;
>
> Not a big deal, but the old code warned when it found a populated PTE in
> the shared tail range, and now a PTE pointing at some other page fails
> silently. vmemmap_populate_basepages() turns every error into -ENOMEM, so
> all one sees is a failed hot-add with no real direction on why that
> happened.
>
> Maybe keep a WARN_ON_ONCE() for a PTE that points at another page?
Make sense, I'll add it back.
Thanks,
Muchun
>
> Thanks,
>
> Chris