From owner-p4-projects@FreeBSD.ORG Fri Apr 7 23:25:35 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C48FE16A401; Fri, 7 Apr 2006 23:25:35 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BF2416A406 for ; Fri, 7 Apr 2006 23:25:35 +0000 (UTC) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D636943D6E for ; Fri, 7 Apr 2006 23:25:34 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k37NPY7S071643 for ; Fri, 7 Apr 2006 23:25:34 GMT (envelope-from alc@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k37NPYAb071640 for perforce@freebsd.org; Fri, 7 Apr 2006 23:25:34 GMT (envelope-from alc@freebsd.org) Date: Fri, 7 Apr 2006 23:25:34 GMT Message-Id: <200604072325.k37NPYAb071640@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to alc@freebsd.org using -f From: Alan Cox To: Perforce Change Reviews Cc: Subject: PERFORCE change 94783 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 23:25:36 -0000 http://perforce.freebsd.org/chv.cgi?CH=94783 Change 94783 by alc@alc_home on 2006/04/07 23:24:52 Promotion of kernel pmap pages requires that the corresponding pde in every pmap is updated. Affected files ... .. //depot/projects/superpages/src/sys/i386/i386/pmap.c#10 integrate Differences ... ==== //depot/projects/superpages/src/sys/i386/i386/pmap.c#10 (text+ko) ==== @@ -3302,6 +3302,7 @@ mach_promote(pmap_t pmap, vm_offset_t va, reservation_t reserv) { vm_paddr_t pa; + pmap_t allpmaps_entry; pd_entry_t *pde = pmap_pde(pmap, va); pt_entry_t *pte, *first_pte, flags; vm_page_t page_pa; @@ -3331,7 +3332,15 @@ } /* Create a superpage: add PG_PS bit to the pde */ - *pde = PG_PS | flags; + if (pmap == kernel_pmap) { + mtx_lock_spin(&allpmaps_lock); + LIST_FOREACH(allpmaps_entry, &allpmaps, pm_list) { + pde = pmap_pde(allpmaps_entry, va); + pde_store(pde, PG_PS | flags); + } + mtx_unlock_spin(&allpmaps_lock); + } else + *pde = PG_PS | flags; if (pmap != kernel_pmap) pmap->pm_stats.resident_count--;