From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZbhX-0001as-5y for qemu-devel@nongnu.org; Wed, 09 Sep 2015 05:30:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZbhS-00065k-NP for qemu-devel@nongnu.org; Wed, 09 Sep 2015 05:29:58 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:35499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZbhS-00065a-79 for qemu-devel@nongnu.org; Wed, 09 Sep 2015 05:29:54 -0400 Received: by wicge5 with SMTP id ge5so147184304wic.0 for ; Wed, 09 Sep 2015 02:29:53 -0700 (PDT) Date: Wed, 9 Sep 2015 10:29:51 +0100 From: Stefan Hajnoczi Message-ID: <20150909092951.GH9777@stefanha-thinkpad.redhat.com> References: <1441625636-23773-1-git-send-email-pmorel@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441625636-23773-1-git-send-email-pmorel@linux.vnet.ibm.com> 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: Pierre Morel Cc: cornelia.huck@de.ibm.com, gkurz@linux.vnet.ibm.com, qemu-devel@nongnu.org, stefanha@redhat.com, mst@redhat.com 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