Re: [PATCH RFC 07/30] mm/swap: Introduce the idea of special swap ptes

2021-01-19 Thread Peter Xu
On Mon, Jan 18, 2021 at 03:40:13PM -0400, Jason Gunthorpe wrote: > Does the stuff in hmm.c need updating too? > > if (!pte_present(pte)) { > swp_entry_t entry = pte_to_swp_entry(pte); This idea should be cross-tree, so yes.. even if I'm not 100% sure whether HMM would be

Re: [PATCH RFC 07/30] mm/swap: Introduce the idea of special swap ptes

2021-01-18 Thread Jason Gunthorpe
On Fri, Jan 15, 2021 at 12:08:44PM -0500, Peter Xu wrote: > We used to have special swap entries, like migration entries, hw-poison > entries, device private entries, etc. > > Those "special swap entries" reside in the range that they need to be at least > swap entries first, and their types are

[PATCH RFC 07/30] mm/swap: Introduce the idea of special swap ptes

2021-01-15 Thread Peter Xu
We used to have special swap entries, like migration entries, hw-poison entries, device private entries, etc. Those "special swap entries" reside in the range that they need to be at least swap entries first, and their types are decided by swp_type(entry). This patch introduces another idea