On 28.09.23 22:30, Vishal Verma wrote:
Large amounts of memory managed by the kmem driver may come in via CXL,
and it is often desirable to have the memmap for this memory on the new
memory itself.
Enroll kmem-managed memory for memmap_on_memory semantics if the dax
region originates via CXL. For non-CXL dax regions, retain the existing
default behavior of hot adding without memmap_on_memory semantics.
Add a sysfs override under the dax device to control this behavior and
override either default.
Cc: Andrew Morton <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Oscar Salvador <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Dave Jiang <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Huang Ying <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
---
Reviewed-by: David Hildenbrand <[email protected]>
--
Cheers,
David / dhildenb