From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZADlx-000227-3t for qemu-devel@nongnu.org; Wed, 01 Jul 2015 04:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZADlt-0008NO-J5 for qemu-devel@nongnu.org; Wed, 01 Jul 2015 04:53:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZADlt-0008NH-Ar for qemu-devel@nongnu.org; Wed, 01 Jul 2015 04:53:33 -0400 Date: Wed, 1 Jul 2015 16:53:29 +0800 From: Fam Zheng Message-ID: <20150701085329.GB9362@ad.nay.redhat.com> References: <1435739014-23610-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435739014-23610-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH] net: Flush queued packets when guest resumes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jason Wang , chao.zhou@intel.com, Stefan Hajnoczi On Wed, 07/01 16:23, Fam Zheng wrote: > Since commit 6e99c63 "net/socket: Drop net_socket_can_send" and friends, > net queues need to be explicitly flushed after qemu_can_send_packet() > returns false, because the netdev side will disable the polling of fd. > > This fixes the case of "cont" after "stop" (or migration), i.e. > vm_running changes to true, by listening to vm state changes. > > Signed-off-by: Fam Zheng Note that to fix virtio-net, this patch is also needed: http://lists.nongnu.org/archive/html/qemu-devel/2015-06/msg07377.html Fam