From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUKcO-0007UL-92 for qemu-devel@nongnu.org; Mon, 11 Jan 2010 08:47:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUKcJ-0007R0-KL for qemu-devel@nongnu.org; Mon, 11 Jan 2010 08:47:39 -0500 Received: from [199.232.76.173] (port=59569 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUKcJ-0007Qr-Eu for qemu-devel@nongnu.org; Mon, 11 Jan 2010 08:47:35 -0500 Received: from verein.lst.de ([213.95.11.210]:43203) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1NUKcI-0003Dh-NF for qemu-devel@nongnu.org; Mon, 11 Jan 2010 08:47:35 -0500 Date: Mon, 11 Jan 2010 14:47:33 +0100 From: Christoph Hellwig Subject: Re: [Qemu-devel] Re: [RFC][PATCH] performance improvement for windows guests, running on top of virtio block device Message-ID: <20100111134733.GA27253@lst.de> References: <1263195647.2005.44.camel@localhost> <4B4AE1BD.4000400@redhat.com> <4B4AE95D.7080305@redhat.com> <4B4AED19.3060401@redhat.com> <20100111131119.GB24241@lst.de> <4B4B2411.7030301@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B4B2411.7030301@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Vadim Rozenfeld , Dor Laor , Christoph Hellwig , qemu-devel On Mon, Jan 11, 2010 at 03:13:53PM +0200, Avi Kivity wrote: > As Dor points out, the call to virtio_blk_handle_output() wants to be > before the test for pending, so we scan the ring as early as possible It could cause a race window where we add an entry to the ring after we run virtio_blk_handle_output, but before re-enabling the notification. But I think my variant of the patch that I just posted should deal with this in an even better way.