Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Dec 2008 20:22:16 +0100
From:      "Ivan Voras" <ivoras@gmail.com>
To:        "Jung-uk Kim" <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
Message-ID:  <9bbcef730812081122r2b1fb938s6201aeee7756b884@mail.gmail.com>
In-Reply-To: <9bbcef730812081101o52905c4ak56acfb784bd58d16@mail.gmail.com>
References:  <200812081839.mB8IdxbT067657@svn.freebsd.org> <9bbcef730812081101o52905c4ak56acfb784bd58d16@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2008/12/8 Ivan Voras <ivoras@gmail.com>:
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9bbcef730812081122r2b1fb938s6201aeee7756b884>