Received: by 10.213.65.68 with SMTP id h4csp3379647imn; Mon, 9 Apr 2018 20:27:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx49lT5YuGOzxz/czYdjYUaz7jbfM37H1dQnzWviK0Ez97my4qS5soHUpalBmF86J6Nyz45Cb X-Received: by 2002:a17:902:525:: with SMTP id 34-v6mr41095674plf.267.1523330830880; Mon, 09 Apr 2018 20:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523330830; cv=none; d=google.com; s=arc-20160816; b=picBerfa8k/XFSiyolGcUns47S3KcQjWNxLhhb6vnRIbuHWjwloWQg3uMN4+0ffQNK MFRMJBswtgvAnBSLqZJ9muVePneiZiEaT/rpx4+CGuuCxTu6LB6/mVL4IN4yHtg0upFT QekHmkm1ZTnAQ9Kb6/RZf1Zu8kt0crnQyft865sYCDT7wEsfY7/izylapepfnkU1bzDl 12apiV+2TC94Cq4fH6ZdPN6ZEdV5CzHjsDKGzFeTxO9JpPn1EjSG9GQWWKiSixHskhBR gtpVq0A4wJBcFlUawDhBbvxECydQmh9t11leTe5MvVSs5jmXk83vZ77kd5f7ZIa8WILZ Nvdw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=suOrko2GduQjHq2O0S330YIdM5aPlxbhXbc1KXBMU6g=; b=kBgi5QqU4Sh0Ae8N8uXqEz5k4vWCWUXrFaA8sUCv9WNsxi24BQ1OM/HV5siStpl2WP Mm2EfmOskwXYfcpIU3a6W1WNYPC0NerrL8hjd0hlayMQaP3teG2Zno+8ROvhI2BC61nE 8ihg/AjRwB3HAf6ESWxkuOz0GCAB7pznpHZPLBSWk/LKLDj/QNmQVFKdMCyD3WgEURHp smJMMiEn7gM1z3lHpuqcCk6oKzCB5hnWULi6zwxkGgU5/WWGJrki0jbeTfbhyKLAYK0a C6y7fyTgZvAmrRjOsh0LcGlWSM3X8SNWjqDgziIb+jrMCqiUVsIyDh0Qa88lTdfMpeG3 Bk8Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si1144549pgn.210.2018.04.09.20.26.32; Mon, 09 Apr 2018 20:27:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752064AbeDJDXm (ORCPT + 99 others); Mon, 9 Apr 2018 23:23:42 -0400 Received: from mga09.intel.com ([134.134.136.24]:5724 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751629AbeDJDXl (ORCPT ); Mon, 9 Apr 2018 23:23:41 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2018 20:23:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,430,1517904000"; d="scan'208";a="46535620" Received: from debian.sh.intel.com (HELO debian) ([10.67.104.164]) by orsmga001.jf.intel.com with ESMTP; 09 Apr 2018 20:23:37 -0700 Date: Tue, 10 Apr 2018 11:21:34 +0800 From: Tiwei Bie To: Jason Wang Cc: mst@redhat.com, wexu@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jfreimann@redhat.com Subject: Re: [RFC v2] virtio: support packed ring Message-ID: <20180410032134.qco4ut2s3lo2zgsc@debian> References: <20180401141216.8969-1-tiwei.bie@intel.com> <5cf4d5d6-c416-28af-0568-750e9f654710@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5cf4d5d6-c416-28af-0568-750e9f654710@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 10:55:25AM +0800, Jason Wang wrote: > On 2018年04月01日 22:12, Tiwei Bie wrote: > > Hello everyone, > > > > This RFC implements packed ring support for virtio driver. > > > > The code was tested with DPDK vhost (testpmd/vhost-PMD) implemented > > by Jens at http://dpdk.org/ml/archives/dev/2018-January/089417.html > > Minor changes are needed for the vhost code, e.g. to kick the guest. > > > > TODO: > > - Refinements and bug fixes; > > - Split into small patches; > > - Test indirect descriptor support; > > - Test/fix event suppression support; > > - Test devices other than net; > > > > RFC v1 -> RFC v2: > > - Add indirect descriptor support - compile test only; > > - Add event suppression supprt - compile test only; > > - Move vring_packed_init() out of uapi (Jason, MST); > > - Merge two loops into one in virtqueue_add_packed() (Jason); > > - Split vring_unmap_one() for packed ring and split ring (Jason); > > - Avoid using '%' operator (Jason); > > - Rename free_head -> next_avail_idx (Jason); > > - Add comments for virtio_wmb() in virtqueue_add_packed() (Jason); > > - Some other refinements and bug fixes; > > > > Thanks! > > Will try to review this later. > > But it would be better if you can split it (more than 1000 lines is too big > to be reviewed easily). E.g you can at least split it into three patches, > new structures, datapath, and event suppression. > No problem! It's on my TODO list. I'll get it done in the next version. Thanks!