]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci: add option for net failover
authorJens Freimann <jfreimann@redhat.com>
Tue, 29 Oct 2019 11:48:56 +0000 (12:48 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Oct 2019 22:55:26 +0000 (18:55 -0400)
commit4f5b6a05a4e76892d8d03838a36aca735e9bcefb
tree2861f170cc94a299472ffbd1cbbb2fb79435d995
parentf3a8505656935cde32e28c1c6317f725084da1e0
pci: add option for net failover

This patch adds a failover_pair_id property to PCIDev which is
used to link the primary device in a failover pair (the PCI dev) to
a standby (a virtio-net-pci) device.

It only supports ethernet devices. Also currently it only supports
PCIe devices. The requirement for PCIe is because it doesn't support
other hotplug controllers at the moment. The failover functionality can
be added to other hotplug controllers like ACPI, SHCP,... later on.

Signed-off-by: Jens Freimann <jfreimann@redhat.com>
Message-Id: <20191029114905.6856-3-jfreimann@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c
include/hw/pci/pci.h