From: Eric Blake <eblake@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
qemu-block@nongnu.org
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 [thread overview]
Message-ID: <55F97678.1050201@redhat.com> (raw)
In-Reply-To: <1442411543-28513-2-git-send-email-berrange@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]
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 <berrange@redhat.com>
> ---
> block/nbd.c | 69 +++++++++++++++++++++++++++++++++----------------------------
> 1 file changed, 37 insertions(+), 32 deletions(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-09-16 14:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 13:52 [Qemu-devel] [PATCH v1 0/2] Remove use of QemuOpts from the nbd code Daniel P. Berrange
2015-09-16 13:52 ` [Qemu-devel] [PATCH v1 1/2] nbd: convert to use the QAPI SocketAddress object Daniel P. Berrange
2015-09-16 14:02 ` Eric Blake [this message]
2015-09-16 14:21 ` Paolo Bonzini
2015-09-16 13:52 ` [Qemu-devel] [PATCH v1 2/2] qemu-nbd: " Daniel P. Berrange
2015-09-16 14:08 ` Eric Blake
2015-09-16 14:13 ` Daniel P. Berrange
2015-09-16 14:23 ` Paolo Bonzini
2015-09-16 14:24 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55F97678.1050201@redhat.com \
--to=eblake@redhat.com \
--cc=berrange@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).