From: Ian Jackson <Ian.Jackson@eu.citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Martin Osterloh <osterlohm@ainfosec.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Current LibXL Status
Date: Thu, 18 Feb 2016 18:30:57 +0000 [thread overview]
Message-ID: <22214.3553.260609.617265@mariner.uk.xensource.com> (raw)
In-Reply-To: <1447933727.5647.51.camel@citrix.com>
Ian Campbell writes ("Re: [Xen-devel] Current LibXL Status"):
> The only one I can find which isn't one of this is
> in libxl__event_disaster, and that is only if the applications (or language
> bindings) haven't provided a suitable disaster callback.
libxl__event_disaster can currently happen in the following cases.
Disasters which are specific to a specific requested event (type!=0):
xc_domain_getinfolist failure (breaks reporting domain death, only
xw_write failure for acknowledging disk eject (breaks reporting
ejects, only)
General disasters (type==0) due to xenstore problems:
POLLERR or POLLHUP on xenstore fd
xs_check_watch fails (represents trouble on xenstore fd or with xenstore)
xs_read for domain death check
General disasters (type==0) due to hypercall trouble:
xenevtchn_pending fails other than with EAGAIN
(unrequested) event other than POLLIN on evtchn fd
General disasters (type==0) due to syscall failure:
poll syscall fails
(unrequested) event other than POLLIN on self-pipe
read() or write() fails on a self-pipe (other than EAGAIN/EWOULDBLOCK)
waitpid() syscall fails
General disasters (type==0) induced by the application:
waitpid reports ECHILD when we know we have a child (probably,
something else in the process reaped it; arguably this should abort)
application's childproc_hooks->reaped_callback failure
Disasters are not reported unless it is impossible to proceed. So in
general it is not possible for a process to recover from a disaster
reported by libxl.
But disasters are never expected. They should occur only if
everything is totally doomed anyway. Having a daemon crash is a
perfectly reasonable response.
Ian.
next prev parent reply other threads:[~2016-02-18 18:30 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-18 18:32 Current LibXL Status Martin Osterloh
2015-11-19 9:20 ` Ian Campbell
2015-11-19 10:23 ` George Dunlap
2015-11-19 10:55 ` Andrew Cooper
2015-11-19 11:23 ` Ian Campbell
2015-11-19 11:30 ` Processed: " xen
2015-11-19 11:33 ` Andrew Cooper
2015-11-19 11:48 ` Ian Campbell
2015-11-19 11:55 ` Ian Campbell
2015-11-19 12:16 ` Ian Campbell
2015-11-20 0:30 ` Yang Hongyang
2016-02-18 17:09 ` George Dunlap
2016-02-18 17:19 ` Ian Jackson
2016-02-18 17:26 ` Ian Campbell
2016-02-18 17:40 ` George Dunlap
2016-02-18 17:24 ` Ian Campbell
2016-02-18 18:30 ` Ian Jackson [this message]
2015-11-19 15:34 ` George Dunlap
2016-02-18 17:26 ` George Dunlap
2016-02-18 17:39 ` Ian Campbell
2016-02-18 17:47 ` George Dunlap
2016-02-18 17:50 ` Ian Campbell
2016-02-18 18:15 ` libxl and malloc failure (Re: Current LibXL Status) Ian Jackson
2016-02-19 10:52 ` Ian Campbell
2016-02-19 11:00 ` Processed: " xen
2016-02-22 16:48 ` 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=22214.3553.260609.617265@mariner.uk.xensource.com \
--to=ian.jackson@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=osterlohm@ainfosec.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.