On Wed, 14 Jan 2015 15:27:28 +0800
Zhu Guihua wrote:
> From: Gu Zheng
>
> As the pre-check in the qdev_device_add():
> if (qdev_hotplug && bus && !qbus_is_hotpluggable(bus)) {
> qerror_report(QERR_BUS_NO_HOTPLUG, bus->name);
> return NULL;
> }
> if device has parent bus,
From: Gu Zheng
As the pre-check in the qdev_device_add():
if (qdev_hotplug && bus && !qbus_is_hotpluggable(bus)) {
qerror_report(QERR_BUS_NO_HOTPLUG, bus->name);
return NULL;
}
if device has parent bus, the bus must have valid hotplug_handler,
otherwise can not hot plug.
C