[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xenpaging: munmap all pages after page-in
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1321292954 0 # Node ID e2cc58b85b6eaf0c4348ee805d4ad011f829cbf6 # Parent 0844b17df7a9dd885e98e505f14fc99c1951b483 xenpaging: munmap all pages after page-in Do munmap() on all mapped pages, not just the first one. Without this change the gfns backing the remaining pages can not be paged out again because the page count does not go down to 1. This change was missing from changeset 23827:d1d6abc1db20. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r 0844b17df7a9 -r e2cc58b85b6e tools/xenpaging/pagein.c --- a/tools/xenpaging/pagein.c Fri Nov 11 18:14:35 2011 +0000 +++ b/tools/xenpaging/pagein.c Mon Nov 14 17:49:14 2011 +0000 @@ -44,7 +44,7 @@ /* Ignore errors */ page = xc_map_foreign_pages(pia->xch, pia->dom, PROT_READ, gfns, num); if (page) - munmap(page, PAGE_SIZE); + munmap(page, PAGE_SIZE * num); } page_in_possible = 0; pthread_exit(NULL); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |