]> xenbits.xensource.com Git - people/ssmith/netchannel2-pvops.git/commitdiff
Make the xen-iommu work only on PV guests.
authorKonrad Rzeszutek Wilk <kliw@darnok.org>
Mon, 31 Aug 2009 19:32:11 +0000 (15:32 -0400)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 2 Sep 2009 18:23:03 +0000 (11:23 -0700)
On initial domains (dom0) the Xen-SWIOTLB will be used instead.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/pci/xen-iommu.c

index 5b7ef535588b10efe58923f89ae2361645aca29a..9ba63b1b96884c08464b47d88a954a4aa5c01eba 100644 (file)
@@ -260,6 +260,9 @@ void __init xen_iommu_init(void)
        if (!xen_pv_domain())
                return;
 
+       if (xen_initial_domain()) /* For dom0, the IOMMU is handled by arch/x86/xen/pci-swiotlb.c. */
+               return;
+
        printk(KERN_INFO "Xen: Initializing Xen DMA ops\n");
 
        force_iommu = 0;