• Mike Rapoport's avatar
    lazy-pages: add handling of UFFD_EVENT_REMOVE · ba3d099b
    Mike Rapoport authored
    When the restored process calls madvise(MADV_DONTNEED) or
    madvise(MADV_REMOVE) the memory range specified by the madvise() call
    should be remapped to zero pfn and we should stop monitoring this range in
    order to avoid its pollution with data the process does not expect.
    All we need to do here, is to unregister the memory range from userfaultfd
    and the kernel will take care of the rest.
    
    travis-ci: success for lazy-pages: add non-#PF events handling (rev2)
    Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    ba3d099b
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...