summaryrefslogtreecommitdiff
path: root/hw/ppc
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-12-03 17:37:40 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2015-12-04 10:56:29 +1100
commitc401ae8c9cd4e335dca59661f2849e7a26b5eb31 (patch)
tree3e2798e06fb2c4af26d5a07a8ee59ce8e58474d6 /hw/ppc
parentc75304a13906e2a91752a12ef90e31ab18467453 (diff)
downloadqemu-c401ae8c9cd4e335dca59661f2849e7a26b5eb31.zip
spapr_drc: Make device "spapr-dr-connector" unavailable with -device
It should only be created via spapr_dr_connector_new(). Attempting to create it with -device crashes. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/spapr_drc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/ppc/spapr_drc.c b/hw/ppc/spapr_drc.c
index 4e7a1d3af2..404fb3c2b6 100644
--- a/hw/ppc/spapr_drc.c
+++ b/hw/ppc/spapr_drc.c
@@ -594,6 +594,10 @@ static void spapr_dr_connector_class_init(ObjectClass *k, void *data)
drck->attach = attach;
drck->detach = detach;
drck->release_pending = release_pending;
+ /*
+ * Reason: it crashes FIXME find and document the real reason
+ */
+ dk->cannot_instantiate_with_device_add_yet = true;
}
static const TypeInfo spapr_dr_connector_info = {