search for: detect_virt_env_using_cpuid

Displaying 2 results from an estimated 2 matches for "detect_virt_env_using_cpuid".

2010 Jun 29
1
[PATCH] virt-what.in: Added VMware virt detection using cpuid in wrapper script
...by Laurent L?onard. + if grep -q 'UML' /proc/cpuinfo; then + echo uml + exit 0 + fi + + exit 1 +} # To tell if it is Xen and KVM HVM (fully virtualized) we can use this # helper C program. -cpuid=`virt-what-cpuid-helper` - -# Check for Xen. +detect_virt_env_using_cpuid () { + cpuid=`virt-what-cpuid-helper` + + # Check for Xen. + + if [ "$cpuid" = "XenVMMXenVMM" ]; then + echo xen; echo xen-hvm + exit 0 + elif [ -f /proc/xen/privcmd ]; then + echo xen; echo xen-dom0 +...
2010 Jun 29
1
[PATCH] virt-what.in: Added VMware virt detection using cpuid in wrapper script
...by Laurent L?onard. + if grep -q 'UML' /proc/cpuinfo; then + echo uml + exit 0 + fi + + exit 1 +} # To tell if it is Xen and KVM HVM (fully virtualized) we can use this # helper C program. -cpuid=`virt-what-cpuid-helper` - -# Check for Xen. +detect_virt_env_using_cpuid () { + cpuid=`virt-what-cpuid-helper` + + # Check for Xen. + + if [ "$cpuid" = "XenVMMXenVMM" ]; then + echo xen; echo xen-hvm + exit 0 + elif [ -f /proc/xen/privcmd ]; then + echo xen; echo xen-dom0 +...