Commit 9537433f authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

pagemap: add ability to request remote pages

The asynchronous version of remote page_read will send the request to the
dump side and return happily.
The response will be handled by the uffd.c because it's epoll loop is the
only place where we can handle events.

travis-ci: success for uffd: A new set of improvements
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent d4edd9bf
......@@ -417,7 +417,11 @@ static int maybe_read_page_remote(struct page_read *pr, unsigned long vaddr,
int ret;
if (flags & PR_ASYNC)
ret = -1; /* not yet supported */
/*
* Note, that for async remote page_read, the actual
* transfer happens in the lazy-pages daemon
*/
ret = request_remote_pages(pr->pid, vaddr, len / PAGE_SIZE);
else
ret = get_remote_pages(pr->pid, vaddr, nr, buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment