ppc: Check the availability of transactional memory
commitbac3bf287ab60e264b636f5f00c116a19b655762
authorThomas Huth <thuth@redhat.com>
Wed, 28 Sep 2016 11:16:30 +0000 (28 13:16 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 5 Oct 2016 00:05:28 +0000 (5 11:05 +1100)
tree4add1cfcc3b906b7adb734558cc4109864f59e2b
parent4cbec30d769a73853b60dc7f275e6e7da9ab5162
ppc: Check the availability of transactional memory

KVM-PR currently does not support transactional memory, and the
implementation in TCG is just a fake. We should not announce TM
support in the ibm,pa-features property when running on such a
system, so disable it by default and only enable it if the KVM
implementation supports it (i.e. recent versions of KVM-HV).
These changes are based on some earlier work from Anton Blanchard
(thanks!).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
target-ppc/kvm.c
target-ppc/kvm_ppc.h