* Re: [PATCH 2/2] iommu/vt-d: Ignore devices with out-of-spec domain number
[not found] ` <20200312060955.8523-3-baolu.lu@linux.intel.com>
@ 2020-03-16 15:53 ` Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2020-03-16 15:53 UTC (permalink / raw)
To: Lu Baolu; +Cc: Joerg Roedel, iommu, Daniel Drake, linux-pci
On Thu, Mar 12, 2020 at 02:09:55PM +0800, Lu Baolu wrote:
> @@ -128,6 +129,13 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event)
>
> BUG_ON(dev->is_virtfn);
>
> + /*
> + * Ignore devices that have a domain number higher than what can
> + * be looked up in DMAR, e.g. VMD subdevices with domain 0x10000
> + */
> + if (pci_domain_nr(dev->bus) > U16_MAX)
I think this needs a well documented core PCI layer function, as that
is where these "fake" domains are create.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-16 15:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20200312060955.8523-1-baolu.lu@linux.intel.com>
[not found] ` <20200312060955.8523-3-baolu.lu@linux.intel.com>
2020-03-16 15:53 ` [PATCH 2/2] iommu/vt-d: Ignore devices with out-of-spec domain number Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).