From: Alex Williamson <alex.williamson@redhat.com>
To: Steve Sistare <steven.sistare@oracle.com>
Cc: qemu-devel@nongnu.org, Peter Xu <peterx@redhat.com>,
Fabiano Rosas <farosas@suse.de>,
"Michael S. Tsirkin" <mst@redhat.com>,
Jason Wang <jasowang@redhat.com>,
Cedric Le Goater <clg@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Marc-Andre Lureau <marcandre.lureau@redhat.com>,
David Hildenbrand <david@redhat.com>
Subject: Re: [PATCH V2 00/11] allow cpr-reboot for vfio
Date: Fri, 12 Jan 2024 14:38:30 -0700 [thread overview]
Message-ID: <20240112143830.377d9f0f.alex.williamson@redhat.com> (raw)
In-Reply-To: <1705071910-174321-1-git-send-email-steven.sistare@oracle.com>
On Fri, 12 Jan 2024 07:04:59 -0800
Steve Sistare <steven.sistare@oracle.com> wrote:
> Allow cpr-reboot for vfio if the guest is in the suspended runstate. The
> guest drivers' suspend methods flush outstanding requests and re-initialize
> the devices, and thus there is no device state to save and restore. The
> user is responsible for suspending the guest before initiating cpr, such as
> by issuing guest-suspend-ram to the qemu guest agent.
>
> Most of the patches in this series enhance migration notifiers so they can
> return an error status and message. The last two patches register a notifier
> for vfio that returns an error if the guest is not suspended.
Hi Steve,
This appears to only support legacy container mode and not cdev/iommufd
mode. Shouldn't this support both? Thanks,
Alex
> Steve Sistare (11):
> notify: pass error to notifier with return
> migration: remove error from notifier data
> migration: convert to NotifierWithReturn
> migration: remove migration_in_postcopy parameter
> migration: MigrationEvent for notifiers
> migration: MigrationNotifyFunc
> migration: per-mode notifiers
> migration: refactor migrate_fd_connect failures
> migration: notifier error checking
> vfio: register container for cpr
> vfio: allow cpr-reboot migration if suspended
>
> hw/net/virtio-net.c | 14 ++---
> hw/vfio/common.c | 2 +-
> hw/vfio/container.c | 11 +++-
> hw/vfio/cpr.c | 39 ++++++++++++++
> hw/vfio/meson.build | 1 +
> hw/vfio/migration.c | 13 +++--
> hw/virtio/vhost-user.c | 10 ++--
> hw/virtio/virtio-balloon.c | 3 +-
> include/hw/vfio/vfio-common.h | 6 ++-
> include/hw/virtio/virtio-net.h | 2 +-
> include/migration/misc.h | 21 +++++---
> include/qemu/notify.h | 7 ++-
> migration/migration.c | 117 +++++++++++++++++++++++++++--------------
> migration/postcopy-ram.c | 3 +-
> migration/postcopy-ram.h | 1 -
> migration/ram.c | 12 ++---
> net/vhost-vdpa.c | 15 +++---
> ui/spice-core.c | 19 +++----
> util/notify.c | 5 +-
> 19 files changed, 206 insertions(+), 95 deletions(-)
> create mode 100644 hw/vfio/cpr.c
>
next prev parent reply other threads:[~2024-01-12 21:40 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 15:04 [PATCH V2 00/11] allow cpr-reboot for vfio Steve Sistare
2024-01-12 15:05 ` [PATCH V2 01/11] notify: pass error to notifier with return Steve Sistare
2024-01-15 6:38 ` Peter Xu
2024-01-12 15:05 ` [PATCH V2 02/11] migration: remove error from notifier data Steve Sistare
2024-01-15 6:38 ` Peter Xu
2024-01-12 15:05 ` [PATCH V2 03/11] migration: convert to NotifierWithReturn Steve Sistare
2024-01-15 6:44 ` Peter Xu
2024-01-16 20:35 ` Steven Sistare
2024-01-17 2:29 ` Peter Xu
2024-01-12 15:05 ` [PATCH V2 04/11] migration: remove migration_in_postcopy parameter Steve Sistare
2024-01-15 6:48 ` Peter Xu
2024-01-16 20:36 ` Steven Sistare
2024-01-12 15:05 ` [PATCH V2 05/11] migration: MigrationEvent for notifiers Steve Sistare
2024-01-12 15:18 ` Steven Sistare
2024-01-12 15:05 ` [PATCH V2 06/11] migration: MigrationNotifyFunc Steve Sistare
2024-01-12 15:05 ` [PATCH V2 07/11] migration: per-mode notifiers Steve Sistare
2024-01-12 15:05 ` [PATCH V2 08/11] migration: refactor migrate_fd_connect failures Steve Sistare
2024-01-15 7:37 ` Peter Xu
2024-01-16 20:35 ` Steven Sistare
2024-01-12 15:05 ` [PATCH V2 09/11] migration: notifier error checking Steve Sistare
2024-01-12 15:05 ` [PATCH V2 10/11] vfio: register container for cpr Steve Sistare
2024-01-12 15:05 ` [PATCH V2 11/11] vfio: allow cpr-reboot migration if suspended Steve Sistare
2024-01-15 7:33 ` Peter Xu
2024-01-16 20:37 ` Steven Sistare
2024-01-16 20:44 ` Steven Sistare
2024-01-17 7:12 ` Peter Xu
2024-01-17 21:30 ` Steven Sistare
2024-01-18 3:20 ` Peter Xu
2024-01-12 21:38 ` Alex Williamson [this message]
2024-01-16 20:36 ` [PATCH V2 00/11] allow cpr-reboot for vfio Steven Sistare
2024-01-15 10:48 ` David Hildenbrand
2024-01-15 10:51 ` David Hildenbrand
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=20240112143830.377d9f0f.alex.williamson@redhat.com \
--to=alex.williamson@redhat.com \
--cc=clg@redhat.com \
--cc=david@redhat.com \
--cc=farosas@suse.de \
--cc=jasowang@redhat.com \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=steven.sistare@oracle.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).