Skip to content

RFC virtio-net failover cleanup and new features

Laurent Vivier qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest8 patches 4 repliesIn review
  2. v1 RFC6 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8qdev: add an Error parameter to the DeviceListener hide_device() functionhw/core/qdev.c hw/net/virtio-net.c include/hw/qdev-core.h +1 more+9 -71 reply
2/8qdev/qbus: remove failover specific codehw/net/virtio-net.c softmmu/qdev-monitor.c+11 -101 reply
3/8failover: virtio-net: remove failover_primary_hidden flaghw/net/virtio-net.c include/hw/virtio/virtio-net.h+15 -121 reply
4/8failover: pci: move failover hotplug/unplug code into pci subsystemhw/net/virtio-net.c hw/pci/pci.c include/hw/pci/pci.h +2 more+169 -1600 replies
5/8failover: hide the PCI device if the virtio-net device is not presenthw/pci/pci.c+4 -30 replies
6/8failover: pci: unregister ROM on unplughw/pci/pci.c+1 -01 reply
7/8pci: automatically unplug a PCI card before migrationhw/pci/pci.c hw/vfio/pci.c include/hw/pci/pci.h+69 -100 replies
8/8failover: qemu-opts: manage hidden device listhw/core/qdev.c hw/net/virtio-net.c hw/pci/pci.c +2 more+91 -50 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchJuan Quintela
1/8R-b
2/8R-b
3/8R-b
4/8
5/8
6/8R-b
7/8
8/8

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

Read the v2 thread

Cover letter [RFC PATCH v2 0/8] virtio-net failover cleanup and new features

v2: add helpers to manage the list of hidden devices rather
than relying on the command line parameters
Hide VFIO device if it is plugged before the virtio-net one

This series moves the code used by virtio-net failover from the virtio-net device to the PCI subsystem.

Doing that, we can use failover with a regular QEMU PCI device (we can add the function call to unregister the ROM vmstate) and we can also use this code to unplug a PCI card before migration and plug it back after migration without using a failover device (of course, connectivity is lost during all the migration). In contrary of failover, this does not need support from the guest system to work.

Laurent Vivier (8):
qdev: add an Error parameter to the DeviceListener hide_device()
function
qdev/qbus: remove failover specific code
failover: virtio-net: remove failover_primary_hidden flag
failover: pci: move failover hotplug/unplug code into pci subsystem
failover: hide the PCI device if the virtio-net device is not present
failover: pci: unregister ROM on unplug
pci: automatically unplug a PCI card before migration
failover: qemu-opts: manage hidden device list

 include/hw/pci/pci.h           |   5 +
 include/hw/qdev-core.h         |   6 +-
 include/hw/virtio/virtio-net.h |   4 -
 include/hw/virtio/virtio.h     |   1 -
 include/qemu/option.h          |   4 +
 hw/core/qdev.c                 |   5 +-
 hw/net/virtio-net.c            | 149 +-------------------
 hw/pci/pci.c                   | 242 +++++++++++++++++++++++++++++++--
 hw/vfio/pci.c                  |   2 +-
 softmmu/qdev-monitor.c         |  14 +-
 util/qemu-option.c             |  82 +++++++++++
 11 files changed, 338 insertions(+), 176 deletions(-)
Signature · 1 line
2.31.1