Part I: Abstracting Plan 9's VM interfaces.



x	1. Create vmspace structure for segment array, segment length, lock
x	2. Initialize nseg at process fork to the size of the segment array
	/* Final semantics for nseg is the total # of segments currently */
x	3. Search through all of Plan 9; convert iterations on 0...NSEG to
x	   ones on 0..(nsegs).
4. Write a single function, (VA -> Segment), which takes a VA and a vmspace
   and finds the controlling segment.
5. Cut over a number of kernel places to use that rather than doing the 
   segment search itself
6. Convert the VA->segment search to use a (in-place?) binary tree
7. Add a new flag to each segment, 'maintain across exec' / 'don't maintain';
   different than SG_CEXEC
8. Write a new function, that takes a callback and applies it to every segment
   in a vmspace. 
9. Convert a few (as many as possible) iterations over the segment set into
   using the callback-based interface


S. Major sync point. Change vmspace from anonymous to named structure

=====

Rules:
	1. p->nsegs is protected by the vmspace QLock!
	2. we ought really convert the QLock to an upgradable rwlock


	vmspace_lock_read(&up->vm);
	Seg *s = vmspace_lookup(&up->vm, VA, dolock = 1);
	vmspace_unlock_read(&up->vm);

	// s is locked! 

=====


1. Create vm_fork() and vm_exec() calls; insert them at the appropriate places

2. Convert vmspace lock from QLock to RWlock; use R-side for vm map lookups
   when possible
			
	nsegs is the amount of segment space

	phase II: nsegs is the number of segments
