Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
xen
24138-xenpaging_munmap_all_pages_after_page-in....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 24138-xenpaging_munmap_all_pages_after_page-in.patch of Package xen
changeset: 24138:e2cc58b85b6e user: Olaf Hering <olaf@aepfle.de> date: Mon Nov 14 17:49:14 2011 +0000 files: tools/xenpaging/pagein.c description: 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@aepfle.de> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com> --- tools/xenpaging/pagein.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: xen-4.1.2-testing/tools/xenpaging/pagein.c =================================================================== --- xen-4.1.2-testing.orig/tools/xenpaging/pagein.c +++ xen-4.1.2-testing/tools/xenpaging/pagein.c @@ -44,7 +44,7 @@ static void *page_in(void *arg) /* 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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor