From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1Ybk-0000l0-Az for qemu-devel@nongnu.org; Fri, 10 Jan 2014 04:42:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1Ybd-00059Z-15 for qemu-devel@nongnu.org; Fri, 10 Jan 2014 04:42:28 -0500 Received: from cantor2.suse.de ([195.135.220.15]:52760 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1Ybc-00059N-QP for qemu-devel@nongnu.org; Fri, 10 Jan 2014 04:42:20 -0500 Message-ID: <52CFC079.9010806@suse.de> Date: Fri, 10 Jan 2014 10:42:17 +0100 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 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> In-Reply-To: <87iots42zd.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=ISO-8859-15 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: Markus Armbruster Cc: stefanha@redhat.com, qemu-devel@nongnu.org, aliguori@amazon.com, imammedo@redhat.com, Paolo Bonzini , Hani Benhabiles 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 > 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, an= d > 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. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg