Received: by 10.192.165.148 with SMTP id m20csp3833934imm; Mon, 23 Apr 2018 13:15:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Ghtw8P5iVWcwozmiOo/V54JE5mcaQZktuyJvUoi8NfTPL4ap0Qk+5Tx05zvZTTmjZy4N3 X-Received: by 10.99.167.75 with SMTP id w11mr17935168pgo.351.1524514522948; Mon, 23 Apr 2018 13:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524514522; cv=none; d=google.com; s=arc-20160816; b=QNb1hZTJMs5L76sRXo+bWh5NrL+HRjOWuTajBQM3c2L1GYc4xnQMCPSRqXies/7/az +PZ9/Wc3hDFVs8OuI5XnqFt5+DBwhya0feGL9uN+q4m2MS/Het3XPHThhSia0G0ZzdUF GXBEhHJa2UvHDrXR4LWLFSJxtPbvDBJTBtizgeC2+JHUQrHQ3EKWiJ7oZdMa2U6U99Bw OosN+ycBAj2ZEGYYLL3TAbPH1LLN0Xt9nzloxdJ/CZYL3EjfcQ+4iLN96oco3pGspjx9 W7TRWgkUOoASvmpSHHORAkveeSK3pHIm8aUFoz0hqfSe45iK08mLuZEwiIXKLGoU/qQI pNQA== 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=b1xObeq7o0I4TtpIvSRLSTeWmINRP/SyPNoKuBeuJlo=; b=MhZNIeIbbkwBe5O/pAB7tAOPRulE9IflZsMKEtGvrUDy4fgBkUHx3CxqIae0bu6gaD 0LlMeC0anz8s3te+6By35i9+V4igi4XH0va7/u6DDXzzuBNbYiyIplnDgJDy4oOElu0l Gzi41izJt/aFBwPV5H300TmHSc4R9cEYTObMWEUGCEwDBSxweDAPqSRlS/n7g4MvDgxO xp9oPRTi0jRPnWrUCCYxbIEQlM1EZr3xbtSUIg1pwDD2OY9Tor2pwD092RPxyd0zxfAc imOKAio708gDcMzvl9hT5+NXq5GIW8H3nRnfpi24vkvT+eVx6qqSolkM6RYLhsnXauua 1w/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=h11azeeO; 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 q9si11546708pff.109.2018.04.23.13.15.08; Mon, 23 Apr 2018 13:15:22 -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=h11azeeO; 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 S932580AbeDWUMl (ORCPT + 99 others); Mon, 23 Apr 2018 16:12:41 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:44282 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932558AbeDWUMd (ORCPT ); Mon, 23 Apr 2018 16:12:33 -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 w3NKAxxH056263; Mon, 23 Apr 2018 20:11:55 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=b1xObeq7o0I4TtpIvSRLSTeWmINRP/SyPNoKuBeuJlo=; b=h11azeeOxKPqGtsCOc0Nrxl/OKD9ecLiuaCoFMzMRfg4c2y75dMc61Eezepdj3c5VcMu GkHUxG51Lg2zIvNdSO+O/+KN3W9vxZmm6ToojKcCesXM/7vEEUbdhYNXcj1r9EwX/tYr Y3AGyMsKHAfI44szIRSL1TBZh62IBUmwMBe7qlkXbSQZQIcGvjai6N5L4+E4Q4qNjaWg 3J1ZwVIIWez8qezyq0Oe+GHXtumjFADyf/G7EDFgKqgyG3G8/jcA/ZXzLXI2L0k6sjkM L6tlSKql68SNFcn77pQjlIq7IeBu/4x90B512zbmKvSPqxbOqSqYB+X1QQPza0EgTcR3 nQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2hfvrbq4mx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Apr 2018 20:11:55 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3NKBsBa025396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Apr 2018 20:11:54 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w3NKBs2v031097; Mon, 23 Apr 2018 20:11:54 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 23 Apr 2018 13:11:54 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id 08A4E6A0057; Mon, 23 Apr 2018 16:11:51 -0400 (EDT) Date: Mon, 23 Apr 2018 16:11:51 -0400 From: Konrad Rzeszutek Wilk To: "Michael S. Tsirkin" Cc: Jason Wang , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, tiwei.bie@intel.com, jfreimann@redhat.com, wexu@redhat.com Subject: Re: [RFC V3 PATCH 0/8] Packed ring for vhost Message-ID: <20180423201151.GD5215@char.us.oracle.com> References: <1524461700-5469-1-git-send-email-jasowang@redhat.com> <20180423193120.GD30033@char.us.oracle.com> <20180423224715-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423224715-mutt-send-email-mst@kernel.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8872 signatures=668698 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-1804230201 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 10:59:43PM +0300, Michael S. Tsirkin wrote: > On Mon, Apr 23, 2018 at 03:31:20PM -0400, Konrad Rzeszutek Wilk wrote: > > On Mon, Apr 23, 2018 at 01:34:52PM +0800, Jason Wang wrote: > > > Hi all: > > > > > > This RFC implement packed ring layout. The code were tested with > > > Tiwei's RFC V2 a thttps://lkml.org/lkml/2018/4/1/48. Some fixups and > > > tweaks were needed on top of Tiwei's code to make it run. TCP stream > > > and pktgen does not show obvious difference compared with split ring. > > > > I have to ask then - what is the benefit of this? > > You can use this with dpdk within guest. > The DPDK version did see a performance improvement so hopefully with Is there a link to this performance improvement document? > future versions this will too. > > > > > > > Changes from V2: > > > - do not use & in checking desc_event_flags > > > - off should be most significant bit > > > - remove the workaround of mergeable buffer for dpdk prototype > > > - id should be in the last descriptor in the chain > > > - keep _F_WRITE for write descriptor when adding used > > > - device flags updating should use ADDR_USED type > > > - return error on unexpected unavail descriptor in a chain > > > - return false in vhost_ve_avail_empty is descriptor is available > > > - track last seen avail_wrap_counter > > > - correctly examine available descriptor in get_indirect_packed() > > > - vhost_idx_diff should return u16 instead of bool > > > > > > 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. > > > > > > 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 | 136 ++---- > > > drivers/vhost/scsi.c | 62 +-- > > > drivers/vhost/vhost.c | 824 ++++++++++++++++++++++++++++++++++--- > > > drivers/vhost/vhost.h | 47 ++- > > > drivers/vhost/vsock.c | 42 +- > > > include/uapi/linux/virtio_config.h | 9 + > > > include/uapi/linux/virtio_ring.h | 32 ++ > > > 7 files changed, 926 insertions(+), 226 deletions(-) > > > > > > -- > > > 2.7.4 > > >