From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXt6W-0006Xn-QY for qemu-devel@nongnu.org; Tue, 17 Mar 2015 11:08:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXt6Q-0003Bl-3J for qemu-devel@nongnu.org; Tue, 17 Mar 2015 11:08:24 -0400 Received: from cantor2.suse.de ([195.135.220.15]:48478 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXt6P-0003BS-Td for qemu-devel@nongnu.org; Tue, 17 Mar 2015 11:08:18 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 17 Mar 2015 16:08:12 +0100 Message-Id: <1426604892-19293-8-git-send-email-afaerber@suse.de> In-Reply-To: <1426604892-19293-1-git-send-email-afaerber@suse.de> References: <1426604892-19293-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 7/7] qdev: Move owner-less IRQs to /machine/unattached List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Crosthwaite , =?UTF-8?q?Andreas=20F=C3=A4rber?= Move non-qdev-gpio[*] from /machine into /machine/unattached. For the PC this moves 25 nodes from the stable namespace into the unstabl= e. Cc: Peter Crosthwaite Tested-by: Alistair Francis Signed-off-by: Andreas F=C3=A4rber --- hw/core/qdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 6be5866..6e6a65d 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -501,8 +501,9 @@ void qdev_connect_gpio_out_named(DeviceState *dev, co= nst char *name, int n, * with an error without doing anything. If it has none, it wil= l * never fail. So we can just call it with a NULL Error pointer= . */ - object_property_add_child(qdev_get_machine(), "non-qdev-gpio[*]"= , - OBJECT(pin), NULL); + object_property_add_child(container_get(qdev_get_machine(), + "/unattached"), + "non-qdev-gpio[*]", OBJECT(pin), NULL)= ; } object_property_set_link(OBJECT(dev), OBJECT(pin), propname, &error_= abort); g_free(propname); --=20 2.1.4