Skip to contentSkip to conversation

x86-64: IOMMU compilation

PATCH New Jon Mason 1 participant 1 message Jun 17, 2005

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 x86-64: IOMMU compilation

This patch enables x86-64 Xen dom0 to compile if IOMMU is enabled in the kernel config. Warning, dom0 will crash during boot of the kernel if IOMMU is enabled. These changes do not affect non-IOMMU enabled kernels (a fact I have verified myself). I am currently working on debugging the IOMMU dom0 crash.

arch/xen/x86_64/kernel/Makefile renamed from arch/xen/x86_64/kernel/Makefile.orig +2 -2
@@ -34,9 +34,9 @@ c-obj-$(CONFIG_X86_IO_APIC)	+= genapic.o
 #obj-$(CONFIG_SOFTWARE_SUSPEND)	+= suspend_asm.o
 #obj-$(CONFIG_CPU_FREQ)		+= cpufreq/
 #obj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
-#obj-$(CONFIG_GART_IOMMU)	+= pci-gart.o aperture.o
+c-obj-$(CONFIG_GART_IOMMU)	+= pci-gart.o aperture.o
 c-obj-$(CONFIG_DUMMY_IOMMU)	+= pci-nommu.o pci-dma.o
-#obj-$(CONFIG_SWIOTLB)		+= swiotlb.o
+obj-$(CONFIG_SWIOTLB)		+= swiotlb.o
 obj-$(CONFIG_KPROBES)		+= kprobes.o
 
 c-obj-$(CONFIG_MODULES)		+= module.o
arch/xen/x86_64/kernel/e820.c renamed from arch/xen/x86_64/kernel/e820.c.orig +0 -2
@@ -40,7 +40,6 @@ void __init add_memory_region(unsigned l
 	e820.nr_map++;
 }
 
-#if 0
 extern char _end[];
 
 /* 
@@ -506,7 +505,6 @@ void __init setup_memory_region(void)
 	printk(KERN_INFO "BIOS-provided physical RAM map:\n");
 	e820_print_map(who);
 }
-#endif
 
 extern unsigned long xen_override_max_pfn;