Re: [PATCH v2 03/20] KVM: s390: Add gmap_helper_set_unused()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed Sep 10, 2025 at 8:07 PM CEST, Claudio Imbrenda wrote:
> Add gmap_helper_set_unused() to mark userspace ptes as unused.
>
> Core mm code will use that information to discard unused pages instead
> of attempting to swap them.
>
> Signed-off-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>

Reviewed-by: Nico Boehr <nrb@xxxxxxxxxxxxx>
Tested-by: Nico Boehr <nrb@xxxxxxxxxxxxx>

I observed 21965 calls to gmap_helper_set_unused() where we were successfully
traversing the page tables to the PTE; of these 21868 made it to the part where
_PAGE_UNUSED is set. So _rarely_ we seem to be unable to take the lock (or the
PMD changed under us), but in the majority of cases we make it, so this seems
fine to me.





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux