svn commit: r214377 - stable/8/sys/vm
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Tue Oct 26 14:59:35 UTC 2010
Author: nwhitehorn
Date: Tue Oct 26 14:59:35 2010
New Revision: 214377
URL: http://svn.freebsd.org/changeset/base/214377
Log:
MFC r212360:
On architectures with non-tree-based page tables like PowerPC, every page
in a range must be checked when calling pmap_remove(). Calling
pmap_remove() from vm_pageout_map_deactivate_pages() with the entire range
of the map could result in attempting to demap an extraordinary number
of pages (> 10^15), so iterate through each map entry and unmap each of
them individually.
Modified:
stable/8/sys/vm/vm_pageout.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/vm/vm_pageout.c
==============================================================================
--- stable/8/sys/vm/vm_pageout.c Tue Oct 26 14:56:46 2010 (r214376)
+++ stable/8/sys/vm/vm_pageout.c Tue Oct 26 14:59:35 2010 (r214377)
@@ -661,8 +661,11 @@ vm_pageout_map_deactivate_pages(map, des
* table pages.
*/
if (desired == 0 && nothingwired) {
- pmap_remove(vm_map_pmap(map), vm_map_min(map),
- vm_map_max(map));
+ tmpe = map->header.next;
+ while (tmpe != &map->header) {
+ pmap_remove(vm_map_pmap(map), tmpe->start, tmpe->end);
+ tmpe = tmpe->next;
+ }
}
vm_map_unlock(map);
}
More information about the svn-src-stable-8
mailing list