• Mike Rapoport's avatar
    lazy-pages: add handling of UFFD_EVENT_REMAP · 2c5e635e
    Mike Rapoport authored
    When the restored process calls mremap(), we will see #PF's on the new
    addresses and we have to create a correspondence between the addresses
    found in the dump and the actual addresses the process uses. For this
    purpose we distinguish "live" address and "image" address in the lazy IOVs
    and outstanding requests. The "live" address is used to find the
    appropriate IOV and in uffd_copy and the "image" address is used to request
    pages from the page-read.
    
    If the mremap() call causes the mapping to grow, the additional part will
    receive zero pages, as expected.
    
    For the shrinking remaps, we will get UFFD_EVENT_UNMAP for the dropped part
    of the mapping.
    
    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>
    2c5e635e
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...