PERFORCE change 145196 for review

Julian Elischer julian at FreeBSD.org
Mon Jul 14 06:47:16 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=145196

Change 145196 by julian at julian_trafmon1 on 2008/07/14 06:47:13

	Small tidyings

Affected files ...

.. //depot/projects/vimage/porting_to_vimage.txt#5 edit

Differences ...

==== //depot/projects/vimage/porting_to_vimage.txt#5 (text+ko) ====

@@ -1,4 +1,9 @@
+July 13 2008
+Julian Elischer
+
+===================
 Vimage: what is it?
+===================
 
 Vimage is a framework in the BSD kernel which allows a co-operating module
 to present multiple instances of itself so that it can participate 
@@ -72,7 +77,9 @@
 
 Details:
 
-(temp. for module FOO add a definition for VNET_MOD_FOO in sys/vimage.h)
+temp. note: for module FOO add a definition for VNET_MOD_FOO in sys/vimage.h.
+Thos will eventually be dynamically assigned.
+
 For now these instructions refer mainly to VNET and not VCPU etc.
 
 Symbols defined in other modules that have been virtualised will have been
@@ -156,9 +163,6 @@
 routing tables for THIS virtual machine. (cute eh?)  
 (of course that won't work for core dumps). (XXX *needs thought *)
 
-
-
-
 As example of virtualising a dummy module named the FOO module
 the following code might be added to a special vfoo.h or at least to
 the exisitng foo.h file:
@@ -195,8 +199,6 @@
 functions are defined for the module. The Module will call these when a new 
 virtual machine is created or destroyed. The constructor must be called once
 for the base machine when the system is booted, even when VIMAGE is not defined. 
-
-
 ==================== in module foo.c ======
 #include "opt_vimage.h"
 [...]
@@ -251,7 +253,7 @@
 {
 	INIT_VNET_FOO(curvnet);	/* Add this at the front */
 
-	V_foo_counter++;	/* add "V_" to teh front */
+	V_foo_counter++;	/* add "V_" to the front of the symbol */
 	[...]
 	V_foo_barx.mumble = V_foo_counter;  /* and here too */
 	[...]


More information about the p4-projects mailing list