PERFORCE change 97666 for review
Kip Macy
kmacy at FreeBSD.org
Tue May 23 05:49:19 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=97666
Change 97666 by kmacy at kmacy_storage:sun4v_work on 2006/05/23 05:47:43
don't remove the referenced bit in pmap_protect
only invalidate range if there is a modified page
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#57 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#57 (text+ko) ====
@@ -1491,12 +1491,12 @@
vm_page_t m;
if ((otte_data = tte_hash_clear_bits(pmap->pm_hash, tva,
- (VTD_SW_W|VTD_W|VTD_REF))) == 0)
+ (VTD_SW_W|VTD_W))) == 0)
continue;
- if (otte_data & (VTD_SW_W | VTD_W | VTD_REF))
+ if (!anychanged && (otte_data & VTD_W))
anychanged = 1;
-
+
if (otte_data & VTD_MANAGED) {
m = NULL;
More information about the p4-projects
mailing list