Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp467626imm; Thu, 13 Sep 2018 02:48:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZOjN66CNZ7HWH4NLF2I9WL/7CdFX3Itmpb/qeqAOLGgIOeqRJF9/42wIkXGHbmQZjxO+R0 X-Received: by 2002:a63:1d22:: with SMTP id d34-v6mr6469411pgd.133.1536832088560; Thu, 13 Sep 2018 02:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536832088; cv=none; d=google.com; s=arc-20160816; b=ZcWtQ3oNeRfvQ/1lRkJ3sfO4y0o90YT72ZAtM78MdJJOcY0XLZcXLKDSJcDkvnFa09 z2T0krR9CFpmV2Gv/HBbr4Pbt1kqVALS2guokeiblAV6DJHhjsPYyZt95QWLzHEaUb91 bjlK26GUeNNXqRO4Foo3bCvLBweZhluI+eOa2cYJqAHiAjmztlIjh4BJHEVCWcsvG3fH YjOQQ1w+dF5k6mFNKJd6uKWk+RoyVPZcN0BM21POtnIcdCkCp29zG3WgmDRW2Qp3GGSu kWvOcE1h5fmjFdkxIf7od2SY5JjUQCEuTzlLBKjJBTMfigv73hNS5XbzGLyy8zerxf1o rdMg== 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; bh=5r3xL3abAZvTCGWcmYUAxzg0xRfaN251FYJ1BiI2Zr0=; b=sWMXv9rQlPXiuo9Fn8sF++L42DTeOduA8CT3WFkb54Ap2ttIjOW86GYgci3r+Ki0ns sLjQwgTdRkYd6BAuhbOuNk9Xz/zwpMEtJ76YgbvhVFzQ5Z0NNEPZt02F7V256S94e8XT VY83lMi6Mpl6keakSrOalvqRd0kBx1hYUSyv4DePxJ/OkIBhcARu9M/FMrMpLKyrKXgC zP79EPhsdBcXSXkwfG7JM7rBnw+9i76sQHsqpIujW1WJOysRC5RHFK0VGbO/OEAY29/n MsndP9CxKtOACU0lviq8BMYYAa7tWbYqeVWc7Yp5QH/mMVRri97os2/KfR4oxCnlL/8X Mkpg== 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 g5-v6si3674121plm.445.2018.09.13.02.47.54; Thu, 13 Sep 2018 02:48:08 -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 S1728080AbeIMO42 (ORCPT + 99 others); Thu, 13 Sep 2018 10:56:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41379 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbeIMO41 (ORCPT ); Thu, 13 Sep 2018 10:56:27 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7B516811B7; Thu, 13 Sep 2018 09:47:44 +0000 (UTC) Received: from [10.72.12.62] (ovpn-12-62.pek2.redhat.com [10.72.12.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C3771608EC; Thu, 13 Sep 2018 09:47:31 +0000 (UTC) Subject: Re: [virtio-dev] Re: [PATCH net-next v2 0/5] virtio: support packed ring To: Tiwei Bie , "Michael S. Tsirkin" Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, virtio-dev@lists.oasis-open.org, wexu@redhat.com, jfreimann@redhat.com References: <20180711022711.7090-1-tiwei.bie@intel.com> <20180827170005-mutt-send-email-mst@kernel.org> <20180907012225.GA32677@debian> <20180907084509-mutt-send-email-mst@kernel.org> <20180910030053.GA15645@debian> <20180911053726.GA7472@debian> <20180912121457-mutt-send-email-mst@kernel.org> <20180913085919.GA42049@fbsd1.sh.intel.com> From: Jason Wang Message-ID: <98d6bd4d-45e2-4207-e961-782f649e0139@redhat.com> Date: Thu, 13 Sep 2018 17:47:29 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180913085919.GA42049@fbsd1.sh.intel.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.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 13 Sep 2018 09:47:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018年09月13日 16:59, Tiwei Bie wrote: >> If what you say is true then we should take a careful look >> and not supporting these generic things with packed layout. >> Once we do support them it will be too late and we won't >> be able to get performance back. > I think it's a good point that we don't need to support > everything in packed ring (especially these which would > hurt the performance), as the packed ring aims at high > performance. I'm also wondering about the features. Is > there any possibility that we won't support the out of > order processing (at least not by default) in packed ring? > If I didn't miss anything, the need to support out of order > processing in packed ring will make the data structure > inside the driver not cache friendly which is similar to > the case of the descriptor table in the split ring (the > difference is that, it only happens in driver now). Out of order is not the only user, DMA is another one. We don't have used ring(len), so we need to maintain buffer length somewhere even for in order device. But if it's not too late, I second for a OUT_OF_ORDER feature. Starting from in order can have much simpler code in driver. Thanks