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>, <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
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 13:27:03 -0000
Cc: <ian.pratt@xxxxxxxxxxxx>
Delivery-date: Thu, 10 Feb 2005 13:28:50 +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: AcUPT0d0w3XDArpUTECF1TLYakVuzwAJJZEg
Thread-topic: [Xen-devel] direct_remap_area_pages() does not work for multiple pages?
> I am trying to use the following code to map multiple pages 
> from a DomU to
> Dom0, but noticed some weird thing: when I change the content 
> of the first
> page at Dom0, DomU can see the change, but if I change the content of
> pages after the first one, DomU cannot see any update. Why? I 
> did check
> the return value of function direct_remap_area_pages(...), 
> the function
> should execute succesfully.  This function can only map one 
> page a time? I
> checked the source code, it should be able to map multiple 
> pages, why I
> got this weird problem?  Please help!!! Thanks in advance!

Probably because the region you're trying to map is guest
pseudo-physical contiguous, but not machine contiguous.

Ian


> CODE:
> direct_remap_area_pages(&init_mm, VMALLOC_VMADDR(bufmap_vma->addr),
>                  mapcmd.bufmap_addr << PAGE_SHIFT,
>                  PAGE_SIZE * SVDIF_BUF_PAGES, prot, mapcmd.domid);
> 
> -x
> 
> 
> 
> -------------------------------------------------------
> 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_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel
> 


-------------------------------------------------------
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