Received: by 10.223.185.116 with SMTP id b49csp2248281wrg; Thu, 22 Feb 2018 10:27:20 -0800 (PST) X-Google-Smtp-Source: AH8x224IjHfTN4/veaB1odBRNZ8dDDeEomM5iPymsAwu1209F/cu7QUm/+/AM7m23Nt6HAoxnz5o X-Received: by 10.101.68.193 with SMTP id g1mr303048pgs.302.1519324040669; Thu, 22 Feb 2018 10:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519324040; cv=none; d=google.com; s=arc-20160816; b=LYAkCgJLS/E/JWKkTMqcKPoUQ+p8FPd2JZ58rIyyV4Qri/NQhmuNIQVFT7tM3KEV1H dGrizB1lEJayxd2vO37ttDDiepbHFElkPM7uyOk4cKD61RFiQ4neIM+eDwSKR2KoxEek 5d1jPS/AbEKjFq5gCfrDGmPsODjstKIveR6ewsokqFgzs6ESNwVjpa77MZ9hSsvbJPR9 qkl1av0q8vdr3i1JMxrIbFuq3zZYpq5vQ+VU+VpuGzGZrNdQ7AggqaAW8dXcdjo/1/WQ xKCCt5iBq4gKJrm19zMwmqQkYnMkjbh+oySYwFZMP9g5USVfwSJh0kvRjB9dfCa+CQfO n12g== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=CpK/Ig59HUL4yiTvGdp7A/5QKG7yjqAARwftKqnp358=; b=IDHglv4Q2l4T+NhhqpknZ5Gv/toejCGzylWbiTp0Fu6B7gB2x5o1veutO8VWnyp0F8 nBH0QwkyEyuCuZlyv0suD/xjbBgubMyxXbypM88r+NoTpBYGXEwfXI9IAsYCDb+N09ii hNaKRx7VbaYTQCCLD/BPt4Yw91cq/Tf7av86fzYSEZ/Cal0w2PS8hAqdATSLTkfylgNN k8QCeRGIPuT342C1ZuUixcRD+Vi+MdqFBjVfZcxUv5ffW2X9fx4qOZuTWoK1U6YKAKY4 wvxFDLSVw5cAAGDkEZqVDWZkQMFtRoaElR0XVeT6sw53VcB2Ipoti4i6LxNxxoKRVWCG 5Wzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BQf23MfB; 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 v204si352897pgb.212.2018.02.22.10.27.05; Thu, 22 Feb 2018 10:27:20 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BQf23MfB; 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 S933737AbeBVS01 (ORCPT + 99 others); Thu, 22 Feb 2018 13:26:27 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:41666 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933711AbeBVS00 (ORCPT ); Thu, 22 Feb 2018 13:26:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CpK/Ig59HUL4yiTvGdp7A/5QKG7yjqAARwftKqnp358=; b=BQf23MfBabXdxWs/GrY6PLyKr x0oWb6HRsocbIelariR/4GqOWE8C7pn/oUDl5hCfP9MeVg2zm9Q7EDbbI7Bf5B/xG+aSIqqy9s1bF /m7uKb+TdMqa0zd1UGkb2wkvMqj+zPow9YjxirKm0yq2dsBGIKo92y9CFoXpHhsdj2WibIA5yEDo0 5dY+C6LFnOAS0jMD7pWgv3BE+40vpoQnV+Dp/kO46kZjA3uMRm5D7AvZr87q8XoqHJnZRL5gF16Vx cNnHIsngoZXSbbABcMqqxx1xrISdaaxYUz9YIFGO5hSedIxQsbaejnp0KIfYQgDEjlschzLjUwNcY wcr9BreOQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1eovZX-0006VG-9r; Thu, 22 Feb 2018 18:26:23 +0000 Date: Thu, 22 Feb 2018 10:26:22 -0800 From: Christoph Hellwig To: Mark Rustad Cc: virtio-dev@lists.oasis-open.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, dan.daly@intel.com, alex.williamson@redhat.com, MRustad@gmail.com, alexander.duyck@gmail.com, mst@redhat.com Subject: Re: [RFC PATCH V2] virtio_pci: Add SR-IOV support Message-ID: <20180222182622.GA13815@infradead.org> References: <20180222175250.97135.98386.stgit@mdrustad-mac04.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180222175250.97135.98386.stgit@mdrustad-mac04.local> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can we move this into common code as a a generic_sriov_configure helper? Nothing is really virtio specific, and it seems like some other drivers could also use it, e.g. ena or nvme.