Received: from eggs.gnu.org ([2001:4830:134:3::10]:55170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnrqI-0007QM-4p for qemu-devel@nongnu.org; Tue, 03 Dec 2013 10:24:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnrqB-0003a9-Fs for qemu-devel@nongnu.org; Tue, 03 Dec 2013 10:24:54 -0500 Date: Tue, 3 Dec 2013 16:24:42 +0100 From: Stefan Hajnoczi Message-ID: <20131203152442.GI24604@stefanha-thinkpad.muc.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] virtio virt-queue and virt-ring List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yaodong Yang Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org On Sun, Dec 01, 2013 at 05:12:52AM +0000, Yaodong Yang wrote: > Inside file ./hw/virtio/virtio.c, The following structs are defined. I understood that for each virtual disk, there is a corresponding queue and this queue is implemented by a ring. My questions is what is the meaning of each element inside struct VRing? Please see the virtio specification: https://github.com/rustyrussell/virtio-spec It defines the virtio-blk device. Stefan