qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/6] virtio-net failover cleanup and new features
@ 2021-08-16 14:58 Laurent Vivier
  2021-08-16 14:58 ` [RFC PATCH 1/6] qdev: add an Error parameter to the DeviceListener hide_device() function Laurent Vivier
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Laurent Vivier @ 2021-08-16 14:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P. Berrangé, Eduardo Habkost, Michael S. Tsirkin,
	Jason Wang, Juan Quintela, Alex Williamson, Paolo Bonzini,
	Jens Freimann

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(-)

-- 
2.31.1




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-16 15:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-16 14:58 [RFC PATCH 0/6] virtio-net failover cleanup and new features Laurent Vivier
2021-08-16 14:58 ` [RFC PATCH 1/6] qdev: add an Error parameter to the DeviceListener hide_device() function Laurent Vivier
2021-08-16 14:58 ` [RFC PATCH 2/6] qdev/qbus: remove failover specific code Laurent Vivier
2021-08-16 14:58 ` [RFC PATCH 3/6] failover: virtio-net: remove failover_primary_hidden flag Laurent Vivier
2021-08-16 14:58 ` [RFC PATCH 4/6] failover: pci: move failover hotplug/unplug code into pci subsystem Laurent Vivier
2021-08-16 14:58 ` [RFC PATCH 5/6] failover: pci: unregister ROM on unplug Laurent Vivier
2021-08-16 14:58 ` [RFC PATCH 6/6] pci: automatically unplug a PCI card before migration Laurent Vivier

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).