2008/12/8 Ivan Voras <[EMAIL PROTECTED]>: > 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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"