Il 20/03/2014 17:20, Igor Mammedov ha scritto:
>
> 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.
it does so "hotplug_handler_get_from_path()",
above just provides option to specify lookup path. See 6/8 where PC board
allocates links and sets its own board specific path for generic DimmDevice.

Yeah, but I'm not sure why you need the links. Why can't you just start from the canonical path, such as /machine/peripheral/dimm-0 for -device dimm,id=dimm-0, and walk up from there?

Paolo

Reply via email to