lazy-pages: fixes

Submitted by Mike Rapoport on April 16, 2018, 4:58 p.m.

Details

Reviewer None
Submitted April 16, 2018, 4:58 p.m.
Last Updated April 20, 2018, 5:20 a.m.
Revision 1

Cover Letter

Hi,

The previous lazy-pages patchset [1] introduced several new bugs and
uncovered some old ones as well.

This set fixes most of them and should allow proper runs of lazy-restore
from the images.

As for the remote lazy-pages and lazy migration, I still don't have a
solution of some of the races between background fetch and uffd events and
I'm continue to work on it.

[1] https://lists.openvz.org/pipermail/criu/2018-March/040765.html

Mike Rapoport (8):
  test: lazy-pages: exclude maps007
  lazy-pages: introduce merge_iov_lists helper
  lazy-pages: merge_iov_lists: fix corner case of empty destination
  lazy-pages: handle_requests: fix return value propagation
  lazy-pages: cache buffer size in the lazy_pages_info
  lazy-pages: update events handling to take requests into account
  lazy-pages: return to epoll_wait after completing forks
  lazy-pages: don't try to uffd_copy to removed memory regions

 criu/uffd.c                            | 140 +++++++++++++++++++++++++--------
 scripts/travis/travis-tests            |   2 +-
 test/jenkins/criu-lazy-migration.sh    |   2 +-
 test/jenkins/criu-lazy-pages.sh        |   2 +-
 test/jenkins/criu-remote-lazy-pages.sh |   2 +-
 5 files changed, 110 insertions(+), 38 deletions(-)
  

Revisions