linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] relax anon mTHP PTE Mapping restrictions
@ 2025-01-20  1:22 Lance Yang
  2025-01-20  1:22 ` [RFC 1/2] mm/mthp: add pte_range_none_or_zeropfn() helper Lance Yang
  2025-01-20  1:22 ` [RFC 2/2] mm/mthp: relax anon mTHP PTE Mapping restrictions Lance Yang
  0 siblings, 2 replies; 7+ messages in thread
From: Lance Yang @ 2025-01-20  1:22 UTC (permalink / raw)
  To: akpm
  Cc: 21cnbao, ryan.roberts, dev.jain, david, shy828301, ziy,
	libang.li, baolin.wang, linux-kernel, linux-mm, Lance Yang

Hey all,

Previously, mTHP could only be mapped to PTEs where all entries were none.
With this change, PTEs within the range mapping the demand-zero page can
now be treated as `pte_none` and remapped to a new mTHP, providing more
opportunities to take advantage of mTHP.

Lance Yang (2):
  mm/mthp: add pte_range_none_or_zeropfn() helper
  mm/mthp: relax anon mTHP PTE Mapping restrictions

 mm/memory.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 49 insertions(+), 5 deletions(-)

-- 
2.45.2



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

end of thread, other threads:[~2025-01-21 12:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-20  1:22 [RFC 0/2] relax anon mTHP PTE Mapping restrictions Lance Yang
2025-01-20  1:22 ` [RFC 1/2] mm/mthp: add pte_range_none_or_zeropfn() helper Lance Yang
2025-01-20  1:22 ` [RFC 2/2] mm/mthp: relax anon mTHP PTE Mapping restrictions Lance Yang
2025-01-20  2:15   ` Barry Song
2025-01-20 13:20     ` Lance Yang
2025-01-20 13:38       ` David Hildenbrand
2025-01-21 12:57         ` Lance Yang

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