On Thu, Feb 03, 2011 at 12:18:58PM -0500, Daniel De Graaf wrote: > Changes since v5: > - Added a tested xen version to workaround in #4 > - Cleaned up variable names & structures > - Clarified some of the cleanup in gntalloc > - Removed copyright statement from public-domain files > > [PATCH 1/6] xen-gntdev: Change page limit to be global instead of per-open > [PATCH 2/6] xen-gntdev: Use find_vma rather than iterating our vma list manually > [PATCH 3/6] xen-gntdev: Add reference counting to maps > [PATCH 4/6] xen-gntdev: Support mapping in HVM domains > [PATCH 5/6] xen-gntalloc: Userspace grant allocation driver > [PATCH 6/6] xen/gntalloc,gntdev: Add unmap notify ioctl > > Test/Demo code (also updated): I played with this (two PV domains) and I got two failures: 1). When forgetting to unmap a grant page and quitting the tool 2). when unmapping appropriately. Attached are the logs from the domain exporting the grants (domain 4), and the faulting (domain 3 and domain 5). This is using this patchset (devel/gntalloc.v6) and sticking it on top of 2.6.38-rc2 with a whole bunch of patches. To be specific: git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git #master