Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Mar 2013 01:26:12 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r247681 - user/attilio/vmc-playground/sys/i386/xen
Message-ID:  <201303030126.r231QCoO023447@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Sun Mar  3 01:26:11 2013
New Revision: 247681
URL: http://svnweb.freebsd.org/changeset/base/247681

Log:
  Fixup XEN pmap to cope with removal of left/right iterators from
  pages.
  
  Sponsored by:	EMC / Isilon storage division

Modified:
  user/attilio/vmc-playground/sys/i386/xen/pmap.c

Modified: user/attilio/vmc-playground/sys/i386/xen/pmap.c
==============================================================================
--- user/attilio/vmc-playground/sys/i386/xen/pmap.c	Sun Mar  3 01:10:49 2013	(r247680)
+++ user/attilio/vmc-playground/sys/i386/xen/pmap.c	Sun Mar  3 01:26:11 2013	(r247681)
@@ -1335,7 +1335,8 @@ pmap_free_zero_pages(vm_page_t free)
 
 	while (free != NULL) {
 		m = free;
-		free = m->right;
+		free = (void *)m->object;
+		m->object = NULL;
 		vm_page_free_zero(m);
 	}
 }
@@ -1393,7 +1394,7 @@ _pmap_unwire_ptp(pmap_t pmap, vm_page_t 
 	 * Put page on a list so that it is released after
 	 * *ALL* TLB shootdown is done
 	 */
-	m->right = *free;
+	m->object = (void *)*free;
 	*free = m;
 }
 
@@ -2090,7 +2091,7 @@ out:
 	}
 	if (m_pc == NULL && pv_vafree != 0 && free != NULL) {
 		m_pc = free;
-		free = m_pc->right;
+		free = (void *)m_pc->object;
 		/* Recycle a freed page table page. */
 		m_pc->wire_count = 1;
 		atomic_add_int(&cnt.v_wire_count, 1);



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