This series brings transparent huge pages to RISCV on 64-bit.
I have tested these testcases of vm selftest under qemu-riscv64:
khugepaged
split_huge_page_test
transhuge-stress
Nanyong Sun (4):
riscv: mm: add _PAGE_LEAF macro
riscv: mm: make pmd_bad() check leaf condition
riscv: mm: add param stride for __sbi_tlb_flush_range
riscv: mm: add THP support on 64-bit
arch/riscv/Kconfig | 1 +
arch/riscv/include/asm/pgtable-64.h | 3 +-
arch/riscv/include/asm/pgtable-bits.h | 5 +
arch/riscv/include/asm/pgtable.h | 164 +++++++++++++++++++++++++-
arch/riscv/mm/tlbflush.c | 17 ++-
5 files changed, 178 insertions(+), 12 deletions(-)