Re: [PATCH v4 5/9] mm: Add write-protect and clean utilities for address space ranges

2019-10-08 Thread Thomas Hellstrom
On 10/8/19 7:07 PM, Linus Torvalds wrote: > On Tue, Oct 8, 2019 at 2:15 AM Thomas Hellström (VMware) > wrote: >> Add two utilities to 1) write-protect and 2) clean all ptes pointing into >> a range of an address space. > The code looks much simpler and easier to understand now, I think, but >

Re: [PATCH v4 5/9] mm: Add write-protect and clean utilities for address space ranges

2019-10-08 Thread Linus Torvalds
On Tue, Oct 8, 2019 at 2:15 AM Thomas Hellström (VMware) wrote: > > Add two utilities to 1) write-protect and 2) clean all ptes pointing into > a range of an address space. The code looks much simpler and easier to understand now, I think, but that also makes some thing more obvious.. > +static

[PATCH v4 5/9] mm: Add write-protect and clean utilities for address space ranges

2019-10-08 Thread VMware
From: Thomas Hellstrom Add two utilities to 1) write-protect and 2) clean all ptes pointing into a range of an address space. The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in