From: Wei Liu Subject: Re: [PATCH] Switch to poll() in cxenstored's IO loop Date: Sun, 17 Feb 2013 03:53:04 +0000 Message-ID: <1361073184.16636.212.camel@zion.uk.xensource.com> References: <1358796212-24178-1-git-send-email-wei.liu2@citrix.com> <1358848038.3279.296.camel@zakaz.uk.xensource.com> <1358863999.1836.23.camel@zion.uk.xensource.com> <1358864727.3279.374.camel@zakaz.uk.xensource.com> <1358866214.1836.35.camel@zion.uk.xensource.com> <1360061930.17017.34.camel@zakaz.uk.xensource.com> <1360071105.7477.139.camel@zion.uk.xensource.com> <1360939921.31407.92.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1360939921.31407.92.camel@zakaz.uk.xensource.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: Ian Campbell Cc: wei.liu2@citrix.com, "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2013-02-15 at 14:52 +0000, Ian Campbell wrote: > On Tue, 2013-02-05 at 13:31 +0000, Wei Liu wrote: > > > -----8<---- > > From 22a7b50b8b0be62aeae7c86242a27dac1ffdb929 Mon Sep 17 00:00:00 2001 > > From: Wei Liu > > Date: Mon, 21 Jan 2013 19:07:37 +0000 > > Subject: [PATCH] Switch to poll() in cxenstored's IO loop > > > > Poll() can support more file descriptors than select(). We've done this for > > xenconsoled, now do this for cxenstored as well. > > > > The code is taken from xenconsoled and modified to adapt to cxenstored. > > > > Updated: > > * reopen pipe if polling on reopen_log_pipe fails. > > * exit if polling on some critical fds fails. > > * clean up POLL*. > > > > Signed-off-by: Wei Liu > > Does this build for you? It fails to build for me in a fairly obvious > way with: > xenstored_core.c:22:18: error: poll.h: No such file or directory > followed by the inevitable fallout. > > Oh, this is the stubdomain build! I suppose mini-os lacks poll support. > > Faced with either making xenstored able to use poll or select as a > compile time option and implementing poll for mini-os I'd probably go > for the latter, presuming that most of the infrastructure is present > already... > Right. The header file is easy. Stefano introduced that years ago back in 2008, but the implementation is missing. Looking deeper in the code, poll is also missing in LWIP, but I think I can skip that at the moment, or use lwip_select in Mini-OS's poll as well... Wei. > Ian. >