summaryrefslogtreecommitdiffstats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorLaurent Vivier2021-06-29 17:29:37 +0200
committerMichael S. Tsirkin2021-07-03 09:12:35 +0200
commit109c20ea28cc0d82fa353e692345b172cb5721cc (patch)
tree062cd3838283cfa30e22f6baa8fd4cae64068db1 /hw/net/virtio-net.c
parentvirtio-pci: Changed return values for "notify", "device" and "isr" read. (diff)
downloadqemu-109c20ea28cc0d82fa353e692345b172cb5721cc.tar.gz
qemu-109c20ea28cc0d82fa353e692345b172cb5721cc.tar.xz
qemu-109c20ea28cc0d82fa353e692345b172cb5721cc.zip
migration: failover: reset partially_hotplugged
When the card is plugged back, reset the partially_hotplugged flag to false Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1787194 Signed-off-by: Laurent Vivier <lvivier@redhat.com> Message-Id: <20210629152937.619193-1-lvivier@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
-rw-r--r--hw/net/virtio-net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index bd7958b9f0..16d20cdee5 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -3234,6 +3234,7 @@ static bool failover_replug_primary(VirtIONet *n, DeviceState *dev,
}
hotplug_handler_plug(hotplug_ctrl, dev, &err);
}
+ pdev->partially_hotplugged = false;
out:
error_propagate(errp, err);