From owner-svn-src-projects@FreeBSD.ORG Wed Apr 24 06:34:57 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 80156AA6; Wed, 24 Apr 2013 06:34:57 +0000 (UTC) (envelope-from cherry@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 734141180; Wed, 24 Apr 2013 06:34:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3O6Yvoj096686; Wed, 24 Apr 2013 06:34:57 GMT (envelope-from cherry@svn.freebsd.org) Received: (from cherry@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3O6YvX4096685; Wed, 24 Apr 2013 06:34:57 GMT (envelope-from cherry@svn.freebsd.org) Message-Id: <201304240634.r3O6YvX4096685@svn.freebsd.org> From: "Cherry G. Mathew" Date: Wed, 24 Apr 2013 06:34:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r249831 - projects/amd64_xen_pv/sys/amd64/xen X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2013 06:34:57 -0000 Author: cherry Date: Wed Apr 24 06:34:56 2013 New Revision: 249831 URL: http://svnweb.freebsd.org/changeset/base/249831 Log: Scan the proper lower table before detaching it from the paging hierarchy and freeing it. Approved by: gibbs (implicit) Modified: projects/amd64_xen_pv/sys/amd64/xen/mmu_map.c Modified: projects/amd64_xen_pv/sys/amd64/xen/mmu_map.c ============================================================================== --- projects/amd64_xen_pv/sys/amd64/xen/mmu_map.c Wed Apr 24 06:05:33 2013 (r249830) +++ projects/amd64_xen_pv/sys/amd64/xen/mmu_map.c Wed Apr 24 06:34:56 2013 (r249831) @@ -492,7 +492,7 @@ mmu_map_release_va(struct pmap *pm, void } /* We can free the PDT only after the PDPT entry is zapped */ - if (memcchr(pti->pt, 0, PAGE_SIZE) == NULL) { + if (memcchr(pti->pdt, 0, PAGE_SIZE) == NULL) { pdptep_ma = xpmap_ptom(pti->ptmb.vtop((uintptr_t)pdptep)); xen_queue_pt_update(pdptep_ma, 0); xen_flush_queue(); @@ -534,7 +534,7 @@ mmu_map_release_va(struct pmap *pm, void return; } - if (memcchr(pti->pt, 0, PAGE_SIZE) == NULL) { + if (memcchr(pti->pdpt, 0, PAGE_SIZE) == NULL) { pml4tep_ma = xpmap_ptom(pti->ptmb.vtop((uintptr_t)pml4tep) ); xen_queue_pt_update(pml4tep_ma, 0);