qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] io: introduce helper for creating channels from file descriptors
Date: Wed, 3 Feb 2016 09:17:29 -0700	[thread overview]
Message-ID: <56B22819.6090003@redhat.com> (raw)
In-Reply-To: <1454511327-4812-1-git-send-email-berrange@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1641 bytes --]

On 02/03/2016 07:55 AM, Daniel P. Berrange wrote:
> Depending on what object a file descriptor refers to a different
> type of IO channel will be needed - either a QIOChannelFile or
> a QIOChannelSocket. Introduce a qio_channel_new_fd() method
> which will return the appropriate channel implementation.
> 
> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
> ---
> 
> Suggested during review of migration TLS patch series
> 
>   https://lists.gnu.org/archive/html/qemu-devel/2016-02/msg00607.html
> 
> and will be used by next posting of it.
> 
>  include/io/channel-util.h      | 52 ++++++++++++++++++++++++++++++++++++++++++
>  io/Makefile.objs               |  1 +
>  io/channel-util.c              | 50 ++++++++++++++++++++++++++++++++++++++++
>  tests/test-io-channel-file.c   | 22 ++++++++++++++++++
>  tests/test-io-channel-socket.c | 21 +++++++++++++++++
>  5 files changed, 146 insertions(+)
>  create mode 100644 include/io/channel-util.h
>  create mode 100644 io/channel-util.c
> 
> diff --git a/include/io/channel-util.h b/include/io/channel-util.h
> new file mode 100644
> index 0000000..6fb2baf
> --- /dev/null
> +++ b/include/io/channel-util.h
> @@ -0,0 +1,52 @@
> +/*
> + * QEMU I/O channels utility APIs
> + *
> + * Copyright (c) 2015 Red Hat, Inc.

2016?

> +++ b/io/channel-util.c
> @@ -0,0 +1,50 @@
> +/*
> + * QEMU I/O channels utility APIs
> + *
> + * Copyright (c) 2015 Red Hat, Inc.

and again

Otherwise,
Reviewed-by: Eric Blake <eblake@redhat.com>

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

      reply	other threads:[~2016-02-03 16:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03 14:55 [Qemu-devel] [PATCH] io: introduce helper for creating channels from file descriptors Daniel P. Berrange
2016-02-03 16:17 ` Eric Blake [this message]

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=56B22819.6090003@redhat.com \
    --to=eblake@redhat.com \
    --cc=berrange@redhat.com \
    --cc=dgilbert@redhat.com \
    --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).