Blame SOURCES/kvm-migration-failover-reset-partially_hotplugged.patch

a83cc2
From 2e07c4c66a1199ef33fb2e89164e03ca2acdcf10 Mon Sep 17 00:00:00 2001
a83cc2
From: Laurent Vivier <lvivier@redhat.com>
a83cc2
Date: Thu, 29 Jul 2021 07:42:12 -0400
a83cc2
Subject: [PATCH 10/39] migration: failover: reset partially_hotplugged
a83cc2
a83cc2
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
a83cc2
RH-MergeRequest: 32: Synchronize with RHEL-AV 8.5 release 27 to RHEL 9
a83cc2
RH-Commit: [2/15] b01f5640ce93192b2239ad4ef15ff53d977f2341 (mrezanin/centos-src-qemu-kvm)
a83cc2
RH-Bugzilla: 1957194
a83cc2
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
a83cc2
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
a83cc2
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
a83cc2
RH-Acked-by: Andrew Jones <drjones@redhat.com>
a83cc2
a83cc2
When the card is plugged back, reset the partially_hotplugged flag to false
a83cc2
a83cc2
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1787194
a83cc2
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
a83cc2
Message-Id: <20210629152937.619193-1-lvivier@redhat.com>
a83cc2
Reviewed-by: Juan Quintela <quintela@redhat.com>
a83cc2
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
a83cc2
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
a83cc2
(cherry picked from commit 109c20ea28cc0d82fa353e692345b172cb5721cc)
a83cc2
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
a83cc2
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
a83cc2
---
a83cc2
 hw/net/virtio-net.c | 1 +
a83cc2
 1 file changed, 1 insertion(+)
a83cc2
a83cc2
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
a83cc2
index 914051feb7..c2e32fedbf 100644
a83cc2
--- a/hw/net/virtio-net.c
a83cc2
+++ b/hw/net/virtio-net.c
a83cc2
@@ -3134,6 +3134,7 @@ static bool failover_replug_primary(VirtIONet *n, DeviceState *dev,
a83cc2
         }
a83cc2
         hotplug_handler_plug(hotplug_ctrl, dev, &err;;
a83cc2
     }
a83cc2
+    pdev->partially_hotplugged = false;
a83cc2
 
a83cc2
 out:
a83cc2
     error_propagate(errp, err);
a83cc2
-- 
a83cc2
2.27.0
a83cc2