Received: by 10.213.65.68 with SMTP id h4csp447144imn; Tue, 13 Mar 2018 09:19:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELu9VhGrSkPnCuzKn6o5HMuWV+G5XUSUVutOMtXshkokGbMLtPt7Q2Q/Ulcmys6TifR6AifB X-Received: by 10.98.220.207 with SMTP id c76mr1126240pfl.159.1520957981930; Tue, 13 Mar 2018 09:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957981; cv=none; d=google.com; s=arc-20160816; b=r63nFygDpbVqSki+RfX+IiHrIi6YZMhZdptG+M6mljs4z1k9aj7O48rNGF+I2NVjH5 kZR06GG6NEldPgtZ522wNH15IAPDlE33o5hmJEQzi49mUgHSIhAHIJ2/mXPsFcDxFP6O P1M8J+WFNF9UWHXQ2K5ua1vu0u6NAlsFWaczMT0S5rbEit1Fu/qUHqbicU8N0bBOrGbr NYdBNJMpv60vOVxPgXT95080BicqCcZH/5UvcP6flOWGH5jgAStL/rAxrHpMRslX1vKt L0QnBRzQMaqyPeSN1DufrDldWm4ZvgPtc2QSy0p/AE2CRlq6DwxotCc+g1vs8k4xVMAy /Xuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=uBx/L0ZYBM0lOgJv9lLs1IywK48KrlzntJZXSeCvrts=; b=QE3SU3yvtER2jmEIF+t1NgxBDMcjV81wcRKVd3SQU20YhcwRDuBTXe1djta7pp6jEj hS6ANqTCw0KFHP/hrDXeDmGVt92Jwg7KvLwTIqVk9gUMwTY6uiYkPXbNCi7tg59Pvjak pmaYX87zWjZ2WrGwkPUYSe5FAMnTXezdKGh4ouH/s8qa8DBLWHLcGRvgVIsEfYN5o6Ii 0LsRa5FcQMxWK1OUPSKMuq8xsZ5F0S/5hqa5fcn1vFuy90VSfrwE1iDE8ZYHvbKUfeOD aLwnUP+qxu2BvOxeb1OAP8/PEEUYmADhRoFn14zpSfomAxlaryXU/23HjmRlPRDrVWST ZoLw== 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 q4-v6si277855plr.365.2018.03.13.09.19.27; Tue, 13 Mar 2018 09:19:41 -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 S934022AbeCMQRm (ORCPT + 99 others); Tue, 13 Mar 2018 12:17:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60131 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752864AbeCMQRi (ORCPT ); Tue, 13 Mar 2018 12:17:38 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D7CEAC03675F; Tue, 13 Mar 2018 16:17:37 +0000 (UTC) Received: from [10.3.117.30] (ovpn-117-30.phx2.redhat.com [10.3.117.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2312C600D2; Tue, 13 Mar 2018 16:17:34 +0000 (UTC) Subject: Re: [pci PATCH v5 3/4] ena: Migrate over to unmanaged SR-IOV support To: David Woodhouse , Alexander Duyck Cc: Bjorn Helgaas , "Duyck, Alexander H" , linux-pci@vger.kernel.org, virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, Netdev , "Daly, Dan" , LKML , linux-nvme@lists.infradead.org, Keith Busch , netanel@amazon.com, Maximilian Heyne , "Wang, Liang-min" , "Rustad, Mark D" , Christoph Hellwig References: <20180312171813.3487.94803.stgit@localhost.localdomain> <20180312172309.3487.76690.stgit@localhost.localdomain> <1520928772.28745.53.camel@infradead.org> <1520953463.20126.15.camel@infradead.org> From: Don Dutile Message-ID: <3d291517-fc7d-53ea-66b4-27137bdb14e5@redhat.com> Date: Tue, 13 Mar 2018 12:17:34 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <1520953463.20126.15.camel@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 13 Mar 2018 16:17:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/13/2018 11:04 AM, David Woodhouse wrote: > On Tue, 2018-03-13 at 07:51 -0700, Alexander Duyck wrote: > >> Actually the suggestion I had from Don Dutile was that we should be >> looking at creating a pci-stub like driver specifically for those type >> of devices, but without the ability to arbitrarily assign devices. >> Basically we have to white-list it in one device at a time for those >> kind of things. > > It's still not clear what the point of that would be. > A PF-stub to do device-assignment(-like) ops preserves the current security model, and allows one to add pci-quirks at a device-level as well -- when the usual ACS structs aren't properly added for a device, which happens quite frequently -- which retains that common workaround as well. Yet-another-method for VF assignment w/o even a simple PF driver stub created multiple failure cases/configs when we were hashing the multiple options a few weeks ago. It's just simpler to implement a PF stub w/VF enablement ... b/c it's simple... >> If you have the device ID of the thing you wanted to have work with >> pci-stub before I could look at putting together a quick driver and >> adding it to this set. > > 1d0f:0053 would be an example. >