Received: from eggs.gnu.org ([2001:4830:134:3::10]:40449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLYop-000834-Dv for qemu-devel@nongnu.org; Tue, 19 Jan 2016 11:07:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLYok-0000as-Bj for qemu-devel@nongnu.org; Tue, 19 Jan 2016 11:07:43 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:51533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLYoj-0000aL-Vr for qemu-devel@nongnu.org; Tue, 19 Jan 2016 11:07:38 -0500 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 19 Jan 2016 16:07:34 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 6D06E2190068 for ; Tue, 19 Jan 2016 16:07:19 +0000 (GMT) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u0JG7V6G12779872 for ; Tue, 19 Jan 2016 16:07:31 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u0JG7UHN021256 for ; Tue, 19 Jan 2016 11:07:30 -0500 Date: Tue, 19 Jan 2016 17:07:28 +0100 From: Cornelia Huck Message-ID: <20160119170728.10bfe50c.cornelia.huck@de.ibm.com> In-Reply-To: <1452861718-25806-8-git-send-email-pbonzini@redhat.com> References: <1452861718-25806-1-git-send-email-pbonzini@redhat.com> <1452861718-25806-8-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 07/10] virtio: combine the read of a descriptor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, mst@redhat.com On Fri, 15 Jan 2016 13:41:55 +0100 Paolo Bonzini wrote: > Compared to vring, virtio has a performance penalty of 10%. Fix it > by combining all the reads for a descriptor in a single address_space_read > call. This also simplifies the code nicely. > > Signed-off-by: Paolo Bonzini > --- > hw/virtio/virtio.c | 86 ++++++++++++++++++++++-------------------------------- > 1 file changed, 35 insertions(+), 51 deletions(-) Nice :) Reviewed-by: Cornelia Huck