[N][PATCH 5/6] s390: enable MHP_MEMMAP_ON_MEMORY

frank.heimes at canonical.com frank.heimes at canonical.com
Tue Mar 19 13:04:14 UTC 2024


From: Sumanth Korikkar <sumanthk at linux.ibm.com>

BugLink: https://bugs.launchpad.net/bugs/2051835

Enable MHP_MEMMAP_ON_MEMORY to support "memmap on memory".
memory_hotplug.memmap_on_memory=true kernel parameter should be set in
kernel boot option to enable the feature.

Link: https://lkml.kernel.org/r/20240108132747.3238763-6-sumanthk@linux.ibm.com
Reviewed-by: Gerald Schaefer <gerald.schaefer at linux.ibm.com>
Signed-off-by: Sumanth Korikkar <sumanthk at linux.ibm.com>
Cc: Alexander Gordeev <agordeev at linux.ibm.com>
Cc: Aneesh Kumar K.V <aneesh.kumar at linux.ibm.com>
Cc: Anshuman Khandual <anshuman.khandual at arm.com>
Cc: David Hildenbrand <david at redhat.com>
Cc: Heiko Carstens <hca at linux.ibm.com>
Cc: Michal Hocko <mhocko at suse.com>
Cc: Oscar Salvador <osalvador at suse.de>
Cc: Vasily Gorbik <gor at linux.ibm.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
(cherry picked from commit 9eda317c15ff13be621d219a5de365d1550f41f7)
Signed-off-by: Frank Heimes <frank.heimes at canonical.com>
---
 arch/s390/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index fe565f3a3a91..a1d6dcbc8965 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -113,6 +113,7 @@ config S390
 	select ARCH_INLINE_WRITE_UNLOCK_BH
 	select ARCH_INLINE_WRITE_UNLOCK_IRQ
 	select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
+	select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE
 	select ARCH_STACKWALK
 	select ARCH_SUPPORTS_ATOMIC_RMW
 	select ARCH_SUPPORTS_DEBUG_PAGEALLOC
-- 
2.25.1




More information about the kernel-team mailing list