Il 20/03/2014 16:01, Igor Mammedov ha scritto:
+ /* + * Returns path to link<> that should be set/unset on dev hotplug. + * Used for link based bussless devices hotplug. + */ + char* (*hotplug_path)(DeviceState *dev); +
What about just looking up on the QOM tree until you find a HotplugHandler, if the device doesn't have a bus or the bus doesn't have a hotplug handler link itself? This is similar to how FWPathProvider works.
Paolo