Received: by 10.213.65.68 with SMTP id h4csp1666143imn; Mon, 26 Mar 2018 12:03:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELvBUT7I2EWl3ymqcgqJc7YBewPKU+aIyN4tsmCbwL6UfT4PmLF8xuecSNAWQr+DrDjuYBCq X-Received: by 10.98.71.211 with SMTP id p80mr16573856pfi.136.1522091023181; Mon, 26 Mar 2018 12:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522091023; cv=none; d=google.com; s=arc-20160816; b=YBTbgNtslnNNBjuaSSwjPgNm0c/vpjfTL++zQf6OlI5+DLa9Jtdv8WNCJFrjRk4Ope c4/fEKM6EPdXFkLZpd4q3IFzXsmVDupsSB+ryBJ+TUEoAK9mNTr/LjTHlt7p8qVgChHM qAmplcfQOQqWQzotUW+2RghrFHBb7hK/RLkedFr80ug/V17oRyN9prikS5xJK2repoqj TjtaQaacVAvuu9sTHCvqHX7NPDZdSPat1byQHlP0HunahFjSS+TD39sh3Fq+iZEF1qSB EA/KH10ekrE2naUpZXF9UQwmeUjyazvtC8/YHFUE7pNls7Yc5I5Fyt0CMEqvFmA8pSol Uw+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=6E2/dHfXbPPm2RDQNwtD9Ayva7zxDaj9EduLO9g7xnI=; b=Kzc6t6t5H/D1MaS6NGaivXmaEhgLmWJyYeiPfMAru5aHVYIGZK5zSgQW35GvXfiq9y 4HkmFQ0iklnQNhg8ua+PlukFXW/mgXxM/QJF/Y7JudYMqf/DnIkHVWhc4k2Mbgxhj6m4 eytNnzWamzgjBO7HTq9kDVYwY2CCetuf/GJ6IBKcYO0Q1tY1M3Qil14QHebLJQ6v9E+D 94OmYB/VMuddL6UHXY05uwtnScanqMAxCzCQZRBjOldf77Wll/1RKw0B52xkhGPAvCWH tnLcjY3NRWEbAW5ZlwKgO0CJ7n7kIYfmkcfUqGu+wM5VjAyamNQKH5EQZRbqJHXuvafV fgQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Fq3Wbmuj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r20si11933443pfk.125.2018.03.26.12.03.27; Mon, 26 Mar 2018 12:03:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Fq3Wbmuj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbeCZTCb (ORCPT + 99 others); Mon, 26 Mar 2018 15:02:31 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:41282 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbeCZTC3 (ORCPT ); Mon, 26 Mar 2018 15:02:29 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2QIs0fm049995; Mon, 26 Mar 2018 19:02:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=6E2/dHfXbPPm2RDQNwtD9Ayva7zxDaj9EduLO9g7xnI=; b=Fq3WbmujO5LuPxjSgqmn/tLd9APbO2Q81qCYsD238YXiFP7/eR11bi2ID8kFIHrhO087 VA+ZeT9nAPLAJaej2Aab8+hE8EG4AAVdror9WWLhtr9yCeWxYzZ0s8sZKVyT4dv8lB6R s56TK/coO6Awz6NFc0rCiXaFqzcUOL+FpPSkdieu7cIBCl0VYyyI64pD4nI2iiuwuIHZ aWWPl3349oJIOVxM+WybOTmvm7SRFn+g/hbWqORbRwnzf77XY4TO0TGAga2tLE6Zzynu /IQGDUatxVYnYWJzVKIeEs4miyTk6CLqabP0hyD7ickjjUTkeugxWBeDaJzFsH0uGs8s Ow== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2gy6j0r16e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Mar 2018 19:02:25 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2QJ1Xg7003282 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Mar 2018 19:01:34 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2QJ1WPr001703; Mon, 26 Mar 2018 19:01:32 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 26 Mar 2018 12:01:32 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id 48A5A6A0095; Mon, 26 Mar 2018 15:01:30 -0400 (EDT) Date: Mon, 26 Mar 2018 15:01:30 -0400 From: Konrad Rzeszutek Wilk To: Jason Wang Cc: mst@redhat.com, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH V2 0/8] Packed ring for vhost Message-ID: <20180326190130.GE6928@char.us.oracle.com> References: <1522035533-11786-1-git-send-email-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522035533-11786-1-git-send-email-jasowang@redhat.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8844 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803260185 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 11:38:45AM +0800, Jason Wang wrote: > Hi all: > > This RFC implement packed ring layout. The code were tested with pmd > implement by Jens at > http://dpdk.org/ml/archives/dev/2018-January/089417.html. Minor change > was needed for pmd codes to kick virtqueue since it assumes a busy > polling backend. > > Test were done between localhost and guest. Testpmd (rxonly) in guest > reports 2.4Mpps. Testpmd (txonly) repots about 2.1Mpps. And how does it compare to older ring layout? > > Notes: The event suppression /indirect descriptor support is complied > test only because of lacked driver support. > > Changes from V1: > > - Refactor vhost used elem code to avoid open coding on used elem > - Event suppression support (compile test only). > - Indirect descriptor support (compile test only). > - Zerocopy support. > - vIOMMU support. > - SCSI/VSOCK support (compile test only). > - Fix several bugs > > For simplicity, I don't implement batching or other optimizations. > > Please review. > > Thanks > > Jason Wang (8): > vhost: move get_rx_bufs to vhost.c > vhost: hide used ring layout from device > vhost: do not use vring_used_elem > vhost_net: do not explicitly manipulate vhost_used_elem > vhost: vhost_put_user() can accept metadata type > virtio: introduce packed ring defines > vhost: packed ring support > vhost: event suppression for packed ring > > drivers/vhost/net.c | 138 ++----- > drivers/vhost/scsi.c | 62 +-- > drivers/vhost/vhost.c | 818 ++++++++++++++++++++++++++++++++++--- > drivers/vhost/vhost.h | 46 ++- > drivers/vhost/vsock.c | 42 +- > include/uapi/linux/virtio_config.h | 9 + > include/uapi/linux/virtio_ring.h | 32 ++ > 7 files changed, 921 insertions(+), 226 deletions(-) > > -- > 2.7.4 >