diff options
author | Greg Kurz <groug@kaod.org> | 2017-09-11 22:52:06 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-09-15 10:29:48 +1000 |
commit | 1bbadc759e23ef8629ef955a4b78f06da2e5a381 (patch) | |
tree | 69f9533de5cb9b12f763ba30295f9c68813be201 /qga/service-win32.c | |
parent | a1a6bbde4f6a29368f8f605cea2e73630ec1bc7c (diff) |
spapr_cpu_core: fail gracefully with non-pseries machine types
Since commit 7cca3e466eb0 ("ppc: spapr: Move VCPU ID calculation into
sPAPR"), QEMU aborts when started with a *-spapr-cpu-core device and
a non-pseries machine.
Let's rely on the already existing call to object_dynamic_cast() instead
of using the SPAPR_MACHINE() macro.
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'qga/service-win32.c')
0 files changed, 0 insertions, 0 deletions