aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/iommu.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-11-28 10:08:24 +0100
committerJan Beulich <jbeulich@suse.com>2012-11-28 10:08:24 +0100
commitd9d2cfd5aeb47d5b057d661b9c3ef2e8e980c7f0 (patch)
tree11c90d02702fe879b5b29af640a552dd765e5703 /xen/include/xen/iommu.h
parent899110e3f6d2a191638e8b50a981c551eeec49e6 (diff)
downloadxen-d9d2cfd5aeb47d5b057d661b9c3ef2e8e980c7f0.tar.gz
xen-d9d2cfd5aeb47d5b057d661b9c3ef2e8e980c7f0.tar.bz2
xen-d9d2cfd5aeb47d5b057d661b9c3ef2e8e980c7f0.zip
VT-d: adjust IOMMU interrupt affinities when all CPUs are online
Since these interrupts get setup before APs get brought online, their affinities naturally could only ever point to CPU 0 alone so far. Adjust this to include potentially multiple CPUs in the target mask (when running in one of the cluster modes), and take into account NUMA information (to handle the interrupts on a CPU on the node where the respective IOMMU is). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/iommu.h')
-rw-r--r--xen/include/xen/iommu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h
index 3026e54606..7626216ae8 100644
--- a/xen/include/xen/iommu.h
+++ b/xen/include/xen/iommu.h
@@ -137,6 +137,9 @@ int iommu_do_domctl(struct xen_domctl *, XEN_GUEST_HANDLE_PARAM(xen_domctl_t));
void iommu_iotlb_flush(struct domain *d, unsigned long gfn, unsigned int page_count);
void iommu_iotlb_flush_all(struct domain *d);
+/* While VT-d specific, this must get declared in a generic header. */
+int adjust_vtd_irq_affinities(void);
+
/*
* The purpose of the iommu_dont_flush_iotlb optional cpu flag is to
* avoid unecessary iotlb_flush in the low level IOMMU code.