From: Michael Prokop Date: Wed, 24 Jan 2007 17:23:18 +0000 (+0100) Subject: detection of CPUs with support for virtualization and kernel with Xen-support X-Git-Tag: 0.6.12 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=f84aa93466c41ff4553725a27cfef5b8e21ea28a;ds=sidebyside detection of CPUs with support for virtualization and kernel with Xen-support --- diff --git a/autoconfig.functions b/autoconfig.functions index 0b562b0..004754a 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper , (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Nov 27 21:02:23 CET 2006 [mika] +# Latest change: Mit Jän 24 10:33:23 CET 2007 [mika] ################################################################################ # {{{ path, variables, signals, umask, zsh @@ -358,6 +358,18 @@ config_time(){ config_kernel(){ vmware-detect &>/dev/null && VMWARE="inside ${WHITE}VMWare${NORMAL}" einfo "Running Linux Kernel $KERNEL $VMWARE" ; eend 0 + if [ -r /proc/cpuinfo ] ; then + if egrep -q '^flags.*(vmx|svm)' /proc/cpuinfo ; then + eindent + einfo 'CPU(s) featuring virtualization technology detected' ; eend 0 + eoutdent + fi + fi + if [ -d /proc/xen ] ; then + eindent + einfo 'Running kernel featuring support for Xen detected' ; eend 0 + eoutdent + fi } # }}} diff --git a/debian/changelog b/debian/changelog index d384e52..f49e582 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-autoconfig (0.6.12) unstable; urgency=low + + * Support detection of CPUs with support for virtualization (vmx/svm). + Check for Xen-support as well. + + -- Michael Prokop Wed, 24 Jan 2007 10:34:35 +0100 + grml-autoconfig (0.6.11) unstable; urgency=low * config_x_startup(): make sure handling of /etc/inittab for