Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3825362pxj; Tue, 15 Jun 2021 09:24:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9jw5drMvQncTeqFyPl3OorK2wOJ+xD8TmFqfy63HjNSULOfRFn5FJRSmPgRnIfw/srPRm X-Received: by 2002:a17:906:6d51:: with SMTP id a17mr326254ejt.543.1623774271687; Tue, 15 Jun 2021 09:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623774271; cv=none; d=google.com; s=arc-20160816; b=TL0S/jpaYStC708ZGTopRd14mFv7gdTDnV9dF/6r6o4xX7Us8n5CC4O1ZceKD+z5UC ni86rVTDLB2fyzA399pkb8X04XewQ+x+X6JPAP2L+Rrm7aF4JbFOlMfaPJt5VRnKJn1Y k0//sBhO7TmWC0KgOSVfVk/vtfAsJ8812WPcgFqXlrvkJR9YLZtgmi9k7/OHFHqDy9W/ dFfY8U2T62SLgsyyvhwnpJZ7d8tT6mdFqS5VfOt+NgQugyc3qMouq9OUw6vO3l6LRrOl 0MVRihQPSdq8l5E999TScX4GQSraETntXQ5PnjZN6Qt0g0tqKC6WCdiOxWcOrA5G6VFA A2Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=5YLb7ACF6OGDsiDttoNGN/jmPZF5LwN2Lq0fsg6CwmA=; b=bIaO1AcnA5TmYvr5iNjPyZ3EBrbYd4S9dr8iGzylOpj4vd+6s+4GxBFtGKtSO8jYUo PrJB8+ATQ3gJp0sK5hazLBncHUlLJGplRWVJcbpTndJgNQHpI3X/x0/fQnAdHsBAf0H7 /TJB/oIrmJiEiUu6v7ocRWhqPB8NQ5+HpQye/Z3DtkPDhQvw15BUOePZPZ9XOP9tMPCM TYfWSXPmeh063HHxfOj2v0cPyflIH02m51XDBisB7SvBny6+VprpmDC7YaLyYG8oaUcv Fx50wwcEOwFauMJ1U0oVtXoV/xFUA7YwiO5TLvqgfSZFMKQ+Uwjg2CD/+gQGlu9TrV8i CS3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qs3aJ88P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si14990590edq.83.2021.06.15.09.24.06; Tue, 15 Jun 2021 09:24:31 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=Qs3aJ88P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbhFOQXA (ORCPT + 99 others); Tue, 15 Jun 2021 12:23:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:27226 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbhFOQW7 (ORCPT ); Tue, 15 Jun 2021 12:22:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623774054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5YLb7ACF6OGDsiDttoNGN/jmPZF5LwN2Lq0fsg6CwmA=; b=Qs3aJ88PkO0RPqXAO1YSgA1uKqwKZS94Y031QcN8YimbnRfeFvIlD1KrbTCz3Gy2xxj4Nj VXlLnBJuHqTHlnsx/+HBPNmR9Mx0RtzGWdsj8SjtVDziplh7kGFvpzgOLMrch8ZnOyITpF LvQKD95VNF9AqVvCCw+/gdTqezfM934= Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-325-eC9I07GgN3-vxCQ7_bfNWg-1; Tue, 15 Jun 2021 12:20:53 -0400 X-MC-Unique: eC9I07GgN3-vxCQ7_bfNWg-1 Received: by mail-ot1-f69.google.com with SMTP id 88-20020a9d06e10000b029030513a66c79so9762061otx.0 for ; Tue, 15 Jun 2021 09:20:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=5YLb7ACF6OGDsiDttoNGN/jmPZF5LwN2Lq0fsg6CwmA=; b=jwA6kwm6UBreBuc/OQVxgqe8jGF1eb3YIeLuLbbXUZHmpxNtzSTPd32bp+/GCejUqr BLSqF0FPF81ODnUezbeCXxeqG/Ir03ujBExLAiy87JFgexrna3MrgAx77g8gGIvGPiAU rW+EQkhwyBA1MQh9z31/rmMwB0HrVsFN8fjIund4voEd0Z80ZvyBsWOj9vs/yM/xmW/o k3B86YpPEvPttGFYxTFFFmUkCMF8Q4dOG5fMUcHIqzlaZLz221hR4/UQdvEBD6WY2wSj smBcwNuAMy4z7GUzDLgMrPsh6r7y/Su3W/Yt+SCqR9DEi0FEZpNdOVZ6YHSaDtszUT7/ oqDQ== X-Gm-Message-State: AOAM530J6GDwZgrNpIY0RrMPoyFiNZJBCYP+U7KuGQsWC3MSGS+Q2mpf EoxvbSTgS81Azi0M+zlPZV8cHW0DEqcZ6JVpaRhtK8nSWxsBF9G89pSR4nKIE1bdiBO04XgfQcn RCyxc7MGiANFQ/8ycKpDSuUcc X-Received: by 2002:a05:6830:1b6e:: with SMTP id d14mr103330ote.186.1623774052214; Tue, 15 Jun 2021 09:20:52 -0700 (PDT) X-Received: by 2002:a05:6830:1b6e:: with SMTP id d14mr103321ote.186.1623774052047; Tue, 15 Jun 2021 09:20:52 -0700 (PDT) Received: from redhat.com ([198.99.80.109]) by smtp.gmail.com with ESMTPSA id f63sm4221750otb.36.2021.06.15.09.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 09:20:51 -0700 (PDT) Date: Tue, 15 Jun 2021 10:20:49 -0600 From: Alex Williamson To: Jason Gunthorpe Cc: Max Gurtovoy , cohuck@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, aviadye@nvidia.com, oren@nvidia.com, shahafs@nvidia.com, parav@nvidia.com, artemp@nvidia.com, kwankhede@nvidia.com, ACurrid@nvidia.com, cjia@nvidia.com, yishaih@nvidia.com, kevin.tian@intel.com, hch@infradead.org, targupta@nvidia.com, shameerali.kolothum.thodi@huawei.com, liulongfang@huawei.com, yan.y.zhao@intel.com Subject: Re: [PATCH 09/11] PCI: add matching checks for driver_override binding Message-ID: <20210615102049.71a3c125.alex.williamson@redhat.com> In-Reply-To: <20210615150458.GR1002214@nvidia.com> References: <20210603160809.15845-1-mgurtovoy@nvidia.com> <20210603160809.15845-10-mgurtovoy@nvidia.com> <20210608152643.2d3400c1.alex.williamson@redhat.com> <20210608224517.GQ1002214@nvidia.com> <20210608192711.4956cda2.alex.williamson@redhat.com> <117a5e68-d16e-c146-6d37-fcbfe49cb4f8@nvidia.com> <20210614124250.0d32537c.alex.williamson@redhat.com> <70a1b23f-764d-8b3e-91a4-bf5d67ac9f1f@nvidia.com> <20210615090029.41849d7a.alex.williamson@redhat.com> <20210615150458.GR1002214@nvidia.com> Organization: Red Hat X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Jun 2021 12:04:58 -0300 Jason Gunthorpe wrote: > On Tue, Jun 15, 2021 at 09:00:29AM -0600, Alex Williamson wrote: > > > "vfio" override in PCI-core plays out for other override types. Also I > > don't think dynamic IDs should be handled uniquely, new_id_store() > > should gain support for flags and userspace should be able to add new > > dynamic ID with override-only matches to the table. Thanks, > > Why? Once all the enforcement is stripped out the only purpose of the > new flag is to signal a different prepration of modules.alias - which > won't happen for the new_id path anyhow Because new_id allows the admin to insert a new pci_device_id which has been extended to include a flags field and intentionally handling dynamic IDs differently from static IDs seems like generally a bad thing. For example, maybe the admin wants to specify nouveau as only an override match for all 10de: class vga devices. Thanks, Alex