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

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

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

Oh dear :-/

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

Used to work but it's apparently rotted.  It does SHARE_PFN_WITH_DOMAIN an Xen 
but the userspace code doesn't use the xc_map_foreign_range() that Keir 

I'll check in a fix, assuming nobody beats me to it.


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



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