Received: from eggs.gnu.org ([2001:4830:134:3::10]:57305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZemW-0004LR-Dm for qemu-devel@nongnu.org; Wed, 09 Sep 2015 08:47:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZemR-00058q-2t for qemu-devel@nongnu.org; Wed, 09 Sep 2015 08:47:20 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:40378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZemQ-000524-QG for qemu-devel@nongnu.org; Wed, 09 Sep 2015 08:47:15 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 9 Sep 2015 13:47:12 +0100 Date: Wed, 9 Sep 2015 14:46:58 +0200 From: Greg Kurz Message-ID: <20150909144658.740f8e05@bahia.local> In-Reply-To: <20150909092951.GH9777@stefanha-thinkpad.redhat.com> References: <1441625636-23773-1-git-send-email-pmorel@linux.vnet.ibm.com> <20150909092951.GH9777@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5] virtio dataplane: adapt dataplane for virtio Version 1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: mst@redhat.com, Pierre Morel , qemu-stable@nongnu.org, qemu-devel@nongnu.org, stefanha@redhat.com, cornelia.huck@de.ibm.com On Wed, 9 Sep 2015 10:29:51 +0100 Stefan Hajnoczi wrote: > On Mon, Sep 07, 2015 at 01:33:56PM +0200, Pierre Morel wrote: > > Let dataplane allocate different region for the desc/avail/used > > ring regions. > > Take VIRTIO_RING_F_EVENT_IDX into account to increase the used/avail > > rings accordingly. > > > > Signed-off-by: Pierre Morel > > (changed __virtio16 into uint16_t, > > map descriptor table and available ring read-only) > > Signed-off-by: Greg Kurz > > --- > > > > Changes from V4: > > - added comments for VIRTIO_RING_F_EVENT_IDX and mapping > > - use uint16_t as in ring definitions instead of __virtio16 > > - map descriptor table and available ring read-only > > > > Changes from V3: > > - added changelog > > > > Changes from V2: > > - incorporate the code directly in vring_setup(). > > - added room for the event indexes used with VIRTIO_RING_F_EVENT_IDX > > > > Changes from v1: > > - use a macro to gain LOCs inside of vring_setup() > > > > hw/virtio/dataplane/vring.c | 66 +++++++++++++++++++++++++++++-------- > > include/hw/virtio/dataplane/vring.h | 4 ++- > > 2 files changed, 55 insertions(+), 15 deletions(-) > > Thanks, applied to my block tree: > https://github.com/stefanha/qemu/commits/block > > Stefan > Cc: qemu-stable@nongnu.org -- Greg