summaryrefslogtreecommitdiffstats
path: root/virt-what.in
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-01-20 08:49:31 -0500
committerRichard W.M. Jones <rjones@redhat.com>2011-01-20 13:51:04 +0000
commit37f7b6e5f79d61ec4f8967f3de2ec63420aec894 (patch)
tree21287faaf249564cc9c4bd49f3e5d4a37aca1b7a /virt-what.in
parentd49f54a0cafc239babb2a2ca135c4084a65bdbee (diff)
downloadvirt-what-37f7b6e5f79d61ec4f8967f3de2ec63420aec894.tar.gz
virt-what-37f7b6e5f79d61ec4f8967f3de2ec63420aec894.tar.xz
virt-what-37f7b6e5f79d61ec4f8967f3de2ec63420aec894.zip
Add test for z/VM on IBM SystemZ mainframes (thanks Dan HorĂ¡k).
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 22cbca1..0979c50 100644
--- a/virt-what.in
+++ b/virt-what.in
@@ -143,6 +143,12 @@ if echo "$dmi" | grep -q 'Manufacturer.*HITACHI' &&
echo virtage
fi
+# Check for IBM SystemZ (z/VM, not tested whether this applies to Linux
+# installed directly into an LPAR, we may need a separate test).
+if grep -q '^vendor_id.*IBM/S390' $root/proc/cpuinfo; then
+ echo zvm
+fi
+
# Check for Xen.
if [ "$cpuid" = "XenVMMXenVMM" ]; then