All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] [RFC] User-space grant table device
@ 2007-03-19 10:40 Derek Murray
  2007-03-19 14:00 ` Keir Fraser
  2007-03-21  4:32 ` Isaku Yamahata
  0 siblings, 2 replies; 10+ messages in thread
From: Derek Murray @ 2007-03-19 10:40 UTC (permalink / raw)
  To: xen-devel

I've completed a version of a Linux kernel driver for mapping granted  
pages into user-space. There are a few use cases for this, but the  
most important (from a XenSE/dom0 disaggregation point of view) is  
changing the way the the console daemon and xenstore map their  
respective pages in the guests. A further possibility might be  
reimplementing blktap entirely in user-space.

Currently the driver supports:
* Mapping one or more pages at a time into a contiguous portion of  
memory..
* Mapping up to 128 pages per file descriptor (this is an arbitrary  
limit, but it would be trivial to make this configurable).
* Each page may only be mapped once. However, it is possible to map  
the same grant more than once: simply register the grant twice with  
the ioctl, and then map the two (different) offsets.

In addition, I've written some simple libxc functions (of the same  
format as the xc_evtchn_* functions) that provide access to the driver.

I've split up the patch as follows:

1. gntdev.patch: This is the main driver, and associated header file.
2. libxc-changes.patch: These are the libxc functions for accessing  
the driver.
3. linux-changes.patch: These contain the necessary changes to linux  
(in effect, adding a hook to the vm_operations_struct that is called  
by the unmap_page_range function) for unmapping grants before the  
page table is destroyed.

I'd welcome your comments.

Regards,

Derek Murray.

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

end of thread, other threads:[~2007-03-23 15:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 10:40 [PATCH 0/3] [RFC] User-space grant table device Derek Murray
2007-03-19 14:00 ` Keir Fraser
2007-03-19 14:31   ` Derek Murray
2007-03-19 15:11     ` Keir Fraser
2007-03-21  4:32 ` Isaku Yamahata
2007-03-21 11:29   ` Derek Murray
2007-03-21 14:16     ` Andrew Warfield
2007-03-23 15:25       ` Mark Williamson
2007-03-22  2:28     ` Isaku Yamahata
2007-03-23 14:50       ` Derek Murray

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.