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

Re: [Xen-devel] Re: dom0 bootstrap for xenstore




On 16 Jun 2005, at 14:55, Keir Fraser wrote:

Either we need a new interface for mmaping local xenstore page, or we need to hack one of the existing /dev/mem or xc_map_foreign_range ioctl. None of these options is very pleasant. :-( I think simplest would be to extend the gross /proc/xen/privcmd to have a mmap that we can use to mmap xenstore page (maybe make a little more general purpose by turning offset field of mmap into an enumeration, so we can map other useful Xen-specific bits and bobs via it in the future).

Brainwave: what if you mark the xenstore page as PageReserved? This is easy to do if you allocate the page from within the kernel (rather than user space) as you can mark it reserved at the same time you allocate it. Then you ought to be able to use xc_map_foreign_page without problems. And it makes sense -- the xenstore page is not a normal page-cache/VM page.

I think this is a one-line addition to your previous patch. :-)

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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