From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDe2l-0007V7-Hw for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:33:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDe2h-0007T0-PV for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:33:39 -0400 Received: from [199.232.76.173] (port=58049 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDe2h-0007Su-Ha for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:33:35 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35433) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDe2h-0002F6-0n for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:33:35 -0400 From: Gerd Hoffmann Date: Mon, 8 Jun 2009 14:33:26 +0200 Message-Id: <1244464407-3727-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1244464407-3727-1-git-send-email-kraxel@redhat.com> References: <1244464407-3727-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] xen nic: check tx queue after connect. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, xen-devel@lists.xensource.com Cc: Gerd Hoffmann 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 --- hw/xen_nic.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/xen_nic.c b/hw/xen_nic.c index 5fcc701..6f03ae7 100644 --- a/hw/xen_nic.c +++ b/hw/xen_nic.c @@ -354,6 +354,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; } -- 1.6.2.2