Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2007 20:57:00 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 115881 for review
Message-ID:  <200703142057.l2EKv05Y038529@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=115881

Change 115881 by gonzo@gonzo_jeeves on 2007/03/14 20:56:39

	o vm_fault_prefault calls pmap_enter with corespondent entry
	    protection, so if we're prefaulting R/W region with COW 
	    all pages except faulting one are mapped with R/W permissions i
	    and therefore fail to perform COW operation. This issue is to
	    be investigated, meanwhile work it around with disabling prefault
	    for MIPS at all.
	o Some spellchecking stuff.	    

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/pmap.c#21 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/pmap.c#21 (text+ko) ====

@@ -1657,18 +1657,17 @@
 /*
  *	pmap_is_prefaultable:
  *
- *	Return whether or not the specified virtual address is elgible
+ *	Return whether or not the specified virtual address is eligible
  *	for prefault.
  */
 boolean_t
 pmap_is_prefaultable(pmap_t pmap, vm_offset_t va)
 {
-	pt_entry_t *pte;
-
-	pte = pmap_pte(pmap, va);
-	if (pte_valid(pte))
-		return (FALSE);
-	return (TRUE);
+	/* 
+	 * XXX: prefault causes bugs with COW, so let's stick
+	 * with all pages not eligible to prefault.
+	 */
+	return (FALSE);
 }
 
 /*


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703142057.l2EKv05Y038529>