Skip to content

Postcopy migration: Add userfaultfd- user-mode-only capability

Lin Ma qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3migration: introduce postcopy-uffd-usermode-only capabilitymigration/migration.c migration/migration.h migration/postcopy-ram.c +1 more+36 -40 replies
2/3migration: postcopy-uffd-usermode-only documentationdocs/devel/migration.rst+9 -00 replies
3/3tests: add postcopy-uffd-usermode-only capability into migration-testtests/qtest/migration-test.c+9 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Postcopy migration: Add userfaultfd- user-mode-only capability

Since kernel v5.11, Unprivileged user (without SYS_CAP_PTRACE capability) must pass UFFD_USER_MODE_ONLY to userfaultd in case unprivileged_userfaultfd sysctl knob is 0.
Please refer to https://lwn.net/Articles/819834/ and the kernel commits:
37cd0575 userfaultfd: add UFFD_USER_MODE_ONLY
d0d4730a userfaultfd: add user-mode only option to unprivileged_userfaultfd sysctl knob

This patch set adds a migration capability to pass UFFD_USER_MODE_ONLY for postcopy migration.

Lin Ma (3):
migration: introduce postcopy-uffd-usermode-only capability
migration: postcopy-uffd-usermode-only documentation
tests: add postcopy-uffd-usermode-only capability into migration-test

 docs/devel/migration.rst     |  9 +++++++++
 migration/migration.c        |  9 +++++++++
 migration/migration.h        |  1 +
 migration/postcopy-ram.c     | 22 +++++++++++++++++++---
 qapi/migration.json          |  8 +++++++-
 tests/qtest/migration-test.c | 11 +++++++++--
 6 files changed, 54 insertions(+), 6 deletions(-)
Signature · 1 line
2.26.2