From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQwhp-0002dB-RT for qemu-devel@nongnu.org; Wed, 03 Feb 2016 07:38:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQwhl-0004Eu-Rw for qemu-devel@nongnu.org; Wed, 03 Feb 2016 07:38:45 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:5383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQwhl-0004EB-8U for qemu-devel@nongnu.org; Wed, 03 Feb 2016 07:38:41 -0500 From: "Gonglei (Arei)" Date: Wed, 3 Feb 2016 12:38:22 +0000 Message-ID: <33183CC9F5247A488A2544077AF19020B02DA817@SZXEMA503-MBS.china.huawei.com> References: <1454236146-23293-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1454236146-23293-1-git-send-email-pbonzini@redhat.com> Content-Language: zh-CN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v2 00/10] virtio/vring: optimization patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , "qemu-devel@nongnu.org" Cc: "cornelia.huck@de.ibm.com" , "mst@redhat.com" > -----Original Message----- > From: qemu-devel-bounces+arei.gonglei=3Dhuawei.com@nongnu.org > [mailto:qemu-devel-bounces+arei.gonglei=3Dhuawei.com@nongnu.org] On > Behalf Of Paolo Bonzini > Sent: Sunday, January 31, 2016 6:29 PM > To: qemu-devel@nongnu.org > Cc: cornelia.huck@de.ibm.com; mst@redhat.com > Subject: [Qemu-devel] [PATCH v2 00/10] virtio/vring: optimization patches >=20 > This includes two optimization of virtio: >=20 > - "slimming down" VirtQueueElements by not including room for > 1024 buffers. This makes malloc much faster. >=20 > - optimizations to limit the number of address_space_translate > calls in virtio.c, from Vincenzo and myself. >=20 > Thanks, >=20 > Paolo >=20 > v1->v2: improved commit messages [Conny] > add assertions on sz [Conny] > change bools from 1 and 0 to "true" and "false" [Conny] > update shadow avail_idx in virtio_queue_set_last_avail_idx [Micha= el] > collect Reviewed-by >=20 > Paolo Bonzini (7): > virtio: move VirtQueueElement at the beginning of the structs > virtio: move allocation to virtqueue_pop/vring_pop > virtio: introduce qemu_get/put_virtqueue_element > virtio: introduce virtqueue_alloc_element > virtio: slim down allocation of VirtQueueElements > vring: slim down allocation of VirtQueueElements > virtio: combine the read of a descriptor >=20 > Vincenzo Maffione (3): > virtio: cache used_idx in a VirtQueue field > virtio: read avail_idx from VQ only when necessary > virtio: combine write of an entry into used ring >=20 > hw/9pfs/9p.c | 2 +- > hw/9pfs/virtio-9p-device.c | 17 +- > hw/9pfs/virtio-9p.h | 2 +- > hw/block/dataplane/virtio-blk.c | 11 +- > hw/block/virtio-blk.c | 23 +-- > hw/char/virtio-serial-bus.c | 78 +++++---- > hw/display/virtio-gpu.c | 25 ++- > hw/input/virtio-input.c | 24 ++- > hw/net/virtio-net.c | 69 +++++--- > hw/scsi/virtio-scsi-dataplane.c | 15 +- > hw/scsi/virtio-scsi.c | 26 ++- > hw/virtio/dataplane/vring.c | 62 ++++--- > hw/virtio/virtio-balloon.c | 22 ++- > hw/virtio/virtio-rng.c | 10 +- > hw/virtio/virtio.c | 340 > +++++++++++++++++++++++++----------- > include/hw/virtio/dataplane/vring.h | 2 +- > include/hw/virtio/virtio-balloon.h | 2 +- > include/hw/virtio/virtio-blk.h | 5 +- > include/hw/virtio/virtio-net.h | 2 +- > include/hw/virtio/virtio-scsi.h | 15 +- > include/hw/virtio/virtio-serial.h | 2 +- > include/hw/virtio/virtio.h | 13 +- > 22 files changed, 486 insertions(+), 281 deletions(-) >=20 > -- > 2.5.0 >=20 For patch 7,8,9,10: Tested-by: Gonglei Regards, -Gonglei