Architectures like arm64 have PUD level HugeTLB pages for certain configs (1GB huge page is PUD based on ARM64_4K_PAGES base page size) that can be enabled for migration. It can be achieved through checking for PUD_SHIFT order based HugeTLB pages during migration.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -497,7 +497,8 @@ static inline bool hugepage_migration_supported(struct hstate *h) · 496 unmodified lines | ||
| 497 | 497 | { |
| 498 | 498 | #ifdef CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION |
| 499 | 499 | if ((huge_page_shift(h) == PMD_SHIFT) || |
| 500 | − (huge_page_shift(h) == PGDIR_SHIFT)) | |
| 500 | + (huge_page_shift(h) == PUD_SHIFT) || | |
| 501 | + (huge_page_shift(h) == PGDIR_SHIFT)) | |
| 501 | 502 | return true; |
| 502 | 503 | else |
| 503 | 504 | return false; |