qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v1 1/2] nbd: convert to use the QAPI SocketAddre


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v1 1/2] nbd: convert to use the QAPI SocketAddress object
Date: Wed, 16 Sep 2015 08:02:32 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

On 09/16/2015 07:52 AM, Daniel P. Berrange wrote:
> The nbd block driver currently uses a QemuOpts object
> when setting up sockets. Switch it over to use the
> QAPI SocketAddress object instead.
> 
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
>  block/nbd.c | 69 
> +++++++++++++++++++++++++++++++++----------------------------
>  1 file changed, 37 insertions(+), 32 deletions(-)

Reviewed-by: Eric Blake <address@hidden>

Wen - this patch will help in your efforts to expose NBD via
blockdev-add QMP.

> -    if (!qemu_opt_get(s->socket_opts, "port")) {
> -        qemu_opt_set_number(s->socket_opts, "port", NBD_DEFAULT_PORT,
> -                            &error_abort);
> -    }
> +    s->client.is_unix = saddr->kind == SOCKET_ADDRESS_KIND_UNIX;
>  

Minor conflict with my pending patch to rename the C representation of
qapi unions to spell things with 'type':
https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg02598.html
but as that needs to be rebased once Markus' introspection lands, you
don't have to wait for it.

-- 
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]