All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Garzarella <sgarzare@redhat.com>
To: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Cc: qemu-devel@nongnu.org, mst@redhat.com, farosas@suse.de,
	 peterx@redhat.com, dongli.zhang@oracle.com,
	maciej.szmigiero@oracle.com,  bchaney@akamai.com,
	mark.kanda@oracle.com, den@openvz.org
Subject: Re: [PATCH v4 00/10] migration/cpr: support vhost-vsock devices
Date: Mon, 7 Sep 2026 12:07:25 +0200	[thread overview]
Message-ID: <ap6Mvify0SILdfn8@sgarzare-redhat> (raw)
In-Reply-To: <c656126b-fa5f-48e9-b841-665f1f097b6c@virtuozzo.com>

On Mon, Aug 31, 2026 at 02:16:13PM +0300, Andrey Drobyshev wrote:
>On 8/20/26 2:39 PM, Andrey Drobyshev wrote:
>> v4 is mostly fixes suggested by Stefano.
>>
>> v3 -> v4:
>>
>>   * Patch 1 (NEW) ("vhost-vsock: block CPR migration modes"): block the
>>     CPR modes until the support is fully in place.  Make mid-series CPR
>>     attempts fail early and gracefully instead of crashing;
>>   * Patch 2 -> 3 ("vhost-vsock: don't reset connections during CPR"):
>>     write vhost_vsock_post_load() in its final shape, not defer to the
>>     last patch;
>>   * Patch 4 -> 5 ("vhost-vsock: preserve vhost FD during CPR"): reword
>>     commit message;
>>   * Patch 5 -> 6 ("vhost: factor out vhost_dev_init_backend()"):
>>     document vhost_dev_cleanup() on error;
>>   * Patch 7 (NEW) ("vhost: make vhost_dev_cleanup() safe on a partially
>>     initialized device"): split the vq->dev NULL check out of the
>>     ownership handoff patch;
>>   * Patch 9 (NEW) ("vhost: add vhost_dev_is_initialized() helper"): add
>>     an explicit 'initialized' field to struct vhost_dev instead of
>>     relying on hdev->mem;
>>   * Patch 7 -> 10 ("vhost-vsock: hand off device ownership across CPR"):
>>     - make the start guard in vhost_vsock_set_status() check
>>       vhost_dev_is_initialized() and vsock->owner_reset instead of
>>       vhost_dev.mem;
>>     - call vhost_dev_cleanup() if setting the guest cid fails in
>>       post_load;
>>     - lift the CPR blocker (narrow it to the ID-less case);
>>     - reword commit message.
>>
>> v3: https://lore.kernel.org/qemu-devel/20260626164643.2526-1-andrey.drobyshev@virtuozzo.com
>>
>> Andrey Drobyshev (10):
>>   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
>>
>>  hw/virtio/vhost-kernel.c          |   6 +
>>  hw/virtio/vhost-vsock.c           | 220 +++++++++++++++++++++++++++---
>>  hw/virtio/vhost.c                 |  57 ++++++--
>>  include/hw/virtio/vhost-backend.h |   1 +
>>  include/hw/virtio/vhost-vsock.h   |   4 +
>>  include/hw/virtio/vhost.h         |  49 +++++++
>>  6 files changed, 307 insertions(+), 30 deletions(-)
>>
>
>Friendly ping
>

Sorry, I was on PTO, I'm going to review this week (hopefully today).

Stefano



      reply	other threads:[~2026-09-07 10:07 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-20 11:39 [PATCH v4 00/10] migration/cpr: support vhost-vsock devices Andrey Drobyshev
2026-08-20 11:39 ` [PATCH v4 01/10] vhost-vsock: block CPR migration modes Andrey Drobyshev
2026-09-07 14:54   ` Stefano Garzarella
2026-08-20 11:39 ` [PATCH v4 02/10] vhost: add vhost_reset_owner op Andrey Drobyshev
2026-09-07 13:58   ` Stefano Garzarella
2026-09-09 16:59     ` Andrey Drobyshev
2026-08-20 11:39 ` [PATCH v4 03/10] vhost-vsock: don't reset connections during CPR Andrey Drobyshev
2026-09-07 14:54   ` Stefano Garzarella
2026-08-20 11:39 ` [PATCH v4 04/10] vhost-vsock: fix FD leak in realize() Andrey Drobyshev
2026-09-07 14:54   ` Stefano Garzarella
2026-09-09 16:59     ` Andrey Drobyshev
2026-08-20 11:39 ` [PATCH v4 05/10] vhost-vsock: preserve vhost FD during CPR Andrey Drobyshev
2026-09-07 14:55   ` Stefano Garzarella
2026-09-09 16:59     ` Andrey Drobyshev
2026-09-11  7:37       ` Stefano Garzarella
2026-09-11 16:35         ` Andrey Drobyshev
2026-08-20 11:39 ` [PATCH v4 06/10] vhost: factor out vhost_dev_init_backend() Andrey Drobyshev
2026-09-07 14:55   ` Stefano Garzarella
2026-08-20 11:39 ` [PATCH v4 07/10] vhost: make vhost_dev_cleanup() safe on a partially initialized device Andrey Drobyshev
2026-09-07 14:56   ` Stefano Garzarella
2026-09-09 17:06     ` Andrey Drobyshev
2026-08-20 11:39 ` [PATCH v4 08/10] vhost: add vhost_dev_set_owner() / vhost_dev_reset_owner() helpers Andrey Drobyshev
2026-09-07 14:56   ` Stefano Garzarella
2026-09-09 17:05     ` Andrey Drobyshev
2026-08-20 11:39 ` [PATCH v4 09/10] vhost: add vhost_dev_is_initialized() helper Andrey Drobyshev
2026-09-07 14:57   ` Stefano Garzarella
2026-08-20 11:39 ` [PATCH v4 10/10] vhost-vsock: hand off device ownership across CPR Andrey Drobyshev
2026-09-07 15:13   ` Stefano Garzarella
2026-09-09 17:45     ` Andrey Drobyshev
2026-09-11  7:45       ` Stefano Garzarella
2026-09-11 16:35         ` Andrey Drobyshev
2026-08-31 11:16 ` [PATCH v4 00/10] migration/cpr: support vhost-vsock devices Andrey Drobyshev
2026-09-07 10:07   ` Stefano Garzarella [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ap6Mvify0SILdfn8@sgarzare-redhat \
    --to=sgarzare@redhat.com \
    --cc=andrey.drobyshev@virtuozzo.com \
    --cc=bchaney@akamai.com \
    --cc=den@openvz.org \
    --cc=dongli.zhang@oracle.com \
    --cc=farosas@suse.de \
    --cc=maciej.szmigiero@oracle.com \
    --cc=mark.kanda@oracle.com \
    --cc=mst@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.