From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58643 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI6FW-0004Yo-Dj for qemu-devel@nongnu.org; Mon, 15 Nov 2010 16:06:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PI6FG-0003jh-IF for qemu-devel@nongnu.org; Mon, 15 Nov 2010 16:06:02 -0500 Received: from mail-qw0-f45.google.com ([209.85.216.45]:43017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PI6FG-0003jP-G3 for qemu-devel@nongnu.org; Mon, 15 Nov 2010 16:05:46 -0500 Received: by qwd7 with SMTP id 7so48120qwd.4 for ; Mon, 15 Nov 2010 13:05:45 -0800 (PST) Message-ID: <4CE1A0A3.4050406@codemonkey.ws> Date: Mon, 15 Nov 2010 15:05:39 -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> In-Reply-To: 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: Stefan Hajnoczi Cc: Juan Quintela , qemu-devel@nongnu.org, "Michael S. Tsirkin" On 11/15/2010 02:53 PM, Stefan Hajnoczi wrote: > > vhost has a solution for this: register a VMChangeStateHandler > function that stops ioeventfd while vm_stop(0) is in effect. Then > poll to see if there is work pending. > > I will add equivalent functionality to virtio-ioeventfd. > I still think that stopping this at the net/block layer is going to be a lot more robust in the long term. All net/block traffic flows through a single set of interfaces whereas getting the devices to completely stop themselves requires touching every device and making sure that noone adds back vmstop-unfriendly behavior down the road. Regards, Anthony Liguori > Stefan >