root=tests/ppc64-kvm
output="$(./virt-what --test-root=$root 2>&1)"
-expected="ibm_ppc64_kvm"
+expected="ibm_power-kvm"
if [ "$output" != "$expected" ]; then
echo "$0: test failed because output did not match expected"
root=tests/ppc64-lpar-dedicated
output="$(./virt-what --test-root=$root 2>&1)"
-expected="ibm_ppc64_lpar_dedicated"
+expected="ibm_power-lpar_dedicated"
if [ "$output" != "$expected" ]; then
echo "$0: test failed because output did not match expected"
root=tests/ppc64-lpar-shared
output="$(./virt-what --test-root=$root 2>&1)"
-expected="ibm_ppc64_lpar_shared"
+expected="ibm_power-lpar_shared"
if [ "$output" != "$expected" ]; then
echo "$0: test failed because output did not match expected"
if [ "$arch" = "ppc64" ]; then
if have_cpuinfo && grep -q 'platform.**pSeries' "${root}/proc/cpuinfo"; then
if grep -q 'model.*emulated by qemu' "${root}/proc/cpuinfo"; then
- echo ibm_ppc64_kvm
+ echo ibm_power-kvm
else
# Assume LPAR, now detect shared or dedicated
if grep -q 'shared_processor_mode=1' "${root}/proc/ppc64/lparcfg"; then
- echo ibm_ppc64_lpar_shared
+ echo ibm_power-lpar_shared
else
- echo ibm_ppc64_lpar_dedicated
+ echo ibm_power-lpar_dedicated
fi
# detect powerkvm?
fi
Status: confirmed by RWMJ
+=item B<ibm_power-kvm>
+
+This is an IBM POWER KVM guest.
+
+Status: contributed by Adrian Likins.
+
+=item B<ibm_power-lpar_shared>
+
+=item B<ibm_power-lpar_dedicated>
+
+This is an IBM POWER LPAR (hardware partition) in either shared
+or dedicated mode.
+
+Status: contributed by Adrian Likins.
+
=item B<ibm_systemz>
This is an IBM SystemZ (or other S/390) hardware partitioning system.