linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] A Solution to Re-enable hugetlb vmemmap optimize on Arm
@ 2023-12-14  7:39 Nanyong Sun
  2023-12-14  7:39 ` [PATCH 1/3] mm: HVO: introduce helper function to update and flush pgtable Nanyong Sun
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Nanyong Sun @ 2023-12-14  7:39 UTC (permalink / raw)
  To: catalin.marinas, will, mike.kravetz, muchun.song, akpm,
	anshuman.khandual
  Cc: willy, wangkefeng.wang, sunnanyong, linux-arm-kernel,
	linux-kernel, linux-mm

HVO was previously disabled on arm64 [1] due to the lack of necessary
BBM(break-before-make) logic when changing page tables.
This set of patches fix this by adding necessary BBM sequence when
changing page table, and supporting vmemmap page fault handling to
fixup kernel address fault if vmemmap is concurrently accessed.

[1] commit 060a2c92d1b6 ("arm64: mm: hugetlb: Disable HUGETLB_PAGE_OPTIMIZE_VMEMMAP")

Nanyong Sun (3):
  mm: HVO: introduce helper function to update and flush pgtable
  arm64: mm: HVO: support BBM of vmemmap pgtable safely
  arm64: mm: Re-enable OPTIMIZE_HUGETLB_VMEMMAP

 arch/arm64/Kconfig           |  1 +
 arch/arm64/include/asm/esr.h |  4 ++
 arch/arm64/include/asm/mmu.h | 20 ++++++++
 arch/arm64/mm/fault.c        | 94 ++++++++++++++++++++++++++++++++++++
 arch/arm64/mm/mmu.c          | 28 +++++++++++
 mm/hugetlb_vmemmap.c         | 55 ++++++++++++++++-----
 6 files changed, 190 insertions(+), 12 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-02-08  2:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-14  7:39 [PATCH 0/3] A Solution to Re-enable hugetlb vmemmap optimize on Arm Nanyong Sun
2023-12-14  7:39 ` [PATCH 1/3] mm: HVO: introduce helper function to update and flush pgtable Nanyong Sun
2023-12-15  3:36   ` Muchun Song
2023-12-18  9:53     ` Nanyong Sun
2023-12-15  6:16   ` Kefeng Wang
2023-12-18  9:54     ` Nanyong Sun
2023-12-14  7:39 ` [PATCH 2/3] arm64: mm: HVO: support BBM of vmemmap pgtable safely Nanyong Sun
2023-12-15  4:36   ` Muchun Song
2023-12-15  6:32     ` Kefeng Wang
2024-02-08  2:35     ` Jane Chu
2023-12-14  7:39 ` [PATCH 3/3] arm64: mm: Re-enable OPTIMIZE_HUGETLB_VMEMMAP Nanyong Sun
2023-12-15  4:37   ` Muchun Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox