From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQfa3-0008Vq-Kl for qemu-devel@nongnu.org; Thu, 20 Mar 2014 12:12:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQfZu-0001mj-MG for qemu-devel@nongnu.org; Thu, 20 Mar 2014 12:12:31 -0400 Received: from mail-qc0-x22d.google.com ([2607:f8b0:400d:c01::22d]:58226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQfZu-0001mM-I7 for qemu-devel@nongnu.org; Thu, 20 Mar 2014 12:12:22 -0400 Received: by mail-qc0-f173.google.com with SMTP id r5so1253718qcx.18 for ; Thu, 20 Mar 2014 09:12:21 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <532B1361.9070006@redhat.com> Date: Thu, 20 Mar 2014 17:12:17 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1395327676-29753-1-git-send-email-imammedo@redhat.com> <1395327676-29753-5-git-send-email-imammedo@redhat.com> In-Reply-To: <1395327676-29753-5-git-send-email-imammedo@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 4/8] qdev: link based hotplug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov , qemu-devel@nongnu.org Cc: vasilis.liaskovitis@profitbricks.com, mst@redhat.com, afaerber@suse.de, aliguori@amazon.com, marcel.a@redhat.com 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