qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] migration: failover: reset partially_hotplugged


From: Jason Wang
Subject: Re: [PATCH] migration: failover: reset partially_hotplugged
Date: Tue, 6 Jul 2021 10:52:41 +0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0


在 2021/6/29 下午11:29, Laurent Vivier 写道:
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>
---
  hw/net/virtio-net.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index bd7958b9f0ee..16d20cdee52a 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);


Acked-by: Jason Wang <jasowang@redhat.com>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]