qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [COMMIT 3e3cabc] xen nic: check tx queue after connect.


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 3e3cabc] xen nic: check tx queue after connect.
Date: Sat, 13 Jun 2009 13:42:50 -0000

From: Gerd Hoffmann <address@hidden>

Needed for savevm/loadvm + migration: In that case the queue might
already have packets on (re-)connect.  The guest wouldn't notify us
because notifications are only sent when stuffing a packet into an
empty queue.

Signed-off-by: Gerd Hoffmann <address@hidden>

diff --git a/hw/xen_nic.c b/hw/xen_nic.c
index 9a3c870..e4f71f7 100644
--- a/hw/xen_nic.c
+++ b/hw/xen_nic.c
@@ -356,6 +356,8 @@ static int net_connect(struct XenDevice *xendev)
                  "remote port %d, local port %d\n",
                  netdev->tx_ring_ref, netdev->rx_ring_ref,
                  netdev->xendev.remote_port, netdev->xendev.local_port);
+
+    net_tx_packets(netdev);
     return 0;
 }
 




reply via email to

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