[PATCH V1 0/3] allow cpr-reboot for vfio

Steve Sistare posted 3 patches 1 year, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1702491093-383782-1-git-send-email-steven.sistare@oracle.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Alex Williamson <alex.williamson@redhat.com>, "Cédric Le Goater" <clg@redhat.com>, Juan Quintela <quintela@redhat.com>, Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>, Leonardo Bras <leobras@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>
There is a newer version of this series
hw/net/virtio-net.c           |  4 ++++
hw/vfio/common.c              |  2 +-
hw/vfio/container.c           | 11 ++++++++++-
hw/vfio/cpr.c                 | 42 ++++++++++++++++++++++++++++++++++++++++++
hw/vfio/meson.build           |  1 +
hw/vfio/migration.c           |  5 ++++-
include/hw/vfio/vfio-common.h |  4 ++++
include/migration/misc.h      |  3 ++-
migration/migration.c         | 31 +++++++++++++++++++++++++++----
migration/ram.c               |  9 +++++----
net/vhost-vdpa.c              |  4 ++++
ui/spice-core.c               |  2 +-
12 files changed, 105 insertions(+), 13 deletions(-)
create mode 100644 hw/vfio/cpr.c
[PATCH V1 0/3] allow cpr-reboot for vfio
Posted by Steve Sistare 1 year, 11 months ago
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.

This series depends on the series
  [PATCH V8 00/12] fix migration of suspended runstate

Steve Sistare (3):
  migration: check mode in notifiers
  migration: notifier error reporting
  vfio: allow cpr-reboot migration if suspended

 hw/net/virtio-net.c           |  4 ++++
 hw/vfio/common.c              |  2 +-
 hw/vfio/container.c           | 11 ++++++++++-
 hw/vfio/cpr.c                 | 42 ++++++++++++++++++++++++++++++++++++++++++
 hw/vfio/meson.build           |  1 +
 hw/vfio/migration.c           |  5 ++++-
 include/hw/vfio/vfio-common.h |  4 ++++
 include/migration/misc.h      |  3 ++-
 migration/migration.c         | 31 +++++++++++++++++++++++++++----
 migration/ram.c               |  9 +++++----
 net/vhost-vdpa.c              |  4 ++++
 ui/spice-core.c               |  2 +-
 12 files changed, 105 insertions(+), 13 deletions(-)
 create mode 100644 hw/vfio/cpr.c

-- 
1.8.3.1