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

Re: [Xen-devel] [hybrid] : mmap pfn space...



On Mon, 16 Apr 2012, Ian Campbell wrote:
> > In a nutshell, I am still trying to figure how to allocate rsvd pfn's 
> > for privcmd without writing a slab allocator.
> 
> Can't you just use the core get_page function (or
> alloc_xenballooned_pages) and move the associated mfn aside temporarily
> (or not if using alloc_xenballooned_pages)?

I think that is a good suggestion: if we are trying to get in something
that works but might not be the best solution, then using
alloc_xenballooned_pages to get some pages and then changing the p2m is
the best option: it wastes a non-trivial amount of memory in dom0 but at
least it is known to work well and it wouldn't be an "hack".

Give a look at gntdev_alloc_map, gnttab_map_refs and m2p_add_override
for an example.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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