Skip to content

Commit

Permalink
spapr_drc: Make device "spapr-dr-connector" unavailable with -device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Armbruster authored and dgibson committed Dec 3, 2015
1 parent c75304a commit c401ae8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hw/ppc/spapr_drc.c
Expand Up @@ -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 = {
Expand Down

0 comments on commit c401ae8

Please sign in to comment.