lkml.org 
[lkml]   [2009]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/9] xen: make sure swiotlb allocation is physically contigious
From
On Thu,  7 May 2009 17:17:14 -0700
Jeremy Fitzhardinge <jeremy@goop.org> wrote:

> Impact: make swiotlb allocation suitable for Xen
>
> When allocating the swiotlb buffer under Xen, make sure the memory is
> physically contiguous so that its really suitable for DMA.
>
> Do this by allocating the memory as usual, but then call a Xen
> function to rearrange the underlying pages to be physically
> contiguous.
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
> Reviewed-by: "H. Peter Anvin" <hpa@zytor.com>
> Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> ---
> arch/x86/kernel/pci-swiotlb.c | 10 ----------
> arch/x86/xen/Makefile | 1 +
> arch/x86/xen/pci-swiotlb.c | 27 +++++++++++++++++++++++++++
> drivers/pci/xen-iommu.c | 16 ++++++++++++++++
> include/xen/swiotlb.h | 6 ++++++
> 5 files changed, 50 insertions(+), 10 deletions(-)
> create mode 100644 arch/x86/xen/pci-swiotlb.c
> create mode 100644 include/xen/swiotlb.h

Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>


\
 
 \ /
  Last update: 2009-05-11 05:45    [W:0.299 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site