From owner-freebsd-current@FreeBSD.ORG Thu Feb 28 18:31:05 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B7B11065670 for ; Thu, 28 Feb 2008 18:31:05 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outV.internet-mail-service.net (outV.internet-mail-service.net [216.240.47.245]) by mx1.freebsd.org (Postfix) with ESMTP id 36E338FC1F for ; Thu, 28 Feb 2008 18:31:05 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Thu, 28 Feb 2008 10:31:04 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id BC5512D6035; Thu, 28 Feb 2008 10:31:03 -0800 (PST) Message-ID: <47C6FDF8.2040600@elischer.org> Date: Thu, 28 Feb 2008 10:31:20 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <47C39948.3080907@elischer.org> <47C494B5.2040306@elischer.org> <47C49FAA.1020605@FreeBSD.org> <200802280343.57576.zec@icir.org> <86tzjt1ar3.fsf@ds4.des.no> In-Reply-To: <86tzjt1ar3.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Marko Zec , Marko Zec , FreeBSD Current Subject: Re: warning of pending commit attempt. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 18:31:05 -0000 Dag-Erling Smørgrav wrote: > Marko Zec writes: >> [about vimage] > > One thing you haven't mentioned is sysctl. I've always been of the > opinion that if we virtualize one part of the system, we should also > virtualize the sysctl tree. This does not mean that each vimage should > have its own copy of the entire tree, but rather that it should be > possible to mark some sysctl nodes as virtualized. For instance, it > would be useful on amd64 to be able to create an i386 vimage, where > hw.machine and hw.machine_arch would be "i386". > > For PROC nodes, of course, this is easily done (as you already do) with > INIT_VPROCG(TD_TO_VPROGC(curthread)), but the basic node types (int, > long, string etc.) are a little trickier, and don't seem to be handled > in your patch. > > (I probably just lost every shred of credibility by revealing that I > have actually read parts of the patch, but hey, them's the breaks...) Yes the sysctl tree has had some virtualisation support added to it (!) I was impressed, even if there is more to do. It's only used at this time to show the correct sysctls relevant to your network stack due to the scope if the vimage project but could be used for other virtualised things now the framework is there. Of course that is outside the vimage scope but others could do that.. > > DES