From owner-svn-src-all@FreeBSD.ORG Mon Dec 8 19:22:19 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17F7E1065677 for ; Mon, 8 Dec 2008 19:22:19 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 96C958FC21 for ; Mon, 8 Dec 2008 19:22:18 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so2864873fkk.11 for ; Mon, 08 Dec 2008 11:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pdiWbDCkQQohSgKxUyPeT7BlYpDR8+ot3fZrUHgPZaQ=; b=NFX+pKfnIHr/cCugndKu8lE2g0zXIMyQ51arit7G9lZRjo3xqFwNN+jkJ+U8zaaOPI aZvbmV/Xwia7x3aSUZYGKyaFNQO0AlscrCYzuaEgh9qGBz5izNFQ1Hm5YNIwn6VFnrue kvc/eYWIPsrMmokbZnupEL11suf2DaPHoQQzM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=m18mTaNJoev7h7BOidOy2KhxcVeDrBToTNyOp3/eI5NNthCeipg9yn1htDAy6KmfRA TfESFPVbZ2Je/IZaUpGeEJCciccjXQaG4WZSHK9YReImdTj3dPkeprEPbSlNgqby7uue ZeqsIutuKQUq92aOJb20KzW/yBDxg3HlzQZqw= Received: by 10.180.213.14 with SMTP id l14mr1336564bkg.107.1228764136818; Mon, 08 Dec 2008 11:22:16 -0800 (PST) Received: by 10.181.229.16 with HTTP; Mon, 8 Dec 2008 11:22:16 -0800 (PST) Message-ID: <9bbcef730812081122r2b1fb938s6201aeee7756b884@mail.gmail.com> Date: Mon, 8 Dec 2008 20:22:16 +0100 From: "Ivan Voras" To: "Jung-uk Kim" In-Reply-To: <9bbcef730812081101o52905c4ak56acfb784bd58d16@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812081839.mB8IdxbT067657@svn.freebsd.org> <9bbcef730812081101o52905c4ak56acfb784bd58d16@mail.gmail.com> 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:22:19 -0000 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