From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEgee-0000mQ-Sw for qemu-devel@nongnu.org; Thu, 11 Jun 2009 05:33:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEgeZ-0000h9-V7 for qemu-devel@nongnu.org; Thu, 11 Jun 2009 05:33:04 -0400 Received: from [199.232.76.173] (port=55195 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEgeZ-0000gi-5B for qemu-devel@nongnu.org; Thu, 11 Jun 2009 05:32:59 -0400 Received: from mx2.redhat.com ([66.187.237.31]:48421) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MEgeY-0007Yw-N6 for qemu-devel@nongnu.org; Thu, 11 Jun 2009 05:32:58 -0400 From: Gerd Hoffmann Date: Thu, 11 Jun 2009 11:32:51 +0200 Message-Id: <1244712771-14432-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1244712771-14432-1-git-send-email-kraxel@redhat.com> References: <1244712771-14432-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH RESEND 4/4] 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 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; } -- 1.6.2.2