WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] direct_remap_area_pages() does not work for multiple pag

To: "Xin Zhao" <zhaoxin@xxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] direct_remap_area_pages() does not work for multiple pages?
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Thu, 10 Feb 2005 20:07:30 -0000
Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxxx>, <ian.pratt@xxxxxxxxxxxx>, <ian.pratt@xxxxxxxxxxxx>
Delivery-date: Thu, 10 Feb 2005 20:08:40 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thread-index: AcUPmBgnstjRAVLaR+ec2kvhj5M75gAEyzNg
Thread-topic: [Xen-devel] direct_remap_area_pages() does not work for multiple pages?
 
> In DomU, I used alloc_pages() to allocate contiguous memory pages,
> are they machine contiguous? If not, what's the right way to allocate
> machine contiguous pages? or what's the right way to map 
> multiple pages
> into Dom0?

alloc_pages does not guarantee to return machine contiguous pages. As a
hack, you could use dma_alloc_coherent. The correct approach is to find
out all the mfns that are in use and do multiple direct_remap_area calls
as appropriate. In user space, things are rather nicer as you can use
the xc_map_foreign_batch.

Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>