From owner-svn-src-all@FreeBSD.ORG Mon Dec 8 19:44:40 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 7FCAD1065673; Mon, 8 Dec 2008 19:44:38 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: "Ivan Voras" Date: Mon, 8 Dec 2008 14:44:19 -0500 User-Agent: KMail/1.6.2 References: <200812081839.mB8IdxbT067657@svn.freebsd.org> <9bbcef730812081101o52905c4ak56acfb784bd58d16@mail.gmail.com> <9bbcef730812081122r2b1fb938s6201aeee7756b884@mail.gmail.com> In-Reply-To: <9bbcef730812081122r2b1fb938s6201aeee7756b884@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200812081444.25575.jkim@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r185772 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 19:44:40 -0000 On Monday 08 December 2008 02:22 pm, Ivan Voras wrote: > 2008/12/8 Ivan Voras : > > Hi, > > > > How about introducing a read-only sysctl, something like > > kern.in_vm that would be > > > > 0 : none detected / as far as we can tell we're on bare metal > > 1 : if detect_virtual() returns 1 > > 2 : Xen dom-U > > 3, etc... for future use, like VMWare VMI, etc. > > > > ? > > > > (of course, for symmetry, if we ever support any hosting for full > > virtualization, another sysctl might be introduced as a bitmap :) > > ). > > Patch suggested: > http://people.freebsd.org/~ivoras/diffs/subr_param.c.diff.txt Personally I have no preference but I think you should move this discussion to freebsd-emulation@ and freebsd-virtualization@. Jung-uk Kim