]> git.ipfire.org Git - thirdparty/qemu.git/commit
spapr: make pseries-2.11 the default machine type
authorGreg Kurz <groug@kaod.org>
Wed, 20 Jun 2018 12:54:15 +0000 (14:54 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:44:16 +0000 (20:44 -0500)
commit327d4645a02a9625b3c21da26970f5ae2d9aa75f
tree172cc1905f1f478eee842c3472ff4980e4d030d6
parentb940928fa06d766ff354e7d7d204587b5b8d78fe
spapr: make pseries-2.11 the default machine type

The spapr capability framework was introduced in QEMU 2.12. It allows
to have an explicit control on how host features are exposed to the
guest. This is especially needed to handle migration between hetero-
geneous hosts (eg, POWER8 to POWER9). It is also used to expose fixes/
workarounds against speculative execution vulnerabilities to guests.
The framework was hence backported to QEMU 2.11.1, especially these
commits:

0fac4aa93074 spapr: Add pseries-2.12 machine type
9070f408f491 spapr: Treat Hardware Transactional Memory (HTM) as an
 optional capability

0fac4aa93074 has the confusing effect of making pseries-2.12 the default
machine type for QEMU 2.11.1, instead of the expected pseries-2.11. This
patch changes the default machine back to pseries-2.11.

Unfortunately, 9070f408f491 enforces the HTM capability for pseries-2.11
to be enabled by default, ie, when not passing cap-htm on the command
line. This breaks several 'make check' testcases that run qemu-system-ppc64
with TCG.

The only sane way to fix this is to adapt the impacted testcases so that
they all pass cap-htm=off in this case. This patch does that as well.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr.c
tests/boot-serial-test.c
tests/migration-test.c
tests/prom-env-test.c
tests/pxe-test.c