On 13/06/2023 19:44, Yu Zhao wrote: > On Tue, Jun 13, 2023 at 05:09:48PM +0100, Ryan Roberts wrote: >> Hi All, >> >> I thought I would try my luck with this pair of patches... > > Ack on the idea. > > Actually I have a script to do just this, but it's based on pagemap (attaching the script at the end). I did consider that approach, but it was much more code to write the script than to modify smaps ;-). Longer term, I think it would be good to have it in smaps because its more accessible. For the contpte case we would need to add a bit to every pagemap entry to express that. I'm not sure how palletable that would be for a arch-specific thing? Thanks for the script anyway!