[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] How to mmap xen pages?



For each page you wish to share, you must 
SHARE_PFN_WITH_DOMAIN(page, dom0).

Then, from dom0 userspace, you must map the appropriate pages using 
libxc's xc_map_foreign_range(). Grep around in libxc itself for some
example uses.

 -- Keir

> I am try to convey a large data collection buffer from xen to a 
> userspace program running in domain 0. I examined the xentrace facility 
> and copied the code to mmap pages. My mmap fails, and upon trying out 
> the xentrace program, I found that it fails in exactly the same way, ie, 
> returns errno 11, "Resource Temporarily Unavailable". I have allocated 
> my memory buffers just like common/trace.c does it, etc. Is this trace 
> stuff not working anymore, did it ever work, and/or what is the 
> recommended way to do what I want?
> 
> Thanks,
> 
> Rob Gardner
> HP
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.