From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Wen Congyang <wency@cn.fujitsu.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 2/6] tools/libxl: Update datacopier to support sending data only
Date: Fri, 20 Feb 2015 11:10:12 +0000 [thread overview]
Message-ID: <54E71614.20606@citrix.com> (raw)
In-Reply-To: <1424428077.30924.172.camel@citrix.com>
On 20/02/15 10:27, Ian Campbell wrote:
> On Wed, 2015-02-18 at 16:34 +0000, Andrew Cooper wrote:
>> From: Wen Congyang <wency@cn.fujitsu.com>
>>
>> datacopier is to read some data and write it out. If we
>> have some data to send it over network, we cannot use
>> datacopier. Update it to support this case.
> Please can you clarify this commit message. Questions I'm left with
> after reading it:
>
> * What is the relevance of "send it over network" here, why does
> it matter what the output fd is? Or is this something to do with
> the lack of an input fd (in which case where does the incoming
> data come from?)
> * Why can datacopier not currently be used in this case, what
> actually goes wrong?
> * What is the nature of the update which makes it work? (possibly
> becomes obvious after the previous answers)
>
> Thanks.
This is one of several patches which didn't get included as part of the
libxl remus series in the end (i.e. git rebase didn't drop this hunk
out), but is still needed for migration v2.
Currently, the datacopier only functions when copying from readfd to
writefd until EOF is hit on readfd.
The datacopier infrastructure already has prefixdata which will be
inserted into writefd ahead of the content of readfd, but lacks the
ability to simply copy from a local buffer to writefd.
This patch makes the lack of readfd non-fatal, which allows the rest of
the existing infrastructure function as a proper copy from local buffer.
~Andrew
next prev parent reply other threads:[~2015-02-20 11:10 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 16:34 [PATCH 0/6] tools/libxl: Improvements to libxl__datacopier Andrew Cooper
2015-02-18 16:34 ` [PATCH 1/6] tools/libxl: Introduce min and max macros Andrew Cooper
2015-02-20 10:24 ` Ian Campbell
2015-02-20 10:42 ` Frediano Ziglio
2015-02-20 11:08 ` Andrew Cooper
2015-02-18 16:34 ` [PATCH 2/6] tools/libxl: Update datacopier to support sending data only Andrew Cooper
2015-02-20 10:27 ` Ian Campbell
2015-02-20 11:10 ` Andrew Cooper [this message]
2015-02-20 11:13 ` Ian Campbell
2015-02-18 16:34 ` [PATCH 3/6] tools/libxl: Allow adding larger amounts of prefixdata to datacopier Andrew Cooper
2015-02-20 10:32 ` Ian Campbell
2015-02-18 16:34 ` [PATCH 4/6] tools/libxl: Allow limiting amount copied by datacopier Andrew Cooper
2015-02-20 10:33 ` Ian Campbell
2015-02-18 16:34 ` [PATCH 5/6] tools/libxl: Extend datacopier to support reading into a buffer Andrew Cooper
2015-02-20 10:34 ` Ian Campbell
2015-02-18 16:34 ` [PATCH 6/6] tools/libxl: Fix datacopier POLLHUP handling to not always be fatal Andrew Cooper
2015-02-20 10:43 ` Ian Campbell
2015-02-20 13:55 ` Andrew Cooper
2015-02-20 14:05 ` Ian Campbell
2015-03-03 18:10 ` Ian Jackson
2015-03-03 18:38 ` Andrew Cooper
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=54E71614.20606@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=wency@cn.fujitsu.com \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.