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 <thuth@redhat.com>
if have_cpuinfo && grep -q '^vendor_id.*IBM/S390' "${root}/proc/cpuinfo"; then
echo ibm_systemz
if [ -f "${root}/proc/sysinfo" ]; then
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
echo ibm_systemz-zvm
elif grep -q '^LPAR' "${root}/proc/sysinfo"; then
echo ibm_systemz-lpar
This is Linux running directly on an LPAR on an IBM SystemZ
hardware partitioning system.
This is Linux running directly on an LPAR on an IBM SystemZ
hardware partitioning system.
+Status: confirmed by Thomas Huth
Status: confirmed by RWMJ using a Fedora guest running in z/VM
Status: confirmed by RWMJ using a Fedora guest running in z/VM
+=item B<ibm_systemz-kvm>
+
+This is a KVM guest running on an IBM System Z hardware system.
+
+Status: contributed by Thomas Huth
+
=item B<linux_vserver>
This is printed for backwards compatibility with older virt-what which
=item B<linux_vserver>
This is printed for backwards compatibility with older virt-what which