Skip to contentSkip to conversation

riscv: add support for hugepage migration

PATCH In review Chen Wandun 2 participants 3 messages Aug 10, 2021 – Aug 26, 2021 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: add support for hugepage migration

Generic arch_hugetlb_migration_supported can provide appropriate support for hugepage migration when enable ARCH_ENABLE_HUGEPAGE_MIGRATION, so enable it for hugepage migration in riscv.

---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +1 -0
index 8ce8382748d5..8bfc89589838 100644
@@ -13,6 +13,7 @@ config 32BIT
 config RISCV
 	def_bool y
 	select ARCH_CLOCKSOURCE_INIT
+	select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
 	select ARCH_SUPPORTS_ATOMIC_RMW
 	select ARCH_SUPPORTS_DEBUG_PAGEALLOC if MMU
 	select ARCH_STACKWALK
Signature · 1 line
2.18.0.huawei.25
maintainer
#1 lore raw
Quoted 14 lines · On Tue, 10 Aug 2021 06:51:05 PDT (-0700), [email protected] wrote:

Generic arch_hugetlb_migration_supported can provide appropriate support for hugepage migration when enable ARCH_ENABLE_HUGEPAGE_MIGRATION, so enable it for hugepage migration in riscv.

---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +0 -0
index 8ce8382748d5..8bfc89589838 100644

arch/riscv/Kconfig config 32BIT · line 19

Quoted 7 lines
arch/riscv/Kconfig +1 -0
@@ -13,6 +13,7 @@ config 32BIT
 config RISCV
 	def_bool y
 	select ARCH_CLOCKSOURCE_INIT
+	select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
 	select ARCH_SUPPORTS_ATOMIC_RMW
 	select ARCH_SUPPORTS_DEBUG_PAGEALLOC if MMU
 	select ARCH_STACKWALK

Thanks, this is on for-next.

maintainer
#2 lore raw
In reply to Chen Wandun
Quoted 14 lines · On Tue, 10 Aug 2021 06:51:05 PDT (-0700), [email protected] wrote:

Generic arch_hugetlb_migration_supported can provide appropriate support for hugepage migration when enable ARCH_ENABLE_HUGEPAGE_MIGRATION, so enable it for hugepage migration in riscv.

---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +0 -0
index 8ce8382748d5..8bfc89589838 100644

arch/riscv/Kconfig config 32BIT · line 19

Quoted 7 lines
arch/riscv/Kconfig +1 -0
@@ -13,6 +13,7 @@ config 32BIT
 config RISCV
 	def_bool y
 	select ARCH_CLOCKSOURCE_INIT
+	select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
 	select ARCH_SUPPORTS_ATOMIC_RMW
 	select ARCH_SUPPORTS_DEBUG_PAGEALLOC if MMU
 	select ARCH_STACKWALK

Thanks, this is on for-next.