iommu/vt-d: Use Real PCI DMA device for IRTE
authorJon Derrick <jonathan.derrick@intel.com>
Wed, 10 Feb 2021 16:13:14 +0000 (09:13 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 22 Mar 2021 14:08:20 +0000 (14:08 +0000)
commit9b4a824b889e1cc5e0430b80e40cfe9838c5b5f0
treeef9780302a4204477d2978fc83baaaf93091be26
parenta38fd8748464831584a19438cbb3082b5a2dab15
iommu/vt-d: Use Real PCI DMA device for IRTE

VMD retransmits child device MSI-X with the VMD endpoint's requester-id.
In order to support direct interrupt remapping of VMD child devices,
ensure that the IRTE is programmed with the VMD endpoint's requester-id
using pci_real_dma_dev().

Link: https://lore.kernel.org/r/20210210161315.316097-2-jonathan.derrick@intel.com
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Acked-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/irq_remapping.c