mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/iommu: iommu_igfx and iommu_qinval are Intel VT-d specific
Use CONFIG_INTEL_IOMMU to guard the usage of iommu_igfx and iommu_qinval in common code. No functional change intended. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
0b5475996c
commit
686b80c1ae
1 file changed
+9
-1
@@ -82,11 +82,19 @@ 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
|
||||
else if ( (val = parse_boolean("igfx", s, ss)) >= 0 )
|
||||
#ifdef CONFIG_INTEL_IOMMU
|
||||
iommu_igfx = val;
|
||||
#else
|
||||
no_config_param("INTEL_IOMMU", "iommu", s, ss);
|
||||
#endif
|
||||
else if ( (val = parse_boolean("qinval", s, ss)) >= 0 )
|
||||
#ifdef CONFIG_INTEL_IOMMU
|
||||
iommu_qinval = val;
|
||||
#else
|
||||
no_config_param("INTEL_IOMMU", "iommu", s, ss);
|
||||
#endif
|
||||
#ifdef CONFIG_X86
|
||||
else if ( (val = parse_boolean("superpages", s, ss)) >= 0 )
|
||||
iommu_superpages = val;
|
||||
#endif
|
||||
|
||||