diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2010-02-09 20:30:55 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2010-07-27 17:51:02 +0200 |
commit | bbbe57386e857eb2a8d4abcae71063c819c06ff1 (patch) | |
tree | b701630e53fdd848c170bd739803530f00c2f4f5 /arch/x86/xen/Makefile | |
parent | swiotlb-xen: SWIOTLB library for Xen PV guest with PCI passthrough. (diff) | |
download | linux-bbbe57386e857eb2a8d4abcae71063c819c06ff1.tar.xz linux-bbbe57386e857eb2a8d4abcae71063c819c06ff1.zip |
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 <konrad.wilk@oracle.com>
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Albert Herranz <albert_herranz@yahoo.es>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Diffstat (limited to 'arch/x86/xen/Makefile')
-rw-r--r-- | arch/x86/xen/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile index 3bb4fc21f4f2..32af238055c3 100644 --- a/arch/x86/xen/Makefile +++ b/arch/x86/xen/Makefile @@ -18,3 +18,4 @@ obj-$(CONFIG_SMP) += smp.o obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o obj-$(CONFIG_XEN_DEBUG_FS) += debugfs.o +obj-$(CONFIG_SWIOTLB_XEN) += pci-swiotlb-xen.o |