Received: by 10.213.65.68 with SMTP id h4csp993448imn; Sun, 25 Mar 2018 20:45:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELvJqh7Egk1wISgaR7AZ92SzainSJUc241892iL2Mmex2IC15neeC7p3w1sQImyCMQUnlEwt X-Received: by 10.98.56.131 with SMTP id f125mr31723513pfa.190.1522035954456; Sun, 25 Mar 2018 20:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522035954; cv=none; d=google.com; s=arc-20160816; b=yqzICaTOlhORdjbpcrdCcTEXGGLVzWJnGWu/JYsH/MI52RX/mnLk+JosixUNnTS9cC 4FSg/iXoeOgxFAMfA5MhGT33WtZHuulMCQj918Eacr/YS7UdmBpJBKeB6GW0xXk0r5+5 D4nfQNtWxRZzf/ZRGr075akReHaNnMWgM4N1YopFv8SnrFM7DfSseOrHtzzrFlCPgHiy 2HeE49IOGp85tS3H6Tc0CmJgHhV37HsT4yXr5cPaAsoMP2I7TXVRDMSZWQnKL+JgA1wa mEOnuWuFj9nBnKrk+ZkRbqoFpnH6jhJuxK3zYqdSNzDUSvTKL39GbVIPJ1cvKR+7Wrsf ebFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=9Gd6mr9DTzKhqWcdRyA36fGX+/+CFcJrYdhpyTaJ7xE=; b=VA9fey04ovz+eurYqQfPGQuYjaApcgQ0zssgCzfk5fDMhvoXjjUWrue9xWLqhSH3mw UHZjaqic4PjlWZpFzN37h7c7YQrt+Xzjy60f/dt0yZe5MkoqUWrP6SiAd8maaZIjhyYa yULZT4/cAA1VkD5ZcPjk4wy56Y0fwor1ypdRQ4nb6SlDqkRVZIrhIlUhNFeKeejnKT+F tq61QdNeGeWJgXTccjqzIwddzzRoSBYzEoCpBof/omlq1FhStXMRP3sOtFOnHdlMSenD 6XYV+hCdX3W0m1rR58DPcwPHnqZKlb1rsl29sXEK6ZSQ5Kj+QOmyHFtJNKcxxo3bG+/F Q/6A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11-v6si14109041plb.658.2018.03.25.20.45.40; Sun, 25 Mar 2018 20:45:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbeCZDol (ORCPT + 99 others); Sun, 25 Mar 2018 23:44:41 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45516 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750960AbeCZDoj (ORCPT ); Sun, 25 Mar 2018 23:44:39 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 42A57818B123; Mon, 26 Mar 2018 03:44:39 +0000 (UTC) Received: from [10.72.12.110] (ovpn-12-110.pek2.redhat.com [10.72.12.110]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EA9DAD7E01; Mon, 26 Mar 2018 03:44:30 +0000 (UTC) Subject: Re: [RFC PATCH V2 0/8] Packed ring for vhost To: mst@redhat.com, virtualization@lists.linux-foundation.org Cc: kvm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Tiwei Bie , Jens Freimann , Wei Xu References: <1522035533-11786-1-git-send-email-jasowang@redhat.com> From: Jason Wang Message-ID: <1529f62d-dc16-d279-2ebf-85a6d2029ebe@redhat.com> Date: Mon, 26 Mar 2018 11:44:26 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1522035533-11786-1-git-send-email-jasowang@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 26 Mar 2018 03:44:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 26 Mar 2018 03:44:39 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jasowang@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cc Jens, Tiwei and Wei Thanks On 2018年03月26日 11:38, 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. > > 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(-) >