Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp53074imm; Thu, 31 May 2018 18:21:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI0BIclOhViJ4xriarwHh5zfJUb/5ARmzo4fUZ/XwPL/a8ZyBOsO1zFd3ihyDRUkx8vV7lU X-Received: by 2002:a65:4549:: with SMTP id x9-v6mr7275286pgr.158.1527816119566; Thu, 31 May 2018 18:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527816119; cv=none; d=google.com; s=arc-20160816; b=zxR64k7sGVduv9qZev+7CE5X2FHr0kCF6phcKjruMtRkBJ2GKlhKFKMV2+MSdHckY5 3tJRh1g3IAl4OS2VBJIBpEeWoLmCTuGfsqhXSmFfYm9zwCi3ph+4d4MnGDU2d7WW3jyE G6Bh+3oUjefgCOIpw7SwUhw8oq2IM5br5x8gvDL2WDnGm31LNPcd8vhwUE+EMcrlHRUw TolrzgZ7nCZGcRPg+vhtKr7G0C0TRnUI3eFVZEqTRzZlIQcCnIC571kAKIcoXtlNlz42 uIYNkrkTKbsF/ZzG4b3oBTkR3B/ksSGV2lEzRSVmW0nKsXKfmMdDh/dxW19TiGlP+pf0 Xx+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Uj9ccHZ23l7oEInVw1AGGlo7JAJyQ3TPriCCG3vdPgE=; b=mZhuxSZrZ0ToNfPBUhj4r4uzpk27/SOnZXEhGPZIsA3Qn192hxX7KUGGMu5+Ai1VNW 051WgIaX30qU5x1C1ub6e4yT+HOTE2Zrw7KuBawNPqtc1+xSO0UKe9lxdtbORSyfIwOr V8BXpBCJUN0g9lt0XYEWgeldaMvVDkF7hFDpVcauVPqlRi9uu83g1eh3UqxySjUyiea5 HChqUhxfFh+5Vqc9dIz+R7KRmD6ZOU6T9aJWNcLMcls3CaPWl6aIQd7VV0LTUdaqLAq4 VTsiKYeyA9/55WigLdPp7E1P91JEtPo2IsP6ulnqBBXJkPyZSjs0uQbnMkUmlsKGOCcK loNA== 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 t12-v6si30851905pgr.690.2018.05.31.18.21.45; Thu, 31 May 2018 18:21:59 -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 S1750914AbeFABVG (ORCPT + 99 others); Thu, 31 May 2018 21:21:06 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41648 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750807AbeFABVE (ORCPT ); Thu, 31 May 2018 21:21:04 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 38E6F81663C7; Fri, 1 Jun 2018 01:21:04 +0000 (UTC) Received: from redhat.com (ovpn-121-148.rdu2.redhat.com [10.10.121.148]) by smtp.corp.redhat.com (Postfix) with SMTP id 88A292026609; Fri, 1 Jun 2018 01:21:03 +0000 (UTC) Date: Fri, 1 Jun 2018 04:21:03 +0300 From: "Michael S. Tsirkin" To: Tiwei Bie Cc: "Rustad, Mark D" , Bjorn Helgaas , "virtualization@lists.linux-foundation.org" , LKML , "virtio-dev@lists.oasis-open.org" , "linux-pci@vger.kernel.org" , "Daly, Dan" , "Duyck, Alexander H" , "Liang, Cunming" , "Wang, Zhihong" Subject: Re: [virtio-dev] [PATCH] virtio_pci: support enabling VFs Message-ID: <20180601042004-mutt-send-email-mst@kernel.org> References: <20180530085521.26583-1-tiwei.bie@intel.com> <20180530190819-mutt-send-email-mst@kernel.org> <20180531025502.GA15516@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180531025502.GA15516@debian> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 01 Jun 2018 01:21:04 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 01 Jun 2018 01:21:04 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 10:55:02AM +0800, Tiwei Bie wrote: > On Wed, May 30, 2018 at 07:09:37PM +0300, Michael S. Tsirkin wrote: > > On Wed, May 30, 2018 at 04:03:37PM +0000, Rustad, Mark D wrote: > > > On May 30, 2018, at 1:55 AM, Tiwei Bie wrote: > > > > > > > There is a new feature bit allocated in virtio spec to > > > > support SR-IOV (Single Root I/O Virtualization): > > > > > > > > https://github.com/oasis-tcs/virtio-spec/issues/11 > > > > > > > > This patch enables the support for this feature bit in > > > > virtio driver. > > > > > > > > Signed-off-by: Tiwei Bie > > > > --- > > > > This patch depends on below proposal: > > > > https://lists.oasis-open.org/archives/virtio-dev/201805/msg00154.html > > > > > > > > This patch depends on below patch: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?h=pci/virtualization&id=8effc395c2097e258fcedfc02ed4a66d45fb4238 > > > > > > > > drivers/virtio/virtio_pci_common.c | 20 ++++++++++++++++++++ > > > > drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ > > > > include/uapi/linux/virtio_config.h | 7 ++++++- > > > > 3 files changed, 40 insertions(+), 1 deletion(-) > > > > > > > > > > > > > > > > > diff --git a/include/uapi/linux/virtio_config.h > > > > b/include/uapi/linux/virtio_config.h > > > > index 308e2096291f..b7c1f4e7d59e 100644 > > > > --- a/include/uapi/linux/virtio_config.h > > > > +++ b/include/uapi/linux/virtio_config.h > > > > @@ -49,7 +49,7 @@ > > > > > > There is a value in the comment directly before this that should > > > be updated as well to be consistent with the new value for > > > VIRTIO_TRANSPORT_F_END below. > > > > It hasn't been updated to 34 yet. > > I suggest a separate patch to replace the numbers with > > VIRTIO_TRANSPORT_F_START and VIRTIO_TRANSPORT_F_END > > in the comment. > > Maybe replace "e.g. virtio_ring" with "e.g. virtio_ring, > > virtio_pci etc." as well. > > Good idea! Thanks for the suggestion! I'll do it. > > Best regards, > Tiwei Bie Or just focus on the new feature, tweak start/end as a separate patch. Up to you, the important thing is to have a ready to roll patch before the merge window. > > > > > > > * transport being used (eg. virtio_ring), the rest are per-device feature > > > > * bits. */ > > > > #define VIRTIO_TRANSPORT_F_START 28 > > > > -#define VIRTIO_TRANSPORT_F_END 34 > > > > +#define VIRTIO_TRANSPORT_F_END 38 > > > > > > > > #ifndef VIRTIO_CONFIG_NO_LEGACY > > > > /* Do we get callbacks when the ring is completely used, even if we've > > > > > > > > > > > > -- > > > Mark Rustad, Networking Division, Intel Corporation > > > >