qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qdev: Assign a default device ID when none is p


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH] qdev: Assign a default device ID when none is provided.
Date: Fri, 10 Jan 2014 10:42:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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.
> 
> In the human monitor, it could perhaps work like this:
> 
>     IDs consist of letters, digits, '-', '.', '_', starting with a
>     letter (see id_wellformed())
>     
>     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.
> 
> Requires means to inspect the QOM graph to be usable.

qom-list is available for that purpose today.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]