diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2011-07-26 18:37:16 +0100 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2011-07-26 18:37:16 +0100 |
commit | 1b5a9e18bc04368e48ed06bd2cb8258508d089a0 (patch) | |
tree | d90b5daeae83b965a9d40aa3e7ba1fe6e3df11d1 /xen/include/xen/pci.h | |
parent | 5028ef1e1b06001c3334d6abd8c5b1037596ca41 (diff) | |
download | xen-1b5a9e18bc04368e48ed06bd2cb8258508d089a0.tar.gz xen-1b5a9e18bc04368e48ed06bd2cb8258508d089a0.tar.bz2 xen-1b5a9e18bc04368e48ed06bd2cb8258508d089a0.zip |
xen: Option to allow per-device vector maps for MSI IRQs
Add a vector-map to pci_dev, and add an option to point MSI-related
IRQs to the vector-map of the device.
This prevents irqs from the same device from being assigned
the same vector on different pcpus. This is required for systems
using an AMD IOMMU, since the intremap tables on AMD only look at
vector, and not destination ID.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/include/xen/pci.h')
-rw-r--r-- | xen/include/xen/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index 6313c388a3..25bd415d2a 100644 --- a/xen/include/xen/pci.h +++ b/xen/include/xen/pci.h @@ -11,6 +11,7 @@ #include <xen/types.h> #include <xen/list.h> #include <xen/spinlock.h> +#include <xen/irq.h> /* * The PCI interface treats multi-function devices as independent @@ -38,6 +39,7 @@ struct pci_dev_info { u8 bus; u8 devfn; } physfn; + vmask_t used_vectors; }; struct pci_dev { |