qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC v1 20/25] sysbus: Enable hotplug.


From: Peter Crosthwaite
Subject: [Qemu-devel] [RFC v1 20/25] sysbus: Enable hotplug.
Date: Thu, 15 May 2014 19:01:21 -0700

If your willing to set a few props, it can work. All the
connections this comment is referring to are QOMified now, so sysbus
hotplug is a full reality.

Signed-off-by: Peter Crosthwaite <address@hidden>
---

 hw/core/sysbus.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c
index 6858336..a56a74d 100644
--- a/hw/core/sysbus.c
+++ b/hw/core/sysbus.c
@@ -241,13 +241,6 @@ static void sysbus_device_class_init(ObjectClass *klass, 
void *data)
     DeviceClass *k = DEVICE_CLASS(klass);
     k->init = sysbus_device_init;
     k->bus_type = TYPE_SYSTEM_BUS;
-    /*
-     * device_add plugs devices into suitable bus.  For "real" buses,
-     * that actually connects the device.  For sysbus, the connections
-     * need to be made separately, and device_add can't do that.  The
-     * device would be left unconnected, and could not possibly work.
-     */
-    k->cannot_instantiate_with_device_add_yet = true;
 }
 
 static const TypeInfo sysbus_device_type_info = {
-- 
1.9.3.1.ga73a6ad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]