Re: [Qemu-devel] [PATCH 4/4] mm: sys_remap_anon_pages

2013-05-06 Thread Andrea Arcangeli
On Mon, May 06, 2013 at 09:57:01PM +0200, Andrea Arcangeli wrote: > === > > static unsigned char *c, *tmp; > > void userfault_sighandler(int signum, siginfo_t *info, void *ctx) oops, the hash of the test program got cut... so I append it below which is nicer without leading whitespaces. === #de

[Qemu-devel] [PATCH 4/4] mm: sys_remap_anon_pages

2013-05-06 Thread Andrea Arcangeli
This new syscall will move anon pages across vmas, atomically and without touching the vmas. It only works on non shared anonymous pages because those can be relocated without generating non linear anon_vmas in the rmap code. It is the ideal mechanism to handle userspace page faults. Normally the