From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW6DD-0001F3-GP for qemu-devel@nongnu.org; Thu, 12 Mar 2015 12:43:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YW6D6-0001L8-6F for qemu-devel@nongnu.org; Thu, 12 Mar 2015 12:43:55 -0400 Received: from cantor2.suse.de ([195.135.220.15]:47947 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW6D6-0001Kj-0r for qemu-devel@nongnu.org; Thu, 12 Mar 2015 12:43:48 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 12 Mar 2015 17:43:44 +0100 Message-Id: <1426178624-32638-10-git-send-email-afaerber@suse.de> In-Reply-To: <1426178624-32638-1-git-send-email-afaerber@suse.de> References: <1426178624-32638-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] [PATCH v2 9/9] 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 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