diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2017-11-25 13:16:08 -0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2018-01-19 11:18:51 -0200 |
commit | 7da79a167aa11af6fad353bfbc825fbff2db68a2 (patch) | |
tree | 7cf3c46cc551a0ea4a22cf2a1bf5fc92f1d5cf8d /hw/ppc | |
parent | 50d01d240f26a43a1d8c0667078bcab7186f2f96 (diff) | |
download | qemu-7da79a167aa11af6fad353bfbc825fbff2db68a2.zip qemu-7da79a167aa11af6fad353bfbc825fbff2db68a2.tar.gz qemu-7da79a167aa11af6fad353bfbc825fbff2db68a2.tar.bz2 |
spapr: Allow only supported dynamic sysbus devices
TYPE_SPAPR_PCI_HOST_BRIDGE is the only dynamic sysbus device not
rejected by ppc_spapr_reset(), so it can be the only entry on the
allowed list.
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Cc: qemu-ppc@nongnu.org
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20171125151610.20547-5-ehabkost@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 5847175..278f9de 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -3843,8 +3843,7 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data) mc->default_boot_order = ""; mc->default_ram_size = 512 * M_BYTE; mc->kvm_type = spapr_kvm_type; - /*TODO: allow only sysbus devices that really work with this machine */ - machine_class_allow_dynamic_sysbus_dev(mc, TYPE_SYS_BUS_DEVICE); + machine_class_allow_dynamic_sysbus_dev(mc, TYPE_SPAPR_PCI_HOST_BRIDGE); mc->pci_allow_0_address = true; mc->get_hotplug_handler = spapr_get_hotplug_handler; hc->pre_plug = spapr_machine_device_pre_plug; |