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/
Home Products Support Community News


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