[PATCH 0/2] vmpslice support for zero-copy gifting of pages

2013-10-07 Thread Robert C Jennings
This patch set would add the ability to move anonymous user pages from one process to another through vmsplice without copying data. Moving pages rather than copying is implemented for a narrow case in this RFC to meet the needs of QEMU's usage (below). Among the restrictions the source address a

[PATCH 1/2] vmsplice: unmap gifted pages for recipient

2013-10-07 Thread Robert C Jennings
t patch has the restriction that the page must not be mapped by the source for the move, otherwise it will fall back to copying the page. Signed-off-by: Matt Helsley Signed-off-by: Robert C Jennings --- Since the RFC went out I have coalesced the zap_page_range() call to operate on VMAs rather than c

[PATCH 2/2] vmsplice: Add limited zero copy to vmsplice

2013-10-07 Thread Robert C Jennings
d. Signed-off-by: Matt Helsley Signed-off-by: Robert C Jennings --- fs/splice.c | 63 + 1 file changed, 63 insertions(+) diff --git a/fs/splice.c b/fs/splice.c index a62d61e..9d2ed128 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -3