Re: [PATCH] mm/Kconfig: allow user to select MIGRATION if MEMORY_FAILURE is enabled
From: David Hildenbrand (Arm)
Date: Wed Aug 12 2026 - 07:07:28 EST
On 8/12/26 11:16, Xie Yuanbin wrote:
> Currently, memory-failure can be enabled without migration. However,
> migration cannot be selected by user when memory-failure is enabled.
>
> Migration is very useful for soft_offline_page(), which may be triggered
> by correctable memory errors. Most of the anonymous or file-mapping
> faulty pages can be migrated to other healthy pages.
>
> Allow user to select MIGRATION if MEMORY_FAILURE is enabled.
> Also, select MIGRATION by default if MEMORY_FAILURE is enabled.
>
> Signed-off-by: Xie Yuanbin <xieyuanbin1@xxxxxxxxxx>
> ---
> mm/Kconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 8a24c130d008..b4c217383b51 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -682,7 +682,8 @@ config NUMA_MIGRATION
> demotion for memory tiering.
>
> config MIGRATION
> - bool
> + bool "Enable page migration" if MEMORY_FAILURE
> + default y if MEMORY_FAILURE
> depends on MMU
As others raised, don't make this user-selectable. If some other config requires
this, glue it to that config.
Don't make it harder for users to figure out which mechanism A needs mechanism B
to be useful :)
--
Cheers,
David