From: Konrad Rzeszutek Wilk Date: Tue, 9 Feb 2010 19:30:55 +0000 (-0500) Subject: pci-swiotlb-xen: Add glue code to setup dma_ops utilizing xen_swiotlb_* X-Git-Tag: v2.6.36-rc1~73^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbbe57386e857eb2a8d4abcae71063c819c06ff1;p=pandora-kernel.git pci-swiotlb-xen: Add glue code to setup dma_ops utilizing xen_swiotlb_* functions. We add the glue code that sets up a dma_ops structure with the xen_swiotlb_* functions. The code turns on xen_swiotlb flag when it detects it is running under Xen and it is either in privileged mode or the iommu=soft flag was passed in. It also disables the bare-metal SWIOTLB if the Xen-SWIOTLB has been enabled. Note: The Xen-SWIOTLB is only built when CONFIG_XEN is enabled. Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Jeremy Fitzhardinge Cc: FUJITA Tomonori Cc: Albert Herranz Cc: Ian Campbell --- Reading git-diff-tree failed