svn commit: r249831 - projects/amd64_xen_pv/sys/amd64/xen

Cherry G. Mathew cherry at FreeBSD.org
Wed Apr 24 06:34:57 UTC 2013


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);


More information about the svn-src-projects mailing list