[RFC PATCH 08/10] mm: hugetlb: disable CMA if liveupdate is enabled
Pratyush Yadav
pratyush at kernel.org
Mon Dec 29 13:14:50 PST 2025
On Tue, Dec 23 2025, Pasha Tatashin wrote:
> On Sat, Dec 6, 2025 at 6:03 PM Pratyush Yadav <pratyush at kernel.org> wrote:
>>
>> Hugetlb live update support does not yet work with CMA. Print a warning
>> and disable CMA if the config for live updating hugetlb is enabled, and
>> liveupdate is enabled at runtime.
>
> Could you please elaborate this commit to explain why it is not
> supported, and what it would take to support CMA.
The main reason is that when HugeTLB CMA is enabled, the huge pages come
from CMA. If we have preserved pages, we would need to "insert" those
pages into the CMA when they are restored.
CMA does support multiple ranges, so I suppose it can be done, but it
needs some plumbing to work properly.
Will add this in the next revision.
--
Regards,
Pratyush Yadav
More information about the kexec
mailing list