From: Laurent Vivier Date: Tue, 29 Jun 2021 15:29:37 +0000 (+0200) Subject: migration: failover: reset partially_hotplugged X-Git-Tag: v6.1.0-rc0~35^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=109c20ea28cc0d82fa353e692345b172cb5721cc;p=thirdparty%2Fqemu.git 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 Message-Id: <20210629152937.619193-1-lvivier@redhat.com> Reviewed-by: Juan Quintela Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index bd7958b9f0e..16d20cdee52 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);