mbox series

[RFC,0/6] virtio-net failover cleanup and new features

Message ID 20210816145824.15825-1-lvivier@redhat.com
Headers show
Series virtio-net failover cleanup and new features | expand

Message

Laurent Vivier Aug. 16, 2021, 2:58 p.m. UTC
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 (6):
  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: pci: unregister ROM on unplug
  pci: automatically unplug a PCI card before migration

 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 -
 hw/core/qdev.c                 |   4 +-
 hw/net/virtio-net.c            | 144 -------------------
 hw/pci/pci.c                   | 245 +++++++++++++++++++++++++++++++--
 hw/vfio/pci.c                  |   2 +-
 softmmu/qdev-monitor.c         |  14 +-
 9 files changed, 252 insertions(+), 173 deletions(-)