intel-iommu: Disallow interrupt remapping if not all ioapics covered
authorYouquan Song <youquan.song@intel.com>
Mon, 7 Sep 2009 14:58:07 +0000 (10:58 -0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Sep 2009 15:38:53 +0000 (16:38 +0100)
commite936d0773df172ec8600777fdd72bbc1f75f22ad
treec778f4d6aaee3e9ecbccbb4d0d31565a78e49a26
parentadb2fe0277607d50f4e9ef06e1d180051a609c25
intel-iommu: Disallow interrupt remapping if not all ioapics covered

Current kernel enable interrupt remapping only when all the vt-d unit support
interrupt remapping. So it is reasonable we should also disallow enabling
intr-remapping if there any io-apics that are not listed under vt-d units.
Otherwise we can run into issues.

Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/dmar.c
drivers/pci/intr_remapping.c