From owner-freebsd-virtualization@FreeBSD.ORG Sun Aug 31 12:16:53 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B15C106567D for ; Sun, 31 Aug 2008 12:16:53 +0000 (UTC) (envelope-from Daniel.Schwager@dtnet.de) Received: from extmail.dtnet.de (extmail.dtnet.de [87.193.12.202]) by mx1.freebsd.org (Postfix) with ESMTP id E58A18FC1B for ; Sun, 31 Aug 2008 12:16:52 +0000 (UTC) (envelope-from Daniel.Schwager@dtnet.de) Received: from mail2.dtnet.de (smtp.dtnet.de [192.168.127.27]) by extmail.dtnet.de (Postfix) with ESMTP id D294213EA8 for ; Sun, 31 Aug 2008 13:46:35 +0200 (CEST) Received: by mail2.dtnet.de (Postfix, from userid 8) id 53EBEBE27; Sun, 31 Aug 2008 13:46:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on mail2.dtnet.de X-Spam-Level: X-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7-deb Received: from mail2.dtnet.de (mailscanner.dtnet.de [192.168.127.29]) by mail2.dtnet.de (Postfix) with ESMTP id 26B315B375 for ; Sun, 31 Aug 2008 13:46:27 +0200 (CEST) Received: from exchange.dtnet.de (exchange.dtnet.de [192.168.101.139]) by mail2.dtnet.de (Postfix) with ESMTP id 17F2C5B36D for ; Sun, 31 Aug 2008 13:46:27 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Sun, 31 Aug 2008 13:46:21 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: live & onlinedemo with freebsd 7.0 ? thread-index: AckLXzCpncyo3cwAQHmevQZFQJfFow== From: "Daniel Schwager" To: Cc: Daniel Schwager Subject: live & onlinedemo with freebsd 7.0 ? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 12:16:53 -0000 Hi all, we operate the platform softwaredemo.com and want to publish many open source OS like OpenSuSE11, debian, ubuntu, opensolaris, ... online and live for the communities.=20 Is somebody is interesting to run a live system of freebsd on softwaredemo.de ? If so, please create a HVM-Xen-DomU (HVM !) image of freebsd with=20 - available Resources - 1CPU, 512MB RAM - setup - one HDD with about 8 GB - DHCP-configuration, one NIC - progs - telnetd and sshd, xauth - X11-base progs (xterm, xclock, ..) - nice packages/programs you will show to other people - a windowmanger (gnome, kde, ... ??) - accounts - an account "jgast" with sudo-right's, password "secret" - root account, password "secret" This image should run on a i386-Fedora-Core8 Dom0 on Xen 3.2.1. Regards Danny from softwaredemo.de From owner-freebsd-virtualization@FreeBSD.ORG Tue Sep 2 00:24:00 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68D1B1065681; Tue, 2 Sep 2008 00:24:00 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 16BDD8FC18; Tue, 2 Sep 2008 00:23:59 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m8205GM9052005; Mon, 1 Sep 2008 19:05:16 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m8205GDD052004; Mon, 1 Sep 2008 19:05:16 -0500 (CDT) (envelope-from brooks) Date: Mon, 1 Sep 2008 19:05:16 -0500 From: Brooks Davis To: "Bjoern A. Zeeb" Message-ID: <20080902000516.GA48622@lor.one-eyed-alien.net> References: <20080828185639.P66593@maildrop.int.zabbadoz.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <20080828185639.P66593@maildrop.int.zabbadoz.net> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD virtualization mailing list Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 00:24:00 -0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 28, 2008 at 07:03:30PM +0000, Bjoern A. Zeeb wrote: > Hi, >=20 > in case you are interested or have volunteered before to review Step 1.5 > as described on http://wiki.freebsd.org/Image/Notes200808DevSummit > there are few things to do: >=20 > - review the diff (Julian posted an initial one). > - make sure all (relevant) sysctl were caught. > - make sure the INIT_VNET_* macro is there whereever it is needed. > - do builds according to "HOWTO verify that the pure style changes are > all right" on the above mentioned page and verify that it is all > style changes. In case there are others we shoudl decide to either > commit them either upfront or afterwards if possible. > - the 'include headers' one way or the other (as we have discussed at > the devsummit and that Julian has told me again) needs resolving. > As this has bikeshed potential, I'd prefer that the 'singed up' > reviewers decide that. > - possibly more... >=20 > The plan would be to have a final patch by Monday morning UTC to be > comitted by a volunteer. I've gone over the patch and fixed some white space issues. I've also found some things I'm not sure what to do with. Comments: - GENERIC_NODEBUG should not be committed - VNET_ITERLOOP_BEGIN/END is evil. It would be really nice to find a way to do this that preserves {} pairs and isn't too magic. - sys/kern/tty.c: - There's some #if 0 code that presumably should stay in the vimage branch for now and be fixed before the final commit. - TIOCDRAIN is being removed. Is this a merge issue or something else? - sys/net/if.h: - shouldn't net/vnet.h be included in if_var.h instead? *_var.h is supposed to be the internals and I think this qualifies. If so, there will be a number of files that added if.h includes that should add if_var.h includes instead. - sys/netinet/ip_fw.h: - It's not clear to me that all the changes in this file should actually be here. It looks like there may be some merge issues or WIP code. - sys/netinet6/icmp6.c: - This (and IIRC a couple other files in ipsec) contain comments like "XXX this below is WRONG". It would be nice if the issue could be fixed or if that's not feasible, a more detailed comment should be added. - sys/netipsec/ipsec.c: - This and a few other files change the style of SYSCTL*() macro usage. We're not at all consistent across the kernel, but my feeling is that we should either entirely preserve the local style or we should figure out what the style should be and do the churn now while we have to mangle the wrapping anyway. Also, we're due for another integrate round soon. -- Brooks --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIvIM7XY6L6fI4GtQRAkfIAJ9sFXYeGe8E9gXbiZkybz8HHMm/5wCgy/Td rehoMUVptByCdDXjv1y/yfo= =IeQ7 -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK-- From owner-freebsd-virtualization@FreeBSD.ORG Tue Sep 2 07:38:49 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D0721065676 for ; Tue, 2 Sep 2008 07:38:49 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outQ.internet-mail-service.net (outq.internet-mail-service.net [216.240.47.240]) by mx1.freebsd.org (Postfix) with ESMTP id 1F4068FC21 for ; Tue, 2 Sep 2008 07:38:49 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id E7C9B244E; Tue, 2 Sep 2008 00:38:48 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 118F12D6075; Tue, 2 Sep 2008 00:38:47 -0700 (PDT) Message-ID: <48BCED8E.5030109@elischer.org> Date: Tue, 02 Sep 2008 00:38:54 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Brooks Davis References: <20080828185639.P66593@maildrop.int.zabbadoz.net> <20080902000516.GA48622@lor.one-eyed-alien.net> In-Reply-To: <20080902000516.GA48622@lor.one-eyed-alien.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 07:38:49 -0000 Brooks Davis wrote: > On Thu, Aug 28, 2008 at 07:03:30PM +0000, Bjoern A. Zeeb wrote: >> Hi, >> >> in case you are interested or have volunteered before to review Step 1.5 >> as described on http://wiki.freebsd.org/Image/Notes200808DevSummit >> there are few things to do: >> >> - review the diff (Julian posted an initial one). >> - make sure all (relevant) sysctl were caught. >> - make sure the INIT_VNET_* macro is there whereever it is needed. >> - do builds according to "HOWTO verify that the pure style changes are >> all right" on the above mentioned page and verify that it is all >> style changes. In case there are others we shoudl decide to either >> commit them either upfront or afterwards if possible. >> - the 'include headers' one way or the other (as we have discussed at >> the devsummit and that Julian has told me again) needs resolving. >> As this has bikeshed potential, I'd prefer that the 'singed up' >> reviewers decide that. >> - possibly more... >> >> The plan would be to have a final patch by Monday morning UTC to be >> comitted by a volunteer. > > I've gone over the patch and fixed some white space issues. I've also > found some things I'm not sure what to do with. Comments: > > - GENERIC_NODEBUG should not be committed > - VNET_ITERLOOP_BEGIN/END is evil. It would be really nice to find a > way to do this that preserves {} pairs and isn't too magic. The requirement is to take soem code that doesn something once. and do it once for each vimage. There are of course many ways to do this.. Once we have the code in, I think we should expand this out and correctly indent the code, but for reasons of "minimum diff size" teh current way seems ok to me though it doens't look pretty.. I suggest that we eventually replace: VNET_ITERLOOP_BEGIN stuff VNET_ITERLOOP_END with (eventually) FOREACH_VNET(vnet) { stuff } but that would require that the entire contents of "stuff" would appear in the diff. > - sys/kern/tty.c: > - There's some #if 0 code that presumably should stay in the vimage > branch for now and be fixed before the final commit. > - TIOCDRAIN is being removed. Is this a merge issue or something > else? not sure myself.. I've been only following the tty mashup from a distance. > - sys/net/if.h: > - shouldn't net/vnet.h be included in if_var.h instead? *_var.h is > supposed to be the internals and I think this qualifies. If so, > there will be a number of files that added if.h includes that > should add if_var.h includes instead. I actually looked around to find a good place to icnlude vnet.h from and decided on if.h because it seemt o be included almist everywhere that vnet.h needed to be included, but I'm not religious on it. teh original code actually includes vnet.h directly in about 50 source files. my attempt to include it from if.h cut that down to 3. I'm not sure I want to actually include the contents directly into if.h or any other place.. I think keeping a separate vnet.h and vinet.h seems ok to me. > - sys/netinet/ip_fw.h: > - It's not clear to me that all the changes in this file should > actually be here. It looks like there may be some merge issues or > WIP code. I'll have a look. thanks for the pointer. > - sys/netinet6/icmp6.c: > - This (and IIRC a couple other files in ipsec) contain comments like > "XXX this below is WRONG". It would be nice if the issue could be > fixed or if that's not feasible, a more detailed comment should > be added. hmm yeah > - sys/netipsec/ipsec.c: > - This and a few other files change the style of SYSCTL*() macro > usage. We're not at all consistent across the kernel, but my > feeling is that we should either entirely preserve the local style > or we should figure out what the style should be and do the churn > now while we have to mangle the wrapping anyway. > I can do that (or you can... just run the update.sh script at the base..) > > -- Brooks From owner-freebsd-virtualization@FreeBSD.ORG Tue Sep 2 13:26:57 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77C331065683; Tue, 2 Sep 2008 13:26:57 +0000 (UTC) (envelope-from jamie@gritton.org) Received: from gritton.org (gritton.org [161.58.222.4]) by mx1.freebsd.org (Postfix) with ESMTP id 398518FC28; Tue, 2 Sep 2008 13:26:56 +0000 (UTC) (envelope-from jamie@gritton.org) Received: from glorfindel.gritton.org (c-76-27-80-223.hsd1.ut.comcast.net [76.27.80.223]) (authenticated bits=0) by gritton.org (8.13.6.20060614/8.13.6) with ESMTP id m82DQqDn049138; Tue, 2 Sep 2008 07:26:54 -0600 (MDT) Message-ID: <48BD3F1C.9050202@gritton.org> Date: Tue, 02 Sep 2008 07:26:52 -0600 From: James Gritton User-Agent: Thunderbird 2.0.0.9 (X11/20080228) MIME-Version: 1.0 To: Julian Elischer , FreeBSD virtualization mailing list References: <20080828185639.P66593@maildrop.int.zabbadoz.net> <20080902000516.GA48622@lor.one-eyed-alien.net> <48BCED8E.5030109@elischer.org> In-Reply-To: <48BCED8E.5030109@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on gritton.org X-Virus-Status: Clean Cc: "Bjoern A. Zeeb" Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 13:26:57 -0000 These are related to the virtual hostname stubs in vimage, all of which will be fixed when the jail_set framework is added. - Jamie Julian Elischer wrote: > Brooks Davis wrote: > >> - sys/netinet6/icmp6.c: >> - This (and IIRC a couple other files in ipsec) contain comments like >> "XXX this below is WRONG". It would be nice if the issue could be >> fixed or if that's not feasible, a more detailed comment should >> be added. > > hmm yeah From owner-freebsd-virtualization@FreeBSD.ORG Tue Sep 2 14:12:10 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67BFA1065677; Tue, 2 Sep 2008 14:12:10 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 1AB468FC22; Tue, 2 Sep 2008 14:12:09 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m82ECj8Z060224; Tue, 2 Sep 2008 09:12:45 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m82ECj9a060223; Tue, 2 Sep 2008 09:12:45 -0500 (CDT) (envelope-from brooks) Date: Tue, 2 Sep 2008 09:12:45 -0500 From: Brooks Davis To: Julian Elischer Message-ID: <20080902141245.GB48622@lor.one-eyed-alien.net> References: <20080828185639.P66593@maildrop.int.zabbadoz.net> <20080902000516.GA48622@lor.one-eyed-alien.net> <48BCED8E.5030109@elischer.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O5XBE6gyVG5Rl6Rj" Content-Disposition: inline In-Reply-To: <48BCED8E.5030109@elischer.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 14:12:10 -0000 --O5XBE6gyVG5Rl6Rj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 02, 2008 at 12:38:54AM -0700, Julian Elischer wrote: > Brooks Davis wrote: >> On Thu, Aug 28, 2008 at 07:03:30PM +0000, Bjoern A. Zeeb wrote: >>> Hi, >>>=20 >>> in case you are interested or have volunteered before to review Step 1.5 >>> as described on http://wiki.freebsd.org/Image/Notes200808DevSummit >>> there are few things to do: >>>=20 >>> - review the diff (Julian posted an initial one). >>> - make sure all (relevant) sysctl were caught. >>> - make sure the INIT_VNET_* macro is there whereever it is needed. >>> - do builds according to "HOWTO verify that the pure style changes are >>> all right" on the above mentioned page and verify that it is all >>> style changes. In case there are others we shoudl decide to either >>> commit them either upfront or afterwards if possible. >>> - the 'include headers' one way or the other (as we have discussed at >>> the devsummit and that Julian has told me again) needs resolving. >>> As this has bikeshed potential, I'd prefer that the 'singed up' >>> reviewers decide that. >>> - possibly more... >>>=20 >>> The plan would be to have a final patch by Monday morning UTC to be >>> comitted by a volunteer. >>=20 >> I've gone over the patch and fixed some white space issues. I've also >> found some things I'm not sure what to do with. Comments: >>=20 >> - GENERIC_NODEBUG should not be committed >> - VNET_ITERLOOP_BEGIN/END is evil. It would be really nice to find a >> way to do this that preserves {} pairs and isn't too magic. >=20 > The requirement is to take soem code that doesn something once. > and do it once for each vimage. There are of course many ways to do this.. >=20 > Once we have the code in, I think we should expand this out > and correctly indent the code, but for reasons of "minimum diff size" > teh current way seems ok to me though it doens't look pretty.. >=20 > I suggest that we eventually replace: >=20 > VNET_ITERLOOP_BEGIN > stuff > VNET_ITERLOOP_END >=20 >=20 > with (eventually) >=20 > FOREACH_VNET(vnet) { > stuff > } >=20 > but that would require that the entire contents of "stuff" > would appear in the diff. Thinking about it more, at a minimum, I think we should do: VNET_ITERLOOP_BEGIN stuff VNET_ITERLOOP_END >> - sys/kern/tty.c: >> - There's some #if 0 code that presumably should stay in the vimage >> branch for now and be fixed before the final commit. >> - TIOCDRAIN is being removed. Is this a merge issue or something >> else? >=20 >=20 > not sure myself.. I've been only following the tty mashup from a distance. >=20 >> - sys/net/if.h: >> - shouldn't net/vnet.h be included in if_var.h instead? *_var.h is >> supposed to be the internals and I think this qualifies. If so, >> there will be a number of files that added if.h includes that >> should add if_var.h includes instead. >=20 > I actually looked around to find a good place to icnlude vnet.h from > and decided on if.h because it seemt o be included almist everywhere > that vnet.h needed to be included, but I'm not religious on it. >=20 > teh original code actually includes vnet.h directly in about 50 source=20 > files. >=20 > my attempt to include it from if.h cut that down to 3. >=20 > I'm not sure I want to actually include the contents directly into > if.h or any other place.. I think keeping a separate vnet.h and > vinet.h seems ok to me. The #ifdef _KERNEL is a strong hint that it belongs in if_var.h if it's going to be included in another header (IMO, the vnet/vinet.h files aren't a good idea in the long term). -- Brooks --O5XBE6gyVG5Rl6Rj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIvUncXY6L6fI4GtQRAjqFAJ4rDoDm0TsK9SkfpYB4Z2WvMe7jOACg13NV ESD2RDjG6tdy5TF0rWAZZlE= =CjHo -----END PGP SIGNATURE----- --O5XBE6gyVG5Rl6Rj-- From owner-freebsd-virtualization@FreeBSD.ORG Tue Sep 2 14:33:29 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40AB61065681 for ; Tue, 2 Sep 2008 14:33:29 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outU.internet-mail-service.net (outu.internet-mail-service.net [216.240.47.244]) by mx1.freebsd.org (Postfix) with ESMTP id 259718FC1F for ; Tue, 2 Sep 2008 14:33:29 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id E4A8B23DC; Tue, 2 Sep 2008 07:33:28 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 310FA2D6045; Tue, 2 Sep 2008 07:33:27 -0700 (PDT) Message-ID: <48BD4EBE.4010005@elischer.org> Date: Tue, 02 Sep 2008 07:33:34 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Brooks Davis References: <20080828185639.P66593@maildrop.int.zabbadoz.net> <20080902000516.GA48622@lor.one-eyed-alien.net> <48BCED8E.5030109@elischer.org> <20080902141245.GB48622@lor.one-eyed-alien.net> In-Reply-To: <20080902141245.GB48622@lor.one-eyed-alien.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 14:33:29 -0000 Brooks Davis wrote: > On Tue, Sep 02, 2008 at 12:38:54AM -0700, Julian Elischer wrote: >> Brooks Davis wrote: >>> On Thu, Aug 28, 2008 at 07:03:30PM +0000, Bjoern A. Zeeb wrote: >>>> Hi, >>>> >>>> in case you are interested or have volunteered before to review Step 1.5 >>>> as described on http://wiki.freebsd.org/Image/Notes200808DevSummit >>>> there are few things to do: >>>> >>>> - review the diff (Julian posted an initial one). >>>> - make sure all (relevant) sysctl were caught. >>>> - make sure the INIT_VNET_* macro is there whereever it is needed. >>>> - do builds according to "HOWTO verify that the pure style changes are >>>> all right" on the above mentioned page and verify that it is all >>>> style changes. In case there are others we shoudl decide to either >>>> commit them either upfront or afterwards if possible. >>>> - the 'include headers' one way or the other (as we have discussed at >>>> the devsummit and that Julian has told me again) needs resolving. >>>> As this has bikeshed potential, I'd prefer that the 'singed up' >>>> reviewers decide that. >>>> - possibly more... >>>> >>>> The plan would be to have a final patch by Monday morning UTC to be >>>> comitted by a volunteer. >>> I've gone over the patch and fixed some white space issues. I've also >>> found some things I'm not sure what to do with. Comments: >>> >>> - GENERIC_NODEBUG should not be committed >>> - VNET_ITERLOOP_BEGIN/END is evil. It would be really nice to find a >>> way to do this that preserves {} pairs and isn't too magic. >> The requirement is to take soem code that doesn something once. >> and do it once for each vimage. There are of course many ways to do this.. >> >> Once we have the code in, I think we should expand this out >> and correctly indent the code, but for reasons of "minimum diff size" >> teh current way seems ok to me though it doens't look pretty.. >> >> I suggest that we eventually replace: >> >> VNET_ITERLOOP_BEGIN >> stuff >> VNET_ITERLOOP_END >> >> >> with (eventually) >> >> FOREACH_VNET(vnet) { >> stuff >> } >> >> but that would require that the entire contents of "stuff" >> would appear in the diff. > > Thinking about it more, at a minimum, I think we should do: > VNET_ITERLOOP_BEGIN > stuff > VNET_ITERLOOP_END when? (i.e. at which stage)? and doing FOREACH_VNET() {} will allow brace matching... > >>> - sys/kern/tty.c: >>> - There's some #if 0 code that presumably should stay in the vimage >>> branch for now and be fixed before the final commit. >>> - TIOCDRAIN is being removed. Is this a merge issue or something >>> else? >> >> not sure myself.. I've been only following the tty mashup from a distance. >> >>> - sys/net/if.h: >>> - shouldn't net/vnet.h be included in if_var.h instead? *_var.h is >>> supposed to be the internals and I think this qualifies. If so, >>> there will be a number of files that added if.h includes that >>> should add if_var.h includes instead. >> I actually looked around to find a good place to icnlude vnet.h from >> and decided on if.h because it seemt o be included almist everywhere >> that vnet.h needed to be included, but I'm not religious on it. >> >> teh original code actually includes vnet.h directly in about 50 source >> files. >> >> my attempt to include it from if.h cut that down to 3. >> >> I'm not sure I want to actually include the contents directly into >> if.h or any other place.. I think keeping a separate vnet.h and >> vinet.h seems ok to me. > > The #ifdef _KERNEL is a strong hint that it belongs in if_var.h if it's > going to be included in another header (IMO, the vnet/vinet.h files > aren't a good idea in the long term). > > -- Brooks From owner-freebsd-virtualization@FreeBSD.ORG Tue Sep 2 14:44:14 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DF301065688; Tue, 2 Sep 2008 14:44:14 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 27FDD8FC17; Tue, 2 Sep 2008 14:44:14 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m82EioJu060460; Tue, 2 Sep 2008 09:44:50 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m82Eiocv060459; Tue, 2 Sep 2008 09:44:50 -0500 (CDT) (envelope-from brooks) Date: Tue, 2 Sep 2008 09:44:50 -0500 From: Brooks Davis To: Julian Elischer Message-ID: <20080902144450.GC48622@lor.one-eyed-alien.net> References: <20080828185639.P66593@maildrop.int.zabbadoz.net> <20080902000516.GA48622@lor.one-eyed-alien.net> <48BCED8E.5030109@elischer.org> <20080902141245.GB48622@lor.one-eyed-alien.net> <48BD4EBE.4010005@elischer.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="m51xatjYGsM+13rf" Content-Disposition: inline In-Reply-To: <48BD4EBE.4010005@elischer.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 14:44:14 -0000 --m51xatjYGsM+13rf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 02, 2008 at 07:33:34AM -0700, Julian Elischer wrote: > Brooks Davis wrote: >> On Tue, Sep 02, 2008 at 12:38:54AM -0700, Julian Elischer wrote: >>> Brooks Davis wrote: >>>> On Thu, Aug 28, 2008 at 07:03:30PM +0000, Bjoern A. Zeeb wrote: >>>>> Hi, >>>>>=20 >>>>> in case you are interested or have volunteered before to review Step = 1.5 >>>>> as described on http://wiki.freebsd.org/Image/Notes200808DevSummit >>>>> there are few things to do: >>>>>=20 >>>>> - review the diff (Julian posted an initial one). >>>>> - make sure all (relevant) sysctl were caught. >>>>> - make sure the INIT_VNET_* macro is there whereever it is needed. >>>>> - do builds according to "HOWTO verify that the pure style changes are >>>>> all right" on the above mentioned page and verify that it is all >>>>> style changes. In case there are others we shoudl decide to either >>>>> commit them either upfront or afterwards if possible. >>>>> - the 'include headers' one way or the other (as we have discussed at >>>>> the devsummit and that Julian has told me again) needs resolving. >>>>> As this has bikeshed potential, I'd prefer that the 'singed up' >>>>> reviewers decide that. >>>>> - possibly more... >>>>>=20 >>>>> The plan would be to have a final patch by Monday morning UTC to be >>>>> comitted by a volunteer. >>>> I've gone over the patch and fixed some white space issues. I've also >>>> found some things I'm not sure what to do with. Comments: >>>>=20 >>>> - GENERIC_NODEBUG should not be committed >>>> - VNET_ITERLOOP_BEGIN/END is evil. It would be really nice to find a >>>> way to do this that preserves {} pairs and isn't too magic. >>> The requirement is to take soem code that doesn something once. >>> and do it once for each vimage. There are of course many ways to do thi= s.. >>>=20 >>> Once we have the code in, I think we should expand this out >>> and correctly indent the code, but for reasons of "minimum diff size" >>> teh current way seems ok to me though it doens't look pretty.. >>>=20 >>> I suggest that we eventually replace: >>>=20 >>> VNET_ITERLOOP_BEGIN >>> stuff >>> VNET_ITERLOOP_END >>>=20 >>>=20 >>> with (eventually) >>>=20 >>> FOREACH_VNET(vnet) { >>> stuff >>> } >>>=20 >>> but that would require that the entire contents of "stuff" >>> would appear in the diff. >>=20 >> Thinking about it more, at a minimum, I think we should do: >> VNET_ITERLOOP_BEGIN >> stuff >> VNET_ITERLOOP_END >=20 > when? (i.e. at which stage)? >=20 >=20 > and doing FOREACH_VNET() {} > will allow brace matching... Before the final. We probably don't need to hold this commit up for it, but we should make the commit seperate from the final one. If we could switch to FOREACH_VNET() {} soon, that would be good. -- Brooks >>>> - sys/kern/tty.c: >>>> - There's some #if 0 code that presumably should stay in the vimage >>>> branch for now and be fixed before the final commit. >>>> - TIOCDRAIN is being removed. Is this a merge issue or something >>>> else? >>>=20 >>> not sure myself.. I've been only following the tty mashup from a distan= ce. >>>=20 >>>> - sys/net/if.h: >>>> - shouldn't net/vnet.h be included in if_var.h instead? *_var.h is >>>> supposed to be the internals and I think this qualifies. If so, >>>> there will be a number of files that added if.h includes that >>>> should add if_var.h includes instead. >>> I actually looked around to find a good place to icnlude vnet.h from >>> and decided on if.h because it seemt o be included almist everywhere >>> that vnet.h needed to be included, but I'm not religious on it. >>>=20 >>> teh original code actually includes vnet.h directly in about 50 source= =20 >>> files. >>>=20 >>> my attempt to include it from if.h cut that down to 3. >>>=20 >>> I'm not sure I want to actually include the contents directly into >>> if.h or any other place.. I think keeping a separate vnet.h and >>> vinet.h seems ok to me. >>=20 >> The #ifdef _KERNEL is a strong hint that it belongs in if_var.h if it's >> going to be included in another header (IMO, the vnet/vinet.h files >> aren't a good idea in the long term). >>=20 >> -- Brooks >=20 --m51xatjYGsM+13rf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIvVFhXY6L6fI4GtQRAipYAJ4h+7Yc56BT076ZhNefSEk0+ChiOQCfahLj Tkvm0spGsLbjIifAAgTG/mE= =2H1E -----END PGP SIGNATURE----- --m51xatjYGsM+13rf-- From owner-freebsd-virtualization@FreeBSD.ORG Wed Sep 3 10:04:09 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7CC91065673; Wed, 3 Sep 2008 10:04:09 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 859C68FC08; Wed, 3 Sep 2008 10:04:09 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id A60DC46C29; Wed, 3 Sep 2008 06:04:04 -0400 (EDT) Date: Wed, 3 Sep 2008 11:04:05 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Brooks Davis In-Reply-To: <20080902141245.GB48622@lor.one-eyed-alien.net> Message-ID: References: <20080828185639.P66593@maildrop.int.zabbadoz.net> <20080902000516.GA48622@lor.one-eyed-alien.net> <48BCED8E.5030109@elischer.org> <20080902141245.GB48622@lor.one-eyed-alien.net> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "Bjoern A. Zeeb" , Julian Elischer , FreeBSD virtualization mailing list Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 10:04:09 -0000 On Tue, 2 Sep 2008, Brooks Davis wrote: >> I suggest that we eventually replace: >> >> VNET_ITERLOOP_BEGIN >> stuff >> VNET_ITERLOOP_END >> >> >> with (eventually) >> >> FOREACH_VNET(vnet) { >> stuff >> } >> >> but that would require that the entire contents of "stuff" >> would appear in the diff. > > Thinking about it more, at a minimum, I think we should do: > VNET_ITERLOOP_BEGIN > stuff > VNET_ITERLOOP_END FWIW, I think we should make the change to FOREACH_VNET(vnet() { } sooner rather than later -- especially if there's no semantic change going on currently, now would be the time to do the indentation change. >> I'm not sure I want to actually include the contents directly into if.h or >> any other place.. I think keeping a separate vnet.h and vinet.h seems ok to >> me. > > The #ifdef _KERNEL is a strong hint that it belongs in if_var.h if it's > going to be included in another header (IMO, the vnet/vinet.h files aren't a > good idea in the long term). My views on this one are a bit mixed -- if the goal is to get, in the medium term, to a case where we do explicit dereferencing rather than macros, we may find we do need more globally visible types than we had before, which may require us to have new globally included headers. That said, in.h might be as good a place as any for global inet stuff, and as long as we have piles of pointers rather than nested structs, the type issue shouldn't get too bad. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-virtualization@FreeBSD.ORG Wed Sep 3 14:26:57 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA5011065673 for ; Wed, 3 Sep 2008 14:26:57 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 70A3E8FC22 for ; Wed, 3 Sep 2008 14:26:57 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id BC6E946C5E; Wed, 3 Sep 2008 10:26:49 -0400 (EDT) Date: Wed, 3 Sep 2008 15:26:50 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Daniel Schwager In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-virtualization@freebsd.org Subject: Re: live & onlinedemo with freebsd 7.0 ? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 14:26:57 -0000 On Sun, 31 Aug 2008, Daniel Schwager wrote: > we operate the platform softwaredemo.com and want to publish many open > source OS like OpenSuSE11, debian, ubuntu, opensolaris, ... online and live > for the communities. Dear Daniel: You've reached the freebsd-virtualization mailing list which is, unfortunately, not the list you're ooking for. :-) Could you instead send e-mail to core@FreeBSD.org and see if they (we) can point you in a better direction? Something to be aware of is that currently FreeBSD 7.x doesn't support Xen out of the box, although 8.x does, and 7.x will at some point. Robert N M Watson Computer Laboratory University of Cambridge > > Is somebody is interesting to run a live system of freebsd on > softwaredemo.de ? > > If so, please create a HVM-Xen-DomU (HVM !) image of freebsd with > - available Resources > - 1CPU, 512MB RAM > > - setup > - one HDD with about 8 GB > - DHCP-configuration, one NIC > > - progs > - telnetd and sshd, xauth > - X11-base progs (xterm, xclock, ..) > - nice packages/programs you will show to other people > - a windowmanger (gnome, kde, ... ??) > > - accounts > - an account "jgast" with sudo-right's, password > "secret" > - root account, password "secret" > > This image should run on a i386-Fedora-Core8 Dom0 on Xen 3.2.1. > > Regards > Danny from softwaredemo.de > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" > From owner-freebsd-virtualization@FreeBSD.ORG Wed Sep 3 16:10:33 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0BE510699DE for ; Wed, 3 Sep 2008 16:10:33 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outJ.internet-mail-service.net (outj.internet-mail-service.net [216.240.47.233]) by mx1.freebsd.org (Postfix) with ESMTP id D22828FC14 for ; Wed, 3 Sep 2008 16:10:33 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 5BA5424A1; Wed, 3 Sep 2008 09:10:33 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id D2F6C2D60A7; Wed, 3 Sep 2008 09:10:29 -0700 (PDT) Message-ID: <48BEB6FC.1070605@elischer.org> Date: Wed, 03 Sep 2008 09:10:36 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Robert Watson References: <20080828185639.P66593@maildrop.int.zabbadoz.net> <20080902000516.GA48622@lor.one-eyed-alien.net> <48BCED8E.5030109@elischer.org> <20080902141245.GB48622@lor.one-eyed-alien.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 16:10:34 -0000 Robert Watson wrote: > > On Tue, 2 Sep 2008, Brooks Davis wrote: > >>> I suggest that we eventually replace: >>> >>> VNET_ITERLOOP_BEGIN >>> stuff >>> VNET_ITERLOOP_END >>> >>> >>> with (eventually) >>> >>> FOREACH_VNET(vnet) { >>> stuff >>> } >>> >>> but that would require that the entire contents of "stuff" >>> would appear in the diff. >> >> Thinking about it more, at a minimum, I think we should do: >> VNET_ITERLOOP_BEGIN >> stuff >> VNET_ITERLOOP_END > > FWIW, I think we should make the change to FOREACH_VNET(vnet() { } > sooner rather than later -- especially if there's no semantic change > going on currently, now would be the time to do the indentation change. > >>> I'm not sure I want to actually include the contents directly into >>> if.h or any other place.. I think keeping a separate vnet.h and >>> vinet.h seems ok to me. >> >> The #ifdef _KERNEL is a strong hint that it belongs in if_var.h if >> it's going to be included in another header (IMO, the vnet/vinet.h >> files aren't a good idea in the long term). > > My views on this one are a bit mixed -- if the goal is to get, in the > medium term, to a case where we do explicit dereferencing rather than > macros, we may find we do need more globally visible types than we had > before, which may require us to have new globally included headers. > That said, in.h might be as good a place as any for global inet stuff, > and as long as we have piles of pointers rather than nested structs, the > type issue shouldn't get too bad. thats' where vinet is, but what about vnet.. (non inet stuff) I have it off if.h right now.. > > Robert N M Watson > Computer Laboratory > University of Cambridge From owner-freebsd-virtualization@FreeBSD.ORG Wed Sep 3 16:31:33 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E625C10676EB for ; Wed, 3 Sep 2008 16:31:33 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outX.internet-mail-service.net (outx.internet-mail-service.net [216.240.47.247]) by mx1.freebsd.org (Postfix) with ESMTP id D00B88FC18 for ; Wed, 3 Sep 2008 16:31:33 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id F414F24AA for ; Wed, 3 Sep 2008 09:31:33 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 1280C2D6096 for ; Wed, 3 Sep 2008 09:31:32 -0700 (PDT) Message-ID: <48BEBBEB.9090805@elischer.org> Date: Wed, 03 Sep 2008 09:31:39 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: FreeBSD virtualization mailing list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: commit-2 patch refreshed X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 16:31:34 -0000 http://www.freebsd.org/~julian/commit2.diff has bee opdated to match today's current. Julian From owner-freebsd-virtualization@FreeBSD.ORG Wed Sep 3 18:42:27 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E76361065671 for ; Wed, 3 Sep 2008 18:42:27 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outJ.internet-mail-service.net (outj.internet-mail-service.net [216.240.47.233]) by mx1.freebsd.org (Postfix) with ESMTP id C99978FC17 for ; Wed, 3 Sep 2008 18:42:27 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id CFF2D249C; Wed, 3 Sep 2008 11:42:27 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id E6F792D602C; Wed, 3 Sep 2008 11:42:24 -0700 (PDT) Message-ID: <48BEDA97.3030508@elischer.org> Date: Wed, 03 Sep 2008 11:42:31 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Ermal_Lu=E7i?= References: <4863F1B0.9060603@elischer.org> <4863F509.2010408@elischer.org> <4863F5A3.9060703@elischer.org> <9a542da30806261543x667875eej8a5b6fa9da773b12@mail.gmail.com> <486443D1.40302@elischer.org> <9a542da30806270850i788fe961qcf5fe80e32519e81@mail.gmail.com> <48692C68.2030005@elischer.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD virtualization mailing list Subject: Re: need help from pf developer(s) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 18:42:28 -0000 Ermal Luçi wrote: > On Fri, Jun 27, 2008 at 3:35 AM, Julian Elischer wrote:>> The aim is that in each virtual machine we want a separate pf instance. >> >> Usually this means making all the globals in the relavent module >> be a structure element in a stucture, and accessing them via the >> V_xxx macros instead so that they can be accessed via the structure instead >> of as globals when vimage is enabled. >> >> I haven't time to give details right now but I'll get back to you with more >> details later. >> >> > Out of curiosity since this is a symbol game. > > Do static vars be handled specially to?! > > I am close to finish a patch for this but need to know how do you > handle static symbols. > ok so we are ready now... there is a document that describes what is needed: http://perforce.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/vimage/porting_to_vimage.txt static variables hav eto be added to the structure that will be used.. the current pf changes can be seen in: http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/projects/vimage/src/sys or in http://www.freebsd.org/~julian/vimage.diff can you send me the diff that you did so far and we can discuss it? From owner-freebsd-virtualization@FreeBSD.ORG Wed Sep 3 19:00:52 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2D44106567A for ; Wed, 3 Sep 2008 19:00:52 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outI.internet-mail-service.net (outi.internet-mail-service.net [216.240.47.232]) by mx1.freebsd.org (Postfix) with ESMTP id B67898FC28 for ; Wed, 3 Sep 2008 19:00:52 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id A038B249C; Wed, 3 Sep 2008 12:00:52 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id D3CEC2D6043; Wed, 3 Sep 2008 12:00:51 -0700 (PDT) Message-ID: <48BEDEEA.6070602@elischer.org> Date: Wed, 03 Sep 2008 12:00:58 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Robert Watson References: <20080828185639.P66593@maildrop.int.zabbadoz.net> <20080902000516.GA48622@lor.one-eyed-alien.net> <48BCED8E.5030109@elischer.org> <20080902141245.GB48622@lor.one-eyed-alien.net> <48BEB6FC.1070605@elischer.org> In-Reply-To: <48BEB6FC.1070605@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: Step 1.5 needs review X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 19:00:52 -0000 Julian Elischer wrote: > Robert Watson wrote: >> >> On Tue, 2 Sep 2008, Brooks Davis wrote: >> >>>> I suggest that we eventually replace: >>>> >>>> VNET_ITERLOOP_BEGIN >>>> stuff >>>> VNET_ITERLOOP_END >>>> >>>> >>>> with (eventually) >>>> >>>> FOREACH_VNET(vnet) { >>>> stuff >>>> } >>>> >>>> but that would require that the entire contents of "stuff" >>>> would appear in the diff. >>> >>> Thinking about it more, at a minimum, I think we should do: >>> VNET_ITERLOOP_BEGIN >>> stuff >>> VNET_ITERLOOP_END >> >> FWIW, I think we should make the change to FOREACH_VNET(vnet() { } >> sooner rather than later -- especially if there's no semantic change >> going on currently, now would be the time to do the indentation change. >> >>>> I'm not sure I want to actually include the contents directly into >>>> if.h or any other place.. I think keeping a separate vnet.h and >>>> vinet.h seems ok to me. >>> >>> The #ifdef _KERNEL is a strong hint that it belongs in if_var.h if >>> it's going to be included in another header (IMO, the vnet/vinet.h >>> files aren't a good idea in the long term). >> >> My views on this one are a bit mixed -- if the goal is to get, in the >> medium term, to a case where we do explicit dereferencing rather than >> macros, we may find we do need more globally visible types than we had >> before, which may require us to have new globally included headers. >> That said, in.h might be as good a place as any for global inet stuff, >> and as long as we have piles of pointers rather than nested structs, >> the type issue shouldn't get too bad. > > thats' where vinet is, but what about vnet.. (non inet stuff) > I have it off if.h right now.. moved to if_var.h > >> >> Robert N M Watson >> Computer Laboratory >> University of Cambridge > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscribe@freebsd.org" From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 4 05:12:57 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A34F71065670 for ; Thu, 4 Sep 2008 05:12:57 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id 2234E8FC18 for ; Thu, 4 Sep 2008 05:12:56 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (DSTO/DSTO) with ESMTP id m84512xF023175 for ; Thu, 4 Sep 2008 14:31:02 +0930 (CST) Received: from fmbex510.dsto.defence.gov.au (fmbex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.9) with ESMTP id for ; Thu, 4 Sep 2008 14:32:31 +0930 Received: from stlex510.dsto.defence.gov.au ([203.6.60.184]) by fmbex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Thu, 4 Sep 2008 15:02:32 +1000 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by stlex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Thu, 4 Sep 2008 13:02:30 +0800 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.14.2/8.14.2) with ESMTP id m8451mGB048217 for ; Thu, 4 Sep 2008 13:01:48 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.14.2/8.14.2/Submit) id m8451mmM048216 for freebsd-virtualization@freebsd.org; Thu, 4 Sep 2008 13:01:48 +0800 (WST) (envelope-from wilkinsa) Date: Thu, 4 Sep 2008 13:01:48 +0800 From: "Wilkinson, Alex" To: freebsd-virtualization@freebsd.org Message-ID: <20080904050147.GJ43166@stlux503.dsto.defence.gov.au> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Organisation: Defence Science Technology Organisation User-Agent: Mutt/1.5.18 (2008-05-17) X-OriginalArrivalTime: 04 Sep 2008 05:02:30.0707 (UTC) FILETIME=[6F291830:01C90E4B] Content-Transfer-Encoding: 7bit Subject: Re: live & onlinedemo with freebsd 7.0 ? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 05:12:57 -0000 0n Wed, Sep 03, 2008 at 03:26:50PM +0100, Robert Watson wrote: >Something to be aware of is that currently FreeBSD 7.x doesn't >support Xen out of the box, although 8.x does, and 7.x will at some point. Only as a DomU right ? Not Dom0 ? -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 4 17:34:31 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EC89106568E for ; Thu, 4 Sep 2008 17:34:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outQ.internet-mail-service.net (outq.internet-mail-service.net [216.240.47.240]) by mx1.freebsd.org (Postfix) with ESMTP id 287068FC2A for ; Thu, 4 Sep 2008 17:34:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id F401A248C for ; Thu, 4 Sep 2008 10:34:30 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 8E7472D608E for ; Thu, 4 Sep 2008 10:34:30 -0700 (PDT) Message-ID: <48C01C2D.7010903@elischer.org> Date: Thu, 04 Sep 2008 10:34:37 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: FreeBSD virtualization mailing list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: vimage commit 1.5 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 17:34:31 -0000 The vimage-commit2 branch is pretty much ready for commit as far as I can see. The aim of this commit is to add more stuff from the vimage branch that evaluates to 0 bytes of binary change when VIMAGE is not enabled. I will have to concentrate on work for a while so I will not be 'monitoring', but I will be reachable. Bjoern, what is the commit plan? julian From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 4 19:44:05 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9535A10656C7 for ; Thu, 4 Sep 2008 19:44:05 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outC.internet-mail-service.net (outc.internet-mail-service.net [216.240.47.226]) by mx1.freebsd.org (Postfix) with ESMTP id 7F6F68FC1D for ; Thu, 4 Sep 2008 19:44:05 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 39EFD24A2 for ; Thu, 4 Sep 2008 12:44:05 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id DBC162D606F for ; Thu, 4 Sep 2008 12:44:04 -0700 (PDT) Message-ID: <48C03A8B.4050607@elischer.org> Date: Thu, 04 Sep 2008 12:44:11 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: FreeBSD virtualization mailing list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: next vimage commit.. a comment X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 19:44:05 -0000 Some have suggested that we change the VNET_ITERLOOP_BEGIN() / VNET_ITERLOOP_END() code, and thinking about this I suggest that we go straight for the final solution of: change: code code code to: FOREACH_VNET(VINET, vnet_inet) { code code code } straight away. and get it over and done with... anyone have thoughts? From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 4 19:49:57 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FC49106567C for ; Thu, 4 Sep 2008 19:49:57 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id F0B338FC14 for ; Thu, 4 Sep 2008 19:49:56 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m84JoVU9014955; Thu, 4 Sep 2008 14:50:31 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m84JoVgV014954; Thu, 4 Sep 2008 14:50:31 -0500 (CDT) (envelope-from brooks) Date: Thu, 4 Sep 2008 14:50:31 -0500 From: Brooks Davis To: Julian Elischer Message-ID: <20080904195031.GB4117@lor.one-eyed-alien.net> References: <48C03A8B.4050607@elischer.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline In-Reply-To: <48C03A8B.4050607@elischer.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Thu, 04 Sep 2008 14:50:32 -0500 (CDT) Cc: FreeBSD virtualization mailing list Subject: Re: next vimage commit.. a comment X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 19:49:57 -0000 --lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 04, 2008 at 12:44:11PM -0700, Julian Elischer wrote: > Some have suggested that we change the VNET_ITERLOOP_BEGIN() /=20 > VNET_ITERLOOP_END() code, > and thinking about this I suggest that we go straight for the > final solution of: >=20 > change: > code > code > code >=20 > to: >=20 > FOREACH_VNET(VINET, vnet_inet) { > code > code > code > } >=20 > straight away. and get it over and done with... >=20 > anyone have thoughts? I agree. We should avoid committing new code we plan to rip up later. -- Brooks --lEGEL1/lMxI0MVQ2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIwDwGXY6L6fI4GtQRArZAAKCdDDp3Qptbowsd2/elMtLKNmuIcgCfTBVz CwmLzEs3R4pdYBJ9SVexEnU= =soiC -----END PGP SIGNATURE----- --lEGEL1/lMxI0MVQ2-- From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 4 19:53:47 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D90031065675 for ; Thu, 4 Sep 2008 19:53:47 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outA.internet-mail-service.net (outa.internet-mail-service.net [216.240.47.224]) by mx1.freebsd.org (Postfix) with ESMTP id 496628FC15 for ; Thu, 4 Sep 2008 19:53:47 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 1A983248C; Thu, 4 Sep 2008 12:53:47 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id C20472D6010; Thu, 4 Sep 2008 12:53:46 -0700 (PDT) Message-ID: <48C03CD1.3010908@elischer.org> Date: Thu, 04 Sep 2008 12:53:53 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Brooks Davis References: <48C03A8B.4050607@elischer.org> <20080904195031.GB4117@lor.one-eyed-alien.net> In-Reply-To: <20080904195031.GB4117@lor.one-eyed-alien.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD virtualization mailing list Subject: Re: next vimage commit.. a comment X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 19:53:47 -0000 Brooks Davis wrote: > On Thu, Sep 04, 2008 at 12:44:11PM -0700, Julian Elischer wrote: >> Some have suggested that we change the VNET_ITERLOOP_BEGIN() / >> VNET_ITERLOOP_END() code, >> and thinking about this I suggest that we go straight for the >> final solution of: >> >> change: >> code >> code >> code >> >> to: >> >> FOREACH_VNET(VINET, vnet_inet) { >> code >> code >> code >> } >> >> straight away. and get it over and done with... >> >> anyone have thoughts? > > I agree. We should avoid committing new code we plan to rip up later. > > -- Brooks Ok well it's going to massively expand the size of this commit diff but if we are convinced that we will "understand" that it does nothing (yet) then we can still review it for "no binary changes" relatively easily once this happens.. From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 4 20:11:41 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C67B71065675 for ; Thu, 4 Sep 2008 20:11:41 +0000 (UTC) (envelope-from zec@fer.hr) Received: from xaqua.tel.fer.hr (xaqua.tel.fer.hr [161.53.19.25]) by mx1.freebsd.org (Postfix) with ESMTP id 835B48FC23 for ; Thu, 4 Sep 2008 20:11:41 +0000 (UTC) (envelope-from zec@fer.hr) Received: by xaqua.tel.fer.hr (Postfix, from userid 20006) id AAF419B651; Thu, 4 Sep 2008 21:54:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on xaqua.tel.fer.hr X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7 Received: from [192.168.200.110] (zec2.tel.fer.hr [161.53.19.79]) by xaqua.tel.fer.hr (Postfix) with ESMTP id 832EC9B645 for ; Thu, 4 Sep 2008 21:54:49 +0200 (CEST) From: Marko Zec To: freebsd-virtualization@freebsd.org Date: Thu, 4 Sep 2008 21:54:45 +0200 User-Agent: KMail/1.9.7 References: <48C03A8B.4050607@elischer.org> <20080904195031.GB4117@lor.one-eyed-alien.net> In-Reply-To: <20080904195031.GB4117@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809042154.45130.zec@fer.hr> X-Mailman-Approved-At: Thu, 04 Sep 2008 20:22:09 +0000 Subject: Re: next vimage commit.. a comment X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 20:11:41 -0000 On Thursday 04 September 2008 21:50:31 Brooks Davis wrote: > On Thu, Sep 04, 2008 at 12:44:11PM -0700, Julian Elischer wrote: > > Some have suggested that we change the VNET_ITERLOOP_BEGIN() / > > VNET_ITERLOOP_END() code, > > and thinking about this I suggest that we go straight for the > > final solution of: > > > > change: > > code > > code > > code > > > > to: > > > > FOREACH_VNET(VINET, vnet_inet) { > > code > > code > > code > > } > > > > straight away. and get it over and done with... > > > > anyone have thoughts? > > I agree. We should avoid committing new code we plan to rip up > later. OK I'll do this Marko From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 4 23:58:26 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2188C106564A for ; Thu, 4 Sep 2008 23:58:26 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outY.internet-mail-service.net (outy.internet-mail-service.net [216.240.47.248]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5B18FC16 for ; Thu, 4 Sep 2008 23:58:25 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 9EA4A23DC for ; Thu, 4 Sep 2008 16:58:25 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 4BF792D60C1 for ; Thu, 4 Sep 2008 16:58:25 -0700 (PDT) Message-ID: <48C07628.8060602@elischer.org> Date: Thu, 04 Sep 2008 16:58:32 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: FreeBSD virtualization mailing list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: vimage-commit2 kernel running smoothly X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 23:58:26 -0000 Just to prove that the theory that we are not making actual changes is born out in practice, my test machine is running that kernel and it seems indistinguishable from the normal one. From owner-freebsd-virtualization@FreeBSD.ORG Fri Sep 5 16:00:49 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5949106567A for ; Fri, 5 Sep 2008 16:00:49 +0000 (UTC) (envelope-from jamie@gritton.org) Received: from gritton.org (gritton.org [161.58.222.4]) by mx1.freebsd.org (Postfix) with ESMTP id 545E78FC3E for ; Fri, 5 Sep 2008 16:00:49 +0000 (UTC) (envelope-from jamie@gritton.org) Received: from guppy.corp.verio.net (fw.oremut02.us.wh.verio.net [198.65.168.24]) (authenticated bits=0) by gritton.org (8.13.6.20060614/8.13.6) with ESMTP id m85G0liP082666 for ; Fri, 5 Sep 2008 10:00:48 -0600 (MDT) Message-ID: <48C157AA.7080702@gritton.org> Date: Fri, 05 Sep 2008 10:00:42 -0600 From: James Gritton User-Agent: Thunderbird 2.0.0.9 (X11/20080228) MIME-Version: 1.0 To: FreeBSD virtualization mailing list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on gritton.org X-Virus-Status: Clean Subject: The kinds of things jails could virtualize X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2008 16:00:49 -0000 The ability to turn on and off the virtualization of different parts of jails goes along with a hierarchical naming of jail parameters (not to be confused with jails themselves being hierarchical). In my current jail_set perforce branch, this is done for the hostname and related properties. There are a group of parameters under the "host" heading that customize a jail's identity to user space: host.hostname host.domainname host.hostid host.hostuuid A jail may be set to not use any of these by setting the boolean parameter "host" to false; in that case, the hostname and such are taken from the parent jail (or from the system in the non-hierarchical case). Setting it to true, or setting any one of the individual parameters, causes all the related parameters to be virtualized with initial values taken from the parent. The jail IP address and chrooted path can also be turned off, though neither is part of a formal group like the "host" stuff. IP probably should be, as turning off IP address virtualization is better left separate from specifying which addresses to restrict to. Thus perhaps an "ip" group with "ip.ip4" and "ip.ip6" parameters. The vnet stuff from vimage can also be turned off with the boolean "vnet" parameter, though there's not much other interface with the jail system other than whether it's on or off (there are a couple of read-only stat values). This would be typical of how new modules or subsystems are handled. SYSV IPC should follow a similar route. Something else worth controlling that's currently always on for jails is process hiding. It might just be a single "proc" boolean, though there may be other "proc.*" parameters that could be added later, such as future plans I have for a virtual init process. So what categories should we have for jail virtualization control? The ones I can think of are: cpu: for cpuset and other per-jail scheduling, virtual load averages, stuff of that sort. host: the hostname and related stuff above. There's also currently a sysctl "security.jail.set_hostname_allowed" that would fit better here, perhaps a boolean "host.allowed". ip: whether IP addresses are restricted or otherwise virtualized. I have no idea what "otherwise virtualized" means, but if someone comes up with anything (besides vnet which is its own beast) it may belong here. proc: whether jails can see or act on other jails' processes. There's some overlap with users as well, as that's the non-jail way of deciding process permissions. sysvipc: each jail should optionally have its own SYSV namespace. There's also the same permission issue of "host". Similar to this are a few non-SYSV IPC things like POSIX semaphores - should they have their own category, or perhaps should this be a wider "ipc" category? vnet: whether a jail is also a new vimage node, just for the VIMAGE option. - Jamie From owner-freebsd-virtualization@FreeBSD.ORG Fri Sep 5 19:15:24 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AF98106566C for ; Fri, 5 Sep 2008 19:15:24 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outM.internet-mail-service.net (outm.internet-mail-service.net [216.240.47.236]) by mx1.freebsd.org (Postfix) with ESMTP id E78E98FC13 for ; Fri, 5 Sep 2008 19:15:23 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 97A112383; Fri, 5 Sep 2008 12:15:23 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 276082D6013; Fri, 5 Sep 2008 12:15:22 -0700 (PDT) Message-ID: <48C18551.6090703@elischer.org> Date: Fri, 05 Sep 2008 12:15:29 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: James Gritton References: <48C157AA.7080702@gritton.org> In-Reply-To: <48C157AA.7080702@gritton.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD virtualization mailing list Subject: Re: The kinds of things jails could virtualize X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2008 19:15:24 -0000 just "ack" ing this email. Don't have spare neurons to actually read/understand it right now.. James Gritton wrote: [...]