From: Ian Jackson Subject: [PATCH 0/3] datacopier POLLHUP fixes handling when the fd is also readable Date: Thu, 2 Apr 2015 16:03:43 +0100 Message-ID: <21789.23119.369227.882060@mariner.uk.xensource.com> References: <1426512594-11585-1-git-send-email-ross.lagerwall@citrix.com> <1426512594-11585-6-git-send-email-ross.lagerwall@citrix.com> <551423A8.3000308@citrix.com> <1427712044.13935.284.camel@citrix.com> <551BC9B0.10000@citrix.com> <551C0274.3050105@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <551C0274.3050105@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Ross Lagerwall , xen-devel@lists.xen.org, Wei Liu , Ian Campbell , Roger Pau =?utf-8?Q?Monn=C3=A9?= List-Id: xen-devel@lists.xenproject.org Andrew Cooper writes ("Re: [Xen-devel] [PATCH v3 6/6] tools/libxl: Adjust datacopiers POLLHUP handling when the fd is also readable"): > > > > libxl: error: libxl_bootloader.c:596:bootloader_copyfail: > > unexpected eof copying bootloader output > > > > libxl: debug: libxl_bootloader.c:638:bootloader_finished: > > bootloader completed This shows that the problem is with 7e9ec50b0535. The bootloader code relies on the difference between POLLHUP[|POLLIN] and just POLLIN. I think this small series will fix the problem. The commit messages have more detailed explanations. Note that I have NOT EXECUTED this code. I have neither a FreeBSD dom0 nor the migration v2 patches to hand. I propose to push 1/3 (the revert of 7e9ec50b0535) immediately. 2/3 and 3/3 should await testing. Andrew, do you have the capability to test 2/3 ? 3/3 is hard to test because the condition is probably very hard to reproduce. I will see if I can have a go. Thanks, Ian.