Building a kernel with memory hotplug support

7.1 LPAR mode z/VM guest

Control the build options for the memory hotplug support through the kernel configuration menu.

Kernel builders: This information is intended for those who want to build their own kernel. Be aware that both compiling your own kernel or recompiling an existing distribution usually means that you have to maintain your kernel yourself.

Figure 1 summarizes the common source options that you must select in the Linux® configuration menu to include the memory hotplug functions.

Figure 1. Kernel configuration menu options
Memory setup -->
   ...
   Allow for memory hot-add                      (CONFIG_MEMORY_HOTPLUG)
   └─ Allow for memory hot remove                (CONFIG_MEMORY_HOTREMOVE)
   Page migration                                (CONFIG_MIGRATION)
CONFIG_MEMORY_HOTPLUG
is required for dynamically attaching memory to the Linux instance.
CONFIG_MEMORY_HOTREMOVE and CONFIG_MIGRATION
are required for dynamically detaching memory from the Linux instance.