Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1986296pxb; Thu, 11 Feb 2021 00:59:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJykIYIvn/zIcyKL/jXcE+ddlLtJpIBHy5NRRx+PpfAlO/ouQFvjL5X7jpA8x8Kf0M1hlOJC X-Received: by 2002:a17:906:4051:: with SMTP id y17mr7376827ejj.45.1613033963397; Thu, 11 Feb 2021 00:59:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613033963; cv=none; d=google.com; s=arc-20160816; b=j4lYodObcEdEXk8468l433rn4BS2hd9m7ZbykV1lBI0ImtSbUNQUfcyF8tFOy0bIwx /G4LgR8WrcWfgnYxKgAB9BodnZOXgShj0N7ToZt61I4rhnURxPOOvWGEp9o0ogwfZn/U nolrVi1UWolRqCIajKcNfgBG3vNrc4xQmue4Nbn475g1CFnFRtm7CLoLv/XFpWl8SlzC 74U2BlG1u+KBx2ujrrgbr9+xg1ocZIasTZs2aL5y3ZUJ4tzW6Tqnv+n2pL1c/FNe61J3 ptbq+a4LfAj1HPR6KGCdw3s/6VI0BPztj51ZULFoZXrR6JyPJDiQuYvId7/pjXwq0h4A asWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WX5NVcUKIZdIhUtjWwyjBX7wtfkyAwPXoU6ZUKSIU20=; b=wggwLUafOrDyENWdM8zWV+UTTc7FadCpwu0fM0cnht7vSzv8k8r4cF5Dp7qkhc+ziU I3DICDXiJNjs3JIr6SxWm0zYOwS1uUV3X4zIdG7i8bQ1duRA1c7YUNkOfMWCi54+naKk Llf2xsZOBlvdv5uJV+wTZJ2Y/UjUXt3/86D3P/ZSmOli1Kd1SxUtRXySI87HJADNmk5Z JtIxRb9u+HMTZoE1h1Bp4+7xyv9453YJW5nX8F7dnx/2l9AmweBEs6hfPRoITdgS+RxQ DbTsEodADUQ06lRgNheLUXYfMZbfvAnXnMsouhUzQHRtOER8Kvm2c4/55y42zNoQcQwZ NY2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=i8dCZRiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si3217758ejm.600.2021.02.11.00.58.59; Thu, 11 Feb 2021 00:59:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=i8dCZRiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbhBKI4M (ORCPT + 99 others); Thu, 11 Feb 2021 03:56:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbhBKIzv (ORCPT ); Thu, 11 Feb 2021 03:55:51 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11DF4C06178C; Thu, 11 Feb 2021 00:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=WX5NVcUKIZdIhUtjWwyjBX7wtfkyAwPXoU6ZUKSIU20=; b=i8dCZRiAerXp1eu/98vB7FHRAH J7eS5IStBD5ibU7/jWtadyzfhnylL0wyNNDA1llX8hc4ZFpvdkaflXww6qtxbMqWFEbkHABBBT/h6 72n5ERCPHoUqJtJa/4f5xZVWv1bHi9tCLn0z6ASdjwvDT/63IEvB83LJfAeatnnF137C8Wv1uAVnq wjEWwlyyfAtgFe9f75aqKYSHoAbe3aR53WMjhUGc8Aq5KoWRdTfcGhOahgfKcn31Ltqp8VoCG6lv8 k4ffkSxFc24ISbbhXWzmnIV3YQJGmuxncd/ME6qYMnH3iR73CE7WOH+FoDerPPdbcsBNNRz/Mr17+ ZhCK5+bQ==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lA7ct-009zVJ-LF; Thu, 11 Feb 2021 08:47:03 +0000 Date: Thu, 11 Feb 2021 08:47:03 +0000 From: Christoph Hellwig To: Jason Gunthorpe Cc: Alex Williamson , Max Gurtovoy , Cornelia Huck , Matthew Rosato , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, liranl@nvidia.com, oren@nvidia.com, tzahio@nvidia.com, leonro@nvidia.com, yarong@nvidia.com, aviadye@nvidia.com, shahafs@nvidia.com, artemp@nvidia.com, kwankhede@nvidia.com, ACurrid@nvidia.com, gmataev@nvidia.com, cjia@nvidia.com, yishaih@nvidia.com, aik@ozlabs.ru Subject: Re: [PATCH 8/9] vfio/pci: use x86 naming instead of igd Message-ID: <20210211084703.GC2378134@infradead.org> References: <20210202105455.5a358980@omen.home.shazbot.org> <20210202185017.GZ4247@nvidia.com> <20210202123723.6cc018b8@omen.home.shazbot.org> <20210202204432.GC4247@nvidia.com> <5e9ee84e-d950-c8d9-ac70-df042f7d8b47@nvidia.com> <20210202143013.06366e9d@omen.home.shazbot.org> <20210202230604.GD4247@nvidia.com> <20210202165923.53f76901@omen.home.shazbot.org> <20210203135448.GG4247@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203135448.GG4247@nvidia.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 09:54:48AM -0400, Jason Gunthorpe wrote: > If people are accepting that these device-specific drivers are > required then we need to come to a community consensus to decide what > direction to pursue: > > * Do we embrace the driver core and use it to load VFIO modules like a > normal subsytem (this RFC) > > OR > > * Do we make a driver-core like thing inside the VFIO bus drivers and > have them run their own special driver matching, binding, and loading > scheme. (May RFC) > > Haven't heard a 3rd option yet.. The third option would be to use the driver core to bind the VFIO submodules. Define a new bus for it, which also uses the normal PCI IDs for binding, and walk through those VFIO specific drivers when vfio_pci is bound to a device. That would provide a pretty clean abstraction and could even keep the existing behavior of say bind to all VGA devices with an Intel vendor ID (even if I think that is a bad idea).