]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86/PCI: VMD: Use x86_vector_domain as parent domain
authorKeith Busch <keith.busch@intel.com>
Mon, 20 Jun 2016 15:39:52 +0000 (09:39 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 Jun 2016 19:32:07 +0000 (14:32 -0500)
Otherwise APIC code assumes VMD's IRQ domain can be managed by the APIC,
resulting in an invalid cast of irq_data during irq_force_complete_move().

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/vmd.c

index 7aa80dc214453ea14476e947bc1c4677f65aec1f..0f77cc1dbb4ee2e25f3afade478692b71879e65b 100644 (file)
@@ -599,7 +599,7 @@ static int vmd_enable_domain(struct vmd_dev *vmd)
        sd->node = pcibus_to_node(vmd->dev->bus);
 
        vmd->irq_domain = pci_msi_create_irq_domain(NULL, &vmd_msi_domain_info,
-                                                   NULL);
+                                                   x86_vector_domain);
        if (!vmd->irq_domain)
                return -ENODEV;