qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC 4/8] qdev: link based hotplug


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC 4/8] qdev: link based hotplug
Date: Thu, 20 Mar 2014 17:12:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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



reply via email to

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