qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] qapi: convert add_client


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH] qapi: convert add_client
Date: Tue, 18 Sep 2012 13:13:16 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0

On 09/18/2012 01:06 PM, Luiz Capitulino wrote:
> Also fixes a few issues while there:
> 
>  1. The fd returned by monitor_get_fd() leaks in most error conditions
>  2. monitor_get_fd() return value is not checked. Best case we get
>     an error that is not correctly reported, worse case one of the
>     functions using the fd (with value of -1) will explode
>  3. A few error conditions aren't reported
> 
> Signed-off-by: Luiz Capitulino <address@hidden>
> ---
>  monitor.c        | 39 ---------------------------------------
>  qapi-schema.json | 23 +++++++++++++++++++++++
>  qmp-commands.hx  |  5 +----
>  qmp.c            | 44 ++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 68 insertions(+), 43 deletions(-)
> 

>  { 'command': 'screendump', 'data': {'filename': 'str'} }
> +
> +##
> +# @add_client

Are these supposed to be sorted in any particular order?

> +#
> +# Allow client connections for VNC, Spice and socket based
> +# character devices to be passed in to QEMU via SCM_RIGHTS.
> +#
> +# @protocol: protocol name. Valid names are "vnc", "spice" or the
> +#            name of a character device (eg. from -chardev id=XXXX)
> +#
> +# @fdname: file descriptor name passed via SCM_RIGHTS

Misleading; isn't this really:

file descriptor name previously passed via 'getfd' command

since it is only 'getfd' that uses SCM_RIGHTS?

> +#
> +# skipauth: #optional whether to skip authentication
> +#
> +# tls: #optional whether to perform TLS

Missing leading @ on two lines.

> +#
> +# Returns: nothing on success.
> +#
> +# Since: 0.14.0

If this were a new command for 1.3, I'd say to name it 'add-client'; but
since QMP has already been exposing it and you are now just documenting
it, you can't change the name.

-- 
Eric Blake   address@hidden    +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]