OSDN Git Service

spapr: Use default_machine_opts to set use_hotplug_event_source
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 5 Dec 2018 20:58:24 +0000 (18:58 -0200)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 11 Dec 2018 17:45:22 +0000 (15:45 -0200)
commita140c199f41bd90747982f30eb7eceee6f1aa0db
tree2bd151aa3b0461ad8922903f4f64dd64b90214cb
parent951597607696f228c40d42243865319c1750f19e
spapr: Use default_machine_opts to set use_hotplug_event_source

Instead of setting use_hotplug_event_source at instance_init
time, set default_machine_opts on spapr_machine_2_7_class_options()
to implement equivalent behavior.

This will let us eliminate the need for separate instance_init
functions for each spapr machine-type.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20181205205827.19387-3-ehabkost@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/ppc/spapr.c