@@ -82,11 +82,13 @@ static int __init cf_check parse_iommu_param(const char *s)
else if ( ss == s + 23 && !strncmp(s, "quarantine=scratch-page", 23) )
iommu_quarantine = IOMMU_quarantine_scratch_page;
#endif
-#ifdef CONFIG_X86
+#ifdef CONFIG_INTEL_VTD
else if ( (val = parse_boolean("igfx", s, ss)) >= 0 )
iommu_igfx = val;
else if ( (val = parse_boolean("qinval", s, ss)) >= 0 )
iommu_qinval = val;
+#endif
+#ifdef CONFIG_X86
else if ( (val = parse_boolean("superpages", s, ss)) >= 0 )
iommu_superpages = val;
#endif
@@ -74,9 +74,13 @@ extern enum __packed iommu_intremap {
iommu_intremap_restricted,
iommu_intremap_full,
} iommu_intremap;
-extern bool iommu_igfx, iommu_qinval, iommu_snoop;
#else
# define iommu_intremap false
+#endif
+
+#ifdef CONFIG_INTEL_VTD
+extern bool iommu_igfx, iommu_qinval, iommu_snoop;
+#else
# define iommu_snoop false
#endif
Use CONFIG_INTEL_VTD to guard their usage in common code. No functional change intended. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> --- xen/drivers/passthrough/iommu.c | 4 +++- xen/include/xen/iommu.h | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-)