From owner-p4-projects@FreeBSD.ORG Mon Jul 14 06:47:16 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 981B41065672; Mon, 14 Jul 2008 06:47:16 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C392106566B for ; Mon, 14 Jul 2008 06:47:16 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4FB128FC16 for ; Mon, 14 Jul 2008 06:47:16 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m6E6lG9O047689 for ; Mon, 14 Jul 2008 06:47:16 GMT (envelope-from julian@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m6E6lGu9047687 for perforce@freebsd.org; Mon, 14 Jul 2008 06:47:16 GMT (envelope-from julian@freebsd.org) Date: Mon, 14 Jul 2008 06:47:16 GMT Message-Id: <200807140647.m6E6lGu9047687@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer To: Perforce Change Reviews Cc: Subject: PERFORCE change 145196 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2008 06:47:16 -0000 http://perforce.freebsd.org/chv.cgi?CH=145196 Change 145196 by julian@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 */ [...]