Skip to content

postcopy+vhost-user/shared ram

Dr. David Alan Gilbert (git) qemu-devel 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest29 patches 0 repliesNew
  2. v529 patches 5 repliesSuperseded
  3. v429 patches 38 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v329 patches45 repliesSuperseded
v2 RFC32 patches61 repliesSuperseded
v1 RFC29 patches57 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29migrate: Update ram_block_discard_range for sharedexec.c trace-events+48 -150 replies
2/29qemu_ram_block_host_offsetexec.c include/exec/cpu-common.h+11 -00 replies
3/29postcopy: use UFFDIO_ZEROPAGE only when availableexec.c include/exec/cpu-common.h migration/postcopy-ram.c+29 -30 replies
4/29postcopy: Add notifier chainmigration/postcopy-ram.c migration/postcopy-ram.h vl.c+64 -00 replies
5/29postcopy: Add vhost-user flag for postcopy and check itcontrib/libvhost-user/libvhost-user.h docs/interop/vhost-user.txt hw/virtio/vhost-user.c+52 -10 replies
6/29vhost-user: Add 'VHOST_USER_POSTCOPY_ADVISE' messagecontrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h docs/interop/vhost-user.txt +3 more+79 -00 replies
7/29libvhost-user: Support sending fds back to qemucontrib/libvhost-user/libvhost-user.c+29 -10 replies
8/29libvhost-user: Open userfaultfdcontrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h+43 -20 replies
9/29postcopy: Allow registering of fd handlermigration/migration.c migration/migration.h migration/postcopy-ram.c +2 more+187 -530 replies
10/29vhost+postcopy: Register shared ufd with postcopyhw/virtio/vhost-user.c+19 -10 replies
11/29vhost+postcopy: Transmit 'listen' to slavecontrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h docs/interop/vhost-user.txt +4 more+77 -00 replies
12/29postcopy+vhost-user: Split set_mem_table for postcopycontrib/libvhost-user/libvhost-user.c hw/virtio/vhost-user.c+107 -00 replies
13/29migration/ram: ramblock_recv_bitmap_test_byte_offsetmigration/ram.c migration/ram.h+6 -00 replies
14/29libvhost-user+postcopy: Register new regions with the ufdcontrib/libvhost-user/libvhost-user.c+34 -00 replies
15/29vhost+postcopy: Send address back to qemucontrib/libvhost-user/libvhost-user.c docs/interop/vhost-user.txt hw/virtio/trace-events +1 more+98 -30 replies
16/29vhost+postcopy: Stash RAMBlock and offsethw/virtio/trace-events hw/virtio/vhost-user.c+50 -00 replies
17/29vhost+postcopy: Helper to send requests to source for shared pagesmigration/migration.h migration/postcopy-ram.c migration/postcopy-ram.h +1 more+36 -30 replies
18/29vhost+postcopy: Resolve client addresshw/virtio/trace-events hw/virtio/vhost-user.c+33 -10 replies
19/29postcopy: helper for waking sharedmigration/postcopy-ram.c migration/postcopy-ram.h migration/trace-events+37 -00 replies
20/29postcopy: postcopy_notify_shared_wakemigration/postcopy-ram.c migration/postcopy-ram.h+26 -00 replies
21/29vhost+postcopy: Add vhost wakerhw/virtio/trace-events hw/virtio/vhost-user.c+33 -00 replies
22/29vhost+postcopy: Call wakeupsmigration/postcopy-ram.c migration/trace-events+11 -40 replies
23/29libvhost-user: mprotect & madvises for postcopycontrib/libvhost-user/libvhost-user.c+42 -50 replies
24/29vhost-user: Add VHOST_USER_POSTCOPY_END messagecontrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h docs/interop/vhost-user.txt +1 more+37 -00 replies
25/29vhost+postcopy: Wire up POSTCOPY_END notifyhw/virtio/trace-events hw/virtio/vhost-user.c migration/postcopy-ram.c +1 more+44 -00 replies
26/29vhost: Huge page align and mergehw/virtio/trace-events hw/virtio/vhost.c+58 -110 replies
27/29postcopy: Allow shared memorymigration/postcopy-ram.c+0 -60 replies
28/29libvhost-user: Claim support for postcopycontrib/libvhost-user/libvhost-user.c+33 -00 replies
29/29postcopy shared docsdocs/devel/migration.rst+41 -00 replies

Reviews trailers per patch

26 of 29 patches have a Reviewed-by or Acked-by.

PatchPeter XuMarc-André Lureau
1/29R-b
2/29R-b
3/29R-b
4/29R-b
5/29R-b
6/29R-b
7/29R-b
8/29R-b
9/29R-b
10/29R-b
11/29R-b R-b
12/29R-b
13/29R-b R-b
14/29R-b
15/29R-b
16/29
17/29R-b
18/29R-b R-b
19/29R-b
20/29R-b R-b
21/29R-b
22/29
23/29R-b
24/29R-b R-b
25/29R-b
26/29
27/29R-b
28/29R-b
29/29R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [Qemu-devel] [PATCH v6 00/29] postcopy+vhost-user/shared ram

From: "Dr. David Alan Gilbert" <[email protected]>

This set enables postcopy migration with shared memory to a vhost user process.
It's based off current head.

Testing is mostly performed with dpdk, with corresponding modifications by
Maxime.

v6 is a rebase on top of Michael's PCI world; this took some merging
because of Jay Zhou's 'vhost: used_memslots refactoring', which needed a bit of a change to 'vhost+postcopy: Stash RAMBlock and offset' (which I dropped the Review-by off)
and 'postcopy+vhost-user: Split set_mem_table for postcopy' (which I kept it, since the change is mostly contextual).

And I removed a blank line at the end of a patch.

Dave

Dr. David Alan Gilbert (29):
migrate: Update ram_block_discard_range for shared qemu_ram_block_host_offset
postcopy: use UFFDIO_ZEROPAGE only when available
postcopy: Add notifier chain
postcopy: Add vhost-user flag for postcopy and check it
vhost-user: Add 'VHOST_USER_POSTCOPY_ADVISE' message
libvhost-user: Support sending fds back to qemu
libvhost-user: Open userfaultfd
postcopy: Allow registering of fd handler vhost+postcopy: Register shared ufd with postcopy vhost+postcopy: Transmit 'listen' to slave postcopy+vhost-user: Split set_mem_table for postcopy migration/ram: ramblock_recv_bitmap_test_byte_offset libvhost-user+postcopy: Register new regions with the ufd vhost+postcopy: Send address back to qemu vhost+postcopy: Stash RAMBlock and offset vhost+postcopy: Helper to send requests to source for shared pages vhost+postcopy: Resolve client address
postcopy: helper for waking shared
postcopy: postcopy_notify_shared_wake
vhost+postcopy: Add vhost waker
vhost+postcopy: Call wakeups
libvhost-user: mprotect & madvises for postcopy
vhost-user: Add VHOST_USER_POSTCOPY_END message vhost+postcopy: Wire up POSTCOPY_END notify
vhost: Huge page align and merge
postcopy: Allow shared memory
libvhost-user: Claim support for postcopy
postcopy shared docs

 contrib/libvhost-user/libvhost-user.c | 302 ++++++++++++++++++++++++-
 contrib/libvhost-user/libvhost-user.h |  11 +
 docs/devel/migration.rst              |  41 ++++
 docs/interop/vhost-user.txt           |  52 +++++
 exec.c                                |  86 ++++++--
 hw/virtio/trace-events                |  16 +-
 hw/virtio/vhost-user.c                | 403 +++++++++++++++++++++++++++++++++-
 hw/virtio/vhost.c                     |  66 +++++-
 include/exec/cpu-common.h             |   4 +
 migration/migration.c                 |   6 +
 migration/migration.h                 |   4 +
 migration/postcopy-ram.c              | 353 +++++++++++++++++++++++------
 migration/postcopy-ram.h              |  73 ++++++
 migration/ram.c                       |   5 +
 migration/ram.h                       |   1 +
 migration/savevm.c                    |  13 ++
 migration/trace-events                |   6 +
 trace-events                          |   3 +-
 vl.c                                  |   2 +
 19 files changed, 1351 insertions(+), 96 deletions(-)
Signature · 1 line
2.14.3