From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQhK9-00022O-6g for qemu-devel@nongnu.org; Thu, 20 Mar 2014 14:04:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQhK0-0001pB-Nx for qemu-devel@nongnu.org; Thu, 20 Mar 2014 14:04:13 -0400 Received: from mail-qc0-x22d.google.com ([2607:f8b0:400d:c01::22d]:43343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQhK0-0001oa-JI for qemu-devel@nongnu.org; Thu, 20 Mar 2014 14:04:04 -0400 Received: by mail-qc0-f173.google.com with SMTP id r5so1474886qcx.32 for ; Thu, 20 Mar 2014 11:04:03 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <532B2D8D.4040508@redhat.com> Date: Thu, 20 Mar 2014 19:03:57 +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> <532B1361.9070006@redhat.com> <20140320172032.796a2974@nial.usersys.redhat.com> In-Reply-To: <20140320172032.796a2974@nial.usersys.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 Cc: marcel.a@redhat.com, mst@redhat.com, qemu-devel@nongnu.org, vasilis.liaskovitis@profitbricks.com, aliguori@amazon.com, afaerber@suse.de 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