From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54939 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI8kw-0002le-Se for qemu-devel@nongnu.org; Mon, 15 Nov 2010 18:46:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PI8ku-0002dd-Hr for qemu-devel@nongnu.org; Mon, 15 Nov 2010 18:46:38 -0500 Received: from mail-iw0-f173.google.com ([209.85.214.173]:61956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PI8ku-0002dK-Ek for qemu-devel@nongnu.org; Mon, 15 Nov 2010 18:46:36 -0500 Received: by iwn36 with SMTP id 36so58227iwn.4 for ; Mon, 15 Nov 2010 15:46:35 -0800 (PST) Message-ID: <4CE1C655.6040603@codemonkey.ws> Date: Mon, 15 Nov 2010 17:46:29 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCHv2 2/2] tap: mark fd handler as device References: <20101104180406.GA2820@redhat.com> <5f91d600c749e66de107f60298c5ebd36645beff.1288892774.git.mst@redhat.com> <4CE149CB.1040301@codemonkey.ws> <20101115151817.GA30509@redhat.com> <4CE15B39.5070207@codemonkey.ws> <4CE1A0A3.4050406@codemonkey.ws> <20101115224433.GA5987@redhat.com> In-Reply-To: <20101115224433.GA5987@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Stefan Hajnoczi , qemu-devel@nongnu.org, Juan Quintela On 11/15/2010 04:44 PM, Michael S. Tsirkin wrote: > So I'm not sure I understand what is proposed here. > Care posting a patch? > I *think* just adding: if (vm_running == 0) { return qemu_net_queue_append(queue, sender, flags, data, size, NULL); } To qemu_net_queue_send() along with a state notifier to kick the queue on start would do the trick. Regards, Anthony Liguori