[CRIU] Setting soft-dirty bit...
Pavel Emelyanov
xemul at parallels.com
Fri Sep 25 02:16:45 PDT 2015
On 09/25/2015 02:27 AM, Divjyot sethi wrote:
> Hi Pavel,
> Doing echo 4>/proc/pid/clear_refs will do so for all PTEs, right? Here's what I am doing:
>
> I do get_user_pages() from driver to pin a user page;
> I write to this user page from inside the driver (so as part of an ioctl)
>
> It seems to me that this does not mark the page soft dirty since the write to the page
Yes, it doesn't, as you perform direct in-kernel access to this page.
> did not happen in user-mode? Also, can I explicitly call pte_mksoft_dirty for the pte of
> interest? Any pointers on this would really help.
Yes, you can call this routine by hands and update the bit.
-- Pavel
More information about the CRIU
mailing list