Received: by 10.223.185.116 with SMTP id b49csp155574wrg; Tue, 13 Feb 2018 18:44:41 -0800 (PST) X-Google-Smtp-Source: AH8x227SrGYBgLBLkI3oHImrJGW9TU9gnGEu/sTn0qey3rq/NWqj6VQbVpa/tiHOhXe0EU2yJ0+F X-Received: by 10.98.61.93 with SMTP id k90mr537882pfa.133.1518576281499; Tue, 13 Feb 2018 18:44:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518576281; cv=none; d=google.com; s=arc-20160816; b=waQVux1MlkuOT+CNY0uopz+H4vM3CcTrvHKvdlvQRzFcpltvqN0EOLJJgOMVlrsfgG OBQY38eh9pQ/iBepXm9dRGvYnDDjzlhpZAb4iC8PFtYwr20HcJ8xWJ95DpDULXh99DTG JpJSYiON+V8j9bHv145b0IzsmUOjzSRiPnMBn5Z8/KrB1aovjrVR6M7xBbPLYfZH5Z72 RJZMMCEf/ZW40gmliWrSyRBZJEIe/ZIznmgWp1z8W9Hgy887EqrYMQx561vhRk/Yi4Bc L5oqliR8QKefK7KIoOmRp+KK5H0CBq/hLlNnJdIDJy3jjIHk+bL4+BCi/eDuImNjrzEm O6aw== 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=qEM2nIznd6k95J5Mc148JX5YSGsM/xMjVX/QmrWK1eU=; b=rf/UnL2YQY3PyJbqs4EPwBR6ZSAQDGN+Q7R0rt2TnVGeQGvJHaWTEFuU8U4QmUbwON +JnPrYoo2chxlEjbKn4Gbzn9hG30zSBHDf9xwVQN/b8k8JFkIRkx95cdz26BpDXfqtB/ 1za63ydNqu6iFGCAv4URCXET4aatQSnOddiiYU0ejZWkHWfdurHHouQIuCgJelu8S4J/ TchzJeA+At36d6Gg5tLbrJZACx/Uk8FCnrTL4W5dGx0JIR96acaU3p8Q0f+yMWYTMoQL lSMSdRpKDGeSw4mrGvaGATqAp3DD90TzQ7YHZj3bNCi5fins3ALK5ylhwcb5jeUmusvD WYeA== 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 i13si549385pfk.100.2018.02.13.18.44.24; Tue, 13 Feb 2018 18:44:41 -0800 (PST) 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 S966588AbeBNCnf (ORCPT + 99 others); Tue, 13 Feb 2018 21:43:35 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45978 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966382AbeBNCne (ORCPT ); Tue, 13 Feb 2018 21:43:34 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2505540FB637; Wed, 14 Feb 2018 02:43:34 +0000 (UTC) Received: from [10.72.12.122] (ovpn-12-122.pek2.redhat.com [10.72.12.122]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7C0F421411B6; Wed, 14 Feb 2018 02:43:30 +0000 (UTC) Subject: Re: [PATCH RFC 0/2] Packed ring for vhost To: mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: wexu@redhat.com, jfreimann@redhat.com, tiwei.bie@intel.com References: <1518575829-1431-1-git-send-email-jasowang@redhat.com> From: Jason Wang Message-ID: <1c200171-5d72-f410-7637-1ade5f41b550@redhat.com> Date: Wed, 14 Feb 2018 10:43:29 +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: <1518575829-1431-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.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 14 Feb 2018 02:43:34 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 14 Feb 2018 02:43:34 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.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 On 2018年02月14日 10:37, Jason Wang wrote: > Hi all: > > This RFC implement a subset of packed ring which was described at > https://github.com/oasis-tcs/virtio-docs/blob/master/virtio-v1.1-packed-wd07.pdf > . 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. > > It's not a complete implemention, here's what were missed: > > - Device Area > - Driver Area > - Descriptor indirection > - Zerocopy may not be functional > - Migration path is not tested > - Vhost devices except for net > - vIOMMU can not work (mainly because the metadata prefetch is not > implemented). > - See FIXME/TODO in the codes for more details > - No batching or other optimizations were implemented > > For a quick prototype, this series open code the tracking of warp > counter and descriptor index at net device. This will be addressed in > the future by: > > - Move get_rx_bufs() from net.c to vhost.c > - Let vhost_get_vq_desc() returns vring_used_elem instad of head id > > With the above, we can hide the internal (at least part of) vring > layout from specific device. > > Please review. > > Thanks It's near spring festival in China, will probably reply after the holiday. Thanks