From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1afa-00060Z-58 for qemu-devel@nongnu.org; Fri, 10 Jan 2014 06:54:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1afV-0003tU-9L for qemu-devel@nongnu.org; Fri, 10 Jan 2014 06:54:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1afV-0003tJ-0N for qemu-devel@nongnu.org; Fri, 10 Jan 2014 06:54:29 -0500 From: Markus Armbruster References: <1389121639-17657-1-git-send-email-kroosec@gmail.com> <87a9f7c4d5.fsf@blackfin.pond.sub.org> <20140108171749.GB3717@Inspiron-3521> <52CD8C09.2070306@redhat.com> <20140109181821.GA4609@Inspiron-3521> <52CEEB62.2000909@redhat.com> <87iots42zd.fsf@blackfin.pond.sub.org> <52CFC079.9010806@suse.de> Date: Fri, 10 Jan 2014 12:54:23 +0100 In-Reply-To: <52CFC079.9010806@suse.de> ("Andreas =?utf-8?Q?F=C3=A4rber=22?= =?utf-8?Q?'s?= message of "Fri, 10 Jan 2014 10:42:17 +0100") Message-ID: <878uuoyrv4.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] qdev: Assign a default device ID when none is provided. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?Q?F=C3=A4rber?= Cc: stefanha@redhat.com, qemu-devel@nongnu.org, Hani Benhabiles , Paolo Bonzini , imammedo@redhat.com, aliguori@amazon.com Andreas F=C3=A4rber writes: > Am 10.01.2014 10:09, schrieb Markus Armbruster: >> Commands taking a device ID could be extended to take a path in the QOM >> graph instead of an ID. >>=20 >> In the human monitor, it could perhaps work like this: >>=20 >> IDs consist of letters, digits, '-', '.', '_', starting with a >> letter (see id_wellformed()) >>=20=20=20=20=20 >> If the argument doesn't contain '/', interpret it as ID. >> Else, if it starts with '/', interpret it as QOM path anchored at >> "the root" (which needs to be defined). >> Else, split it at the first '/', and interpret the prefix as ID, and >> the suffix as as QOM path anchored at whatever has that ID. >>=20 >> Requires means to inspect the QOM graph to be usable. > > qom-list is available for that purpose today. We'd need something in the human monitor, too.