#!/bin/bash -
# @configure_input@
-# Copyright (C) 2008-2009 Red Hat Inc.
+# Copyright (C) 2008-2011 Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
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
echo uml
fi
+# Check for IBM PowerVM Lx86 Linux/x86 emulator.
+if grep -q '^vendor_id.*PowerVM Lx86' /proc/cpuinfo; then
+ echo powervm_lx86
+fi
+
+# Check for Hitachi Virtualization Manager (HVM) Virtage logical partitioning.
+if echo "$dmi" | grep -q 'Manufacturer.*HITACHI' &&
+ echo "$dmi" | grep -q 'Product.*HVM LPAR'; then
+ echo virtage
+fi
+
# Check for Xen.
if [ "$cpuid" = "XenVMMXenVMM" ]; then