From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Ross Lagerwall <ross.lagerwall@citrix.com>, xen-devel@lists.xen.org
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH v3 6/6] tools/libxl: Adjust datacopiers POLLHUP handling when the fd is also readable
Date: Thu, 26 Mar 2015 16:20:08 +0100 [thread overview]
Message-ID: <551423A8.3000308@citrix.com> (raw)
In-Reply-To: <1426512594-11585-6-git-send-email-ross.lagerwall@citrix.com>
El 16/03/15 a les 14.29, Ross Lagerwall ha escrit:
> From: Andrew Cooper <andrew.cooper3@citrix.com>
>
> POLLHUP|POLLIN is a valid revent to receive when there is readable data in a
> pipe, but the writable fd has been closed. This occurs in migration v2 when
> the legacy conversion process (which transforms the data inline) completes and
> exits successfully.
>
> In the case that there is data to read, suppress the POLLHUP. POSIX states
> that the hangup state is latched[1], which means it will reoccur on subsequent
> poll() calls. The datacopier is thus provided the opportunity to read until
> EOF, if possible.
>
> A POLLHUP on its own is treated exactly as before, indicating a different
> error with the fd.
>
> [1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html
This patch breaks booting pygrub guests on FreeBSD, it seems to trigger
some kind of error when pygrub exits:
libxl: error: libxl_bootloader.c:596:bootloader_copyfail: unexpected eof copying bootloader output
libxl: error: libxl_create.c:1129:domcreate_rebuild_done: cannot (re-)build domain: -3
I will try to look into it, have you tested if the same happens on
Linux?
Roger.
next prev parent reply other threads:[~2015-03-26 15:20 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 13:29 [PATCH v3 1/6] tools/libxl: Introduce min and max macros Ross Lagerwall
2015-03-16 13:29 ` [PATCH v3 2/6] tools/libxl: Update datacopier to support sending data only Ross Lagerwall
2015-03-16 13:29 ` [PATCH v3 3/6] tools/libxl: Avoid overrunning static buffer with prefixdata Ross Lagerwall
2015-03-16 13:29 ` [PATCH v3 4/6] tools/libxl: Allow limiting amount copied by datacopier Ross Lagerwall
2015-03-18 11:12 ` Ian Campbell
2015-03-16 13:29 ` [PATCH v3 5/6] tools/libxl: Extend datacopier to support reading into a buffer Ross Lagerwall
2015-03-18 11:18 ` Ian Campbell
2015-04-01 15:53 ` Ian Jackson
2015-04-01 15:59 ` Ian Campbell
2015-03-16 13:29 ` [PATCH v3 6/6] tools/libxl: Adjust datacopiers POLLHUP handling when the fd is also readable Ross Lagerwall
2015-03-18 11:31 ` Ian Campbell
2015-03-26 15:20 ` Roger Pau Monné [this message]
2015-03-30 10:40 ` Ian Campbell
2015-04-01 10:34 ` Roger Pau Monné
2015-04-01 14:36 ` Andrew Cooper
2015-04-02 15:03 ` [PATCH 0/3] datacopier POLLHUP fixes " Ian Jackson
2015-04-02 15:04 ` [PATCH 1/3] Revert "tools/libxl: Adjust datacopiers POLLHUP handling when the fd is also readable" Ian Jackson
2015-04-02 15:08 ` Ian Campbell
2015-04-02 15:27 ` Ian Jackson
2015-04-02 15:10 ` Andrew Cooper
2015-04-02 15:11 ` Ian Jackson
2015-04-02 15:04 ` [PATCH 2/3] libxl: Cope with pipes which signal POLLHUP|POLLIN on read eof Ian Jackson
2015-04-02 15:13 ` Ian Campbell
2015-04-02 15:04 ` [PATCH 3/3] libxl: datacopier: Avoid theoretical eof/POLLHUP race Ian Jackson
2015-04-02 15:15 ` Ian Campbell
2015-04-02 16:29 ` Ian Jackson
2015-04-07 11:14 ` Roger Pau Monné
2015-04-07 12:26 ` Ian Jackson
2015-04-02 15:09 ` [PATCH 0/3] datacopier POLLHUP fixes handling when the fd is also readable Ian Jackson
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=551423A8.3000308@citrix.com \
--to=roger.pau@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=ross.lagerwall@citrix.com \
--cc=wei.liu2@citrix.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.