]> xenbits.xensource.com Git - people/ssmith/netchannel2-pvops.git/commitdiff
Enable Xen-SWIOTLB to be part of bootup process.
authorKonrad Rzeszutek Wilk <kliw@darnok.org>
Mon, 31 Aug 2009 19:32:13 +0000 (15:32 -0400)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 2 Sep 2009 18:23:04 +0000 (11:23 -0700)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/kernel/pci-dma.c

index e486c4030538f275209b1c9d8b08dfb8c3ee60a1..eca588b433a8a949be959fdeb56d57c07ce0bed4 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/calgary.h>
 #include <asm/amd_iommu.h>
 #include <asm/xen/iommu.h>
+#include <asm/xen/swiotlb.h>
 
 static int forbid_dac __read_mostly;
 
@@ -127,6 +128,8 @@ void __init pci_iommu_alloc(void)
 
        amd_iommu_detect();
 
+       xen_swiotlb_init_alloc();
+
        pci_swiotlb_init();
 }
 
@@ -278,6 +281,8 @@ static int __init pci_iommu_init(void)
 
        xen_iommu_init();
 
+       xen_swiotlb_init();
+
        calgary_iommu_init();
 
        intel_iommu_init();