From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9cYF-0000ia-CH for qemu-devel@nongnu.org; Wed, 05 May 2010 07:14:03 -0400 Received: from [140.186.70.92] (port=43701 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9cY9-0000eC-OS for qemu-devel@nongnu.org; Wed, 05 May 2010 07:14:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9cY8-0000Ci-8y for qemu-devel@nongnu.org; Wed, 05 May 2010 07:13:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41061) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9cY7-0000CZ-V2 for qemu-devel@nongnu.org; Wed, 05 May 2010 07:13:56 -0400 Date: Wed, 5 May 2010 14:09:47 +0300 From: "Michael S. Tsirkin" Message-ID: <20100505110947.GA27872@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] question on virtio List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rusty Russell Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org Hi! I see this in virtio_ring.c: /* Put entry in available array (but don't update avail->idx * until they do sync). */ Why is it done this way? It seems that updating the index straight away would be simpler, while this might allow the host to specilatively look up the buffer and handle it, without waiting for the kick. -- MST