From 89c3d9e094934405266688d2061fe1105863ca17 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Tue, 4 Jul 2017 16:20:40 +0200 Subject: [PATCH] Add support for KVM on System Z KVM on System Z can be discovered in the same way as z/VM, by looking at the "VM* Control Program" lines in /proc/sysinfo. Signed-off-by: Thomas Huth --- virt-what.in | 4 +++- virt-what.pod | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/virt-what.in b/virt-what.in index 64ab770..5cf2136 100644 --- a/virt-what.in +++ b/virt-what.in @@ -194,7 +194,9 @@ fi if have_cpuinfo && grep -q '^vendor_id.*IBM/S390' "${root}/proc/cpuinfo"; then echo ibm_systemz if [ -f "${root}/proc/sysinfo" ]; then - if grep -q 'VM.*Control Program.*z/VM' "${root}/proc/sysinfo"; then + if grep -q 'VM.*Control Program.*KVM/Linux' "${root}/proc/sysinfo"; then + echo ibm_systemz-kvm + elif grep -q 'VM.*Control Program.*z/VM' "${root}/proc/sysinfo"; then echo ibm_systemz-zvm elif grep -q '^LPAR' "${root}/proc/sysinfo"; then echo ibm_systemz-lpar diff --git a/virt-what.pod b/virt-what.pod index 272be70..2c087bf 100644 --- a/virt-what.pod +++ b/virt-what.pod @@ -78,7 +78,7 @@ Status: not confirmed This is Linux running directly on an LPAR on an IBM SystemZ hardware partitioning system. -Status: not confirmed +Status: confirmed by Thomas Huth =item B @@ -87,6 +87,12 @@ hardware partitioning system. Status: confirmed by RWMJ using a Fedora guest running in z/VM +=item B + +This is a KVM guest running on an IBM System Z hardware system. + +Status: contributed by Thomas Huth + =item B This is printed for backwards compatibility with older virt-what which -- 1.8.3.1