Received: from eggs.gnu.org ([2001:4830:134:3::10]:55095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLWqT-0000n9-8c for qemu-devel@nongnu.org; Tue, 19 Jan 2016 09:01:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLWqO-000335-7E for qemu-devel@nongnu.org; Tue, 19 Jan 2016 09:01:17 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:34232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLWqN-00032y-SS for qemu-devel@nongnu.org; Tue, 19 Jan 2016 09:01:12 -0500 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 19 Jan 2016 14:01:09 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id E65A21B08061 for ; Tue, 19 Jan 2016 14:01:09 +0000 (GMT) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u0JE15V845088936 for ; Tue, 19 Jan 2016 14:01:05 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u0JE153P022985 for ; Tue, 19 Jan 2016 07:01:05 -0700 Date: Tue, 19 Jan 2016 15:01:02 +0100 From: Cornelia Huck Message-ID: <20160119150102.6974b46e.cornelia.huck@de.ibm.com> In-Reply-To: <569E389D.7050604@redhat.com> References: <1452861718-25806-1-git-send-email-pbonzini@redhat.com> <1452861718-25806-2-git-send-email-pbonzini@redhat.com> <20160119130957.77634a1d.cornelia.huck@de.ibm.com> <569E389D.7050604@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 01/10] virtio: move VirtQueueElement at the beginning of the structs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, mst@redhat.com On Tue, 19 Jan 2016 14:22:37 +0100 Paolo Bonzini wrote: > The next patch will make virtqueue_pop/vring_pop allocate memory for the > VirtQueueElement. In some cases (blk, scsi, gpu) the device wants to > extend VirtQueueElement with device-specific fields and, until now, the > place of the VirtQueueElement within the containing struct didn't > matter. When allocating the entire block in virtqueue_pop/vring_pop, > however, the containing struct must basically be a "subclass" of > VirtQueueElement, with the VirtQueueElement as the first field. Make > that the case for blk and scsi; gpu is already doing it. Sounds good!