From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53524 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF2gL-000204-H6 for qemu-devel@nongnu.org; Thu, 20 May 2010 06:08:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF2gJ-0001R7-Tm for qemu-devel@nongnu.org; Thu, 20 May 2010 06:08:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29415) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF2gJ-0001Qu-Mc for qemu-devel@nongnu.org; Thu, 20 May 2010 06:08:47 -0400 Date: Thu, 20 May 2010 13:04:47 +0300 From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used index into ring itself Message-ID: <20100520100447.GC5717@redhat.com> References: <20100505205814.GA7090@redhat.com> <201005191709.16401.rusty@rustcorp.com.au> <4BF39C12.7090407@redhat.com> <201005201431.51142.rusty@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201005201431.51142.rusty@rustcorp.com.au> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rusty Russell Cc: qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, Avi Kivity , kvm@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, May 20, 2010 at 02:31:50PM +0930, Rusty Russell wrote: > Can we do better? The obvious idea is to try to get rid of last_used and > used, and use the ring itself. We would use an invalid entry to mark the > head of the ring. > > Any other thoughts? > Rusty. We also need a way to avoid interrupts at least while we are processing the ring. -- MST