Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329172
b: refs/heads/master
c: fc2341d
h: refs/heads/master
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk committed Aug 21, 2012
1 parent dd1701a commit 849da97
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 988f0e24bbcbbf550dff016faf8273a94f4eb1af
refs/heads/master: fc2341df9e31be8a3940f4e302372d7ef46bab8c
14 changes: 14 additions & 0 deletions trunk/arch/x86/xen/pci-swiotlb-xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#include <xen/xen.h>
#include <asm/iommu_table.h>

#ifdef CONFIG_X86_64
#include <asm/iommu.h>
#include <asm/dma.h>
#endif

int xen_swiotlb __read_mostly;

static struct dma_map_ops xen_swiotlb_dma_ops = {
Expand Down Expand Up @@ -49,6 +54,15 @@ int __init pci_xen_swiotlb_detect(void)
* the 'swiotlb' flag is the only one turning it on. */
swiotlb = 0;

#ifdef CONFIG_X86_64
/* pci_swiotlb_detect_4gb turns on native SWIOTLB if no_iommu == 0
* (so no iommu=X command line over-writes).
* Considering that PV guests do not want the *native SWIOTLB* but
* only Xen SWIOTLB it is not useful to us so set no_iommu=1 here.
*/
if (max_pfn > MAX_DMA32_PFN)
no_iommu = 1;
#endif
return xen_swiotlb;
}

Expand Down

0 comments on commit 849da97

Please sign in to comment.