qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 0/2] Giving names to graph's BlockDriverState


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 0/2] Giving names to graph's BlockDriverState
Date: Thu, 07 Nov 2013 13:34:06 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 11/07/2013 08:01 AM, Benoît Canet wrote:
> The following series introduce a new file.node-name property in order to be
> able to give a name to each BlockDriverState of the graph.
> 
> It also define "undefined" as a special value for node-name; a value that 
> will be
> used to indicate to the management that it can not manipulate a node because 
> it
> was not named.

Is it necessary to use the actual string "undefined" to mean unnamed, or
can we be careful and use NULL for unnamed, and all other pointers as
the user-provided name?  Either way, we have to special-case code to
check for the sentinel, but a NULL check is faster than a strcmp(), plus
it feels slightly nicer to not consume a value out of the user's namespace.

> 
> After this patchset is merged I would like to take care of presenting the 
> graph
> to the management. (HMP &&/|| QMP)
> 
> Eric: Do you have some ideas on this topic ?

Overall, I'm looking forward to getting this into qemu 1.8; I'm still
waiting to see what else you propose for QMP interfaces.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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