Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2013 06:34:57 +0000 (UTC)
From:      "Cherry G. Mathew" <cherry@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r249831 - projects/amd64_xen_pv/sys/amd64/xen
Message-ID:  <201304240634.r3O6YvX4096685@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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