All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 00/16] migration/cpr: support vhost-vsock devices
@ 2026-09-18 13:46 Andrey Drobyshev
  2026-09-18 13:46 ` [PATCH v7 01/16] migration/cpr: forbid saving duplicate CprFds into hash table Andrey Drobyshev
                   ` (17 more replies)
  0 siblings, 18 replies; 35+ messages in thread
From: Andrey Drobyshev @ 2026-09-18 13:46 UTC (permalink / raw)
  To: qemu-devel
  Cc: farosas, bchaney, mark.kanda, philmd, vsementsov,
	andrey.drobyshev, maciej.szmigiero, dongli.zhang, mst, clg,
	peterx, den, sgarzare

v6 -> v7:

  * Patch 9:
    - cleanup closed vhostfd here rather than in #14;
    - add !cpr_incoming guard before saving CPR fd;

  * Patch 14:
    - remove closed vhostfd cleanup (moved to #9);
    - lift !cpr_incoming guard before saving CPR fd - not needed with an
      early return;

  * Patches 15-16 (NEW):
    - add qtests running cpr-transfer/cpr-exec with a vhost-vsock-pci
      device attached;
    - add functional test with a live guest doing host<->guest vsock
      transfers across a series of CPR migrations.

v6: https://lore.kernel.org/qemu-devel/20260915-up-vsock-vhost-v5-v6-0-4d31b2dc6afd@virtuozzo.com

Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
---
Andrey Drobyshev (16):
      migration/cpr: forbid saving duplicate CprFds into hash table
      tests/unit: add test for duplicate keys in CPR FD table
      migration: forbid snapshots in CPR migration modes
      tests/qtest/migration: add test for snapshot rejection in CPR modes
      vhost-vsock: block CPR migration modes
      vhost: add vhost_reset_owner op
      vhost-vsock: don't reset connections during CPR
      vhost-vsock: fix FD leak in realize()
      vhost-vsock: preserve vhost FD during CPR
      vhost: factor out vhost_dev_init_backend()
      vhost: make vhost_dev_cleanup() safe on a partially initialized device
      vhost: add vhost_dev_set_owner() / vhost_dev_reset_owner() helpers
      vhost: add vhost_dev_is_initialized() helper
      vhost-vsock: hand off device ownership across CPR
      tests/qtest/migration: add vhost-vsock tests for cpr-transfer and cpr-exec
      tests/functional: add vhost-vsock CPR test with a live guest

 backends/hostmem-memfd.c                        |   5 +-
 backends/hostmem-shm.c                          |   5 +-
 backends/iommufd.c                              |   4 +-
 hw/vfio/container-legacy.c                      |  17 +-
 hw/vfio/cpr-legacy.c                            |  10 +-
 hw/vfio/cpr.c                                   |   6 +-
 hw/vfio/pci.c                                   |   5 +-
 hw/virtio/vhost-kernel.c                        |   6 +
 hw/virtio/vhost-vsock.c                         | 193 +++++++++++++++++--
 hw/virtio/vhost.c                               |  57 ++++--
 include/hw/vfio/vfio-cpr.h                      |   6 +-
 include/hw/virtio/vhost-backend.h               |   2 +
 include/hw/virtio/vhost-vsock.h                 |   1 +
 include/hw/virtio/vhost.h                       |  61 ++++++
 include/migration/cpr.h                         |   2 +-
 migration/cpr.c                                 |  55 ++++--
 migration/options.c                             |   7 +
 system/physmem.c                                |   5 +-
 tests/functional/x86_64/meson.build             |   2 +
 tests/functional/x86_64/test_vhost_vsock_cpr.py | 245 ++++++++++++++++++++++++
 tests/qtest/migration/cpr-tests.c               | 129 ++++++++++++-
 tests/unit/meson.build                          |   1 +
 tests/unit/test-cpr.c                           |  98 ++++++++++
 23 files changed, 846 insertions(+), 76 deletions(-)
---
base-commit: 5f664cd37aec17e8145aa117d8da68f507edc8f1
change-id: 20260908-up-vsock-vhost-v5-c781b39f1c1a

Best regards,
--  
Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>



^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2026-09-29 17:10 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18 13:46 [PATCH v7 00/16] migration/cpr: support vhost-vsock devices Andrey Drobyshev
2026-09-18 13:46 ` [PATCH v7 01/16] migration/cpr: forbid saving duplicate CprFds into hash table Andrey Drobyshev
2026-09-28 14:26   ` Peter Xu
2026-09-29 13:28     ` Andrey Drobyshev
2026-09-29 15:37       ` Peter Xu
2026-09-29 17:09         ` Andrey Drobyshev
2026-09-18 13:46 ` [PATCH v7 02/16] tests/unit: add test for duplicate keys in CPR FD table Andrey Drobyshev
2026-09-18 13:46 ` [PATCH v7 03/16] migration: forbid snapshots in CPR migration modes Andrey Drobyshev
2026-09-28 14:29   ` Peter Xu
2026-09-28 14:54   ` Fabiano Rosas
2026-09-28 17:39     ` Akihiko Odaki
2026-09-29 13:28       ` Andrey Drobyshev
2026-09-18 13:46 ` [PATCH v7 04/16] tests/qtest/migration: add test for snapshot rejection in CPR modes Andrey Drobyshev
2026-09-28 14:33   ` Peter Xu
2026-09-29 13:28     ` Andrey Drobyshev
2026-09-18 13:46 ` [PATCH v7 05/16] vhost-vsock: block CPR migration modes Andrey Drobyshev
2026-09-18 13:46 ` [PATCH v7 06/16] vhost: add vhost_reset_owner op Andrey Drobyshev
2026-09-18 13:46 ` [PATCH v7 07/16] vhost-vsock: don't reset connections during CPR Andrey Drobyshev
2026-09-18 13:46 ` [PATCH v7 08/16] vhost-vsock: fix FD leak in realize() Andrey Drobyshev
2026-09-18 13:47 ` [PATCH v7 09/16] vhost-vsock: preserve vhost FD during CPR Andrey Drobyshev
2026-09-22  9:07   ` Stefano Garzarella
2026-09-18 13:47 ` [PATCH v7 10/16] vhost: factor out vhost_dev_init_backend() Andrey Drobyshev
2026-09-18 13:47 ` [PATCH v7 11/16] vhost: make vhost_dev_cleanup() safe on a partially initialized device Andrey Drobyshev
2026-09-18 13:47 ` [PATCH v7 12/16] vhost: add vhost_dev_set_owner() / vhost_dev_reset_owner() helpers Andrey Drobyshev
2026-09-18 13:47 ` [PATCH v7 13/16] vhost: add vhost_dev_is_initialized() helper Andrey Drobyshev
2026-09-18 13:47 ` [PATCH v7 14/16] vhost-vsock: hand off device ownership across CPR Andrey Drobyshev
2026-09-22  9:26   ` Stefano Garzarella
2026-09-23 11:09     ` Andrey Drobyshev
2026-09-18 13:47 ` [PATCH v7 15/16] tests/qtest/migration: add vhost-vsock tests for cpr-transfer and cpr-exec Andrey Drobyshev
2026-09-28 14:59   ` Peter Xu
2026-09-18 13:47 ` [PATCH v7 16/16] tests/functional: add vhost-vsock CPR test with a live guest Andrey Drobyshev
2026-09-28 15:01   ` Peter Xu
2026-09-22  9:30 ` [PATCH v7 00/16] migration/cpr: support vhost-vsock devices Stefano Garzarella
2026-09-23 11:09   ` Andrey Drobyshev
2026-09-28 10:44 ` Andrey Drobyshev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.