svn commit: r185772 - head/sys/kern

Ivan Voras ivoras at gmail.com
Mon Dec 8 11:22:19 PST 2008


2008/12/8 Ivan Voras <ivoras at 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


More information about the svn-src-head mailing list