[CRIU] Setting soft-dirty bit...

Pavel Emelyanov xemul at parallels.com
Wed Sep 23 04:47:29 PDT 2015


On 09/23/2015 06:27 AM, Divjyot sethi wrote:
> Hello,
> I had a question about setting the soft-dirty bit. Can you please let me know if there
> is a kernel API for setting this.

No, it's purely in-kernel thing.

> Basically, from a driver, I am pinning a page in the precess being pre-copied, writing some
> info to it (from driver) and then unpinning the page. My question is that will this 
> automatically set the soft-dirty bit for the page? If not, is there an API call for doing so?

It should do so once you reset the soft dirty with 'echo 4 > /proc/pid/clear_refs'.

-- Pavel



More information about the CRIU mailing list