]> Git Repo - J-linux.git/commit
pci-swiotlb-xen: Add glue code to setup dma_ops utilizing xen_swiotlb_*
authorKonrad Rzeszutek Wilk <[email protected]>
Tue, 9 Feb 2010 19:30:55 +0000 (14:30 -0500)
committerKonrad Rzeszutek Wilk <[email protected]>
Tue, 27 Jul 2010 15:51:02 +0000 (11:51 -0400)
commitbbbe57386e857eb2a8d4abcae71063c819c06ff1
treeb701630e53fdd848c170bd739803530f00c2f4f5
parentb097186fd29d5bc5a26d1ae87995821ffc27b66e
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 <[email protected]>
Acked-by: Jeremy Fitzhardinge <[email protected]>
Cc: FUJITA Tomonori <[email protected]>
Cc: Albert Herranz <[email protected]>
Cc: Ian Campbell <[email protected]>
arch/x86/include/asm/xen/swiotlb-xen.h [new file with mode: 0644]
arch/x86/xen/Makefile
arch/x86/xen/pci-swiotlb-xen.c [new file with mode: 0644]
This page took 0.047282 seconds and 4 git commands to generate.