Commit d7f954e5 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

PCI_vmd_Mark_VMD_irqdomain_with_DOMAIN_BUS_VMD_MSI



Devices on the VMD bus use their own MSI irq domain, but it is not
distinguishable from regular PCI/MSI irq domains. This is required
to exclude VMD devices from getting the irq domain pointer set by
interrupt remapping.

Override the default bus token.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarJoerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20200826112333.047315047@linutronix.de
parent c6c9e283
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -580,6 +580,12 @@ static int vmd_enable_domain(struct vmd_dev *vmd, unsigned long features)
		return -ENODEV;
	}

	/*
	 * Override the irq domain bus token so the domain can be distinguished
	 * from a regular PCI/MSI domain.
	 */
	irq_domain_update_bus_token(vmd->irq_domain, DOMAIN_BUS_VMD_MSI);

	pci_add_resource(&resources, &vmd->resources[0]);
	pci_add_resource_offset(&resources, &vmd->resources[1], offset[0]);
	pci_add_resource_offset(&resources, &vmd->resources[2], offset[1]);