summaryrefslogtreecommitdiffstats
path: root/virt-what.in
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-15 19:54:15 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-15 19:54:15 +0000
commitee4ad55ae2b9294d03e45a364c70c42f945d2fc7 (patch)
treecb44226e59027c3006ed3e2342480f651541fa09 /virt-what.in
parent1fd1ba444af3d3618dabe6315ca2fa59820cf6ff (diff)
downloadvirt-what-ee4ad55ae2b9294d03e45a364c70c42f945d2fc7.tar.gz
virt-what-ee4ad55ae2b9294d03e45a364c70c42f945d2fc7.tar.xz
virt-what-ee4ad55ae2b9294d03e45a364c70c42f945d2fc7.zip
Detect Microsoft Hyper-V.
Based on a description on MSDN: http://blogs.msdn.com/b/sqlosteam/archive/2010/10/30/is-this-real-the-metaphysics-of-hardware-virtualization.aspx Not tested. Hyper-V also supports more detail through the CPUID instruction, which we don't yet display.
Diffstat (limited to 'virt-what.in')
-rw-r--r--virt-what.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/virt-what.in b/virt-what.in
index 96c18b4..46bf12d 100644
--- a/virt-what.in
+++ b/virt-what.in
@@ -88,6 +88,12 @@ elif echo "$dmi" | grep -q 'Manufacturer: VMware'; then
echo vmware
fi
+# Check for Hyper-V.
+# http://blogs.msdn.com/b/sqlosteam/archive/2010/10/30/is-this-real-the-metaphysics-of-hardware-virtualization.aspx
+if [ "$cpuid" = "Microsoft Hv" ]; then
+ echo hyperv
+fi
+
# Check for VirtualPC.
if echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation'; then