All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] [0/4] User-space grants for Console and XenStore
@ 2007-05-02 11:15 Derek Murray
  2007-05-02 12:15 ` John Levon
  2007-05-07  8:46 ` Isaku Yamahata
  0 siblings, 2 replies; 10+ messages in thread
From: Derek Murray @ 2007-05-02 11:15 UTC (permalink / raw)
  To: xen-devel, xense-devel

Following on from the introduction of a User-space grant table device  
("gntdev" - see http://lists.xensource.com/archives/html/xen-devel/ 
2007-03/msg01337.html for more details), I have modified the domain  
building process so that the grant table mechanism is used for  
communication with the console and XenStore daemons. This replaces  
the use of xc_map_foreign_range().

The development was carried out as follows:

* Added a new gnttabop, which installs grant table entries into the  
reserved section of the grant table.
* Modified the domain builder to install entries for the console and  
XenStore pages for each new domain (using fixed entry numbers).
* Modified the console and XenStore daemons to use  
xc_gnttab_map_grant_ref() in place of xc_map_foreign_range().

I've tested this locally (on x86_32 and x86_64) and it seems to work.  
There are a few remaining concerns that I have:

* Will this work on ia64 and PowerPC?
* How will this integrate with XSM? The install-grant operation is  
clearly as privileged as the ability to map arbitrary memory from a  
foreign domain, so could these share a hook?
* Solaris support? I don't know enough about Solaris to know what  
changes must be made to gntdev for it to run there. Since these  
changes hit presumably portable code, would it be acceptable to have  
an #ifdef in the console and XenStore daemons?

The patch is structured as follows:

1. gnttabop.patch - Changes to the hypervisor to add the install- 
entry gnttabop.
2. libxc.patch - Changes to libxc to install grants for the console  
and XenStore pages.
3. xenconsoled.patch - Changes to the console daemon to use grant  
references.
4. xenstored.patch - Changes to the XenStore daemon to use grant  
references.

I would welcome your input on this.

Regards,

Derek Murray.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-05-08 15:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-02 11:15 [RFC] [0/4] User-space grants for Console and XenStore Derek Murray
2007-05-02 12:15 ` John Levon
2007-05-02 12:29   ` Derek Murray
2007-05-02 12:46     ` Keir Fraser
2007-05-02 14:38       ` Derek Murray
2007-05-02 14:48         ` Keir Fraser
2007-05-02 15:33           ` Derek Murray
2007-05-07  8:46 ` Isaku Yamahata
2007-05-08 14:40   ` Derek Murray
2007-05-08 15:31     ` Isaku Yamahata

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.