xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH v2 00/10] libxl: event: Fix hang for some applications
@ 2020-01-13 17:08 Ian Jackson
  2020-01-13 17:08 ` [Xen-devel] [PATCH v2 01/10] libxl: event: Rename poller.fds_changed to .fds_deregistered Ian Jackson
                   ` (10 more replies)
  0 siblings, 11 replies; 28+ messages in thread
From: Ian Jackson @ 2020-01-13 17:08 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, George Dunlap

The meat here, including a description of the bug, is in:
  libxl: event: Fix hang when mixing blocking and eventy calls

Re v1 I wrote:
  I suggest we try to convince ourselves of its correctness
  via a second round of code review.

I put this into practice by writing an informal proof of correctness.
This found a bug, the fixing of which was not entirely trivial.

George tells me he tested v1 of this series.  As with v1, I have
compiled this v2 but not executed it.

Ian Jackson (10):
  libxl: event: Rename poller.fds_changed to .fds_deregistered
  libxl: event: Rename ctx.pollers_fd_changed to .pollers_active
  libxl: event: Introduce CTX_UNLOCK_EGC_FREE
  libxl: event: Make LIBXL__EVENT_DISASTER take a gc, not an egc
  libxl: event: Make libxl__poller_wakeup take a gc, not an egc
  libxl: event: Fix hang when mixing blocking and eventy calls
  libxl: event: poller pipe optimisation
  libxl: event: Break out baton_wake
  libxl: event: Fix possible hang with libxl_osevent_beforepoll
  libxl: event: Move poller pipe emptying to the end of afterpoll

 tools/libxl/libxl.c          |   4 +-
 tools/libxl/libxl_aoutils.c  |   2 +-
 tools/libxl/libxl_disk.c     |   4 +-
 tools/libxl/libxl_domain.c   |   2 +-
 tools/libxl/libxl_event.c    | 286 +++++++++++++++++++++++++++++++++++--------
 tools/libxl/libxl_fork.c     |  17 ++-
 tools/libxl/libxl_internal.h |  54 +++++---
 7 files changed, 290 insertions(+), 79 deletions(-)

-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2020-01-17 14:40 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 17:08 [Xen-devel] [PATCH v2 00/10] libxl: event: Fix hang for some applications Ian Jackson
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 01/10] libxl: event: Rename poller.fds_changed to .fds_deregistered Ian Jackson
2020-01-17 11:07   ` George Dunlap
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 02/10] libxl: event: Rename ctx.pollers_fd_changed to .pollers_active Ian Jackson
2020-01-17 11:08   ` George Dunlap
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 03/10] libxl: event: Introduce CTX_UNLOCK_EGC_FREE Ian Jackson
2020-01-17 11:08   ` George Dunlap
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 04/10] libxl: event: Make LIBXL__EVENT_DISASTER take a gc, not an egc Ian Jackson
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 05/10] libxl: event: Make libxl__poller_wakeup " Ian Jackson
2020-01-17 12:30   ` George Dunlap
2020-01-17 13:46     ` Ian Jackson
2020-01-17 13:50       ` George Dunlap
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 06/10] libxl: event: Fix hang when mixing blocking and eventy calls Ian Jackson
2020-01-17 13:38   ` George Dunlap
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 07/10] libxl: event: poller pipe optimisation Ian Jackson
2020-01-17 12:06   ` George Dunlap
2020-01-17 13:41     ` Ian Jackson
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 08/10] libxl: event: Break out baton_wake Ian Jackson
2020-01-17 12:31   ` George Dunlap
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 09/10] libxl: event: Fix possible hang with libxl_osevent_beforepoll Ian Jackson
2020-01-17 13:39   ` George Dunlap
2020-01-13 17:08 ` [Xen-devel] [PATCH v2 10/10] libxl: event: Move poller pipe emptying to the end of afterpoll Ian Jackson
2020-01-17 12:32   ` George Dunlap
2020-01-17 14:24     ` Ian Jackson
2020-01-17 14:33       ` Ian Jackson
2020-01-17 14:39         ` George Dunlap
2020-01-17 14:34       ` George Dunlap
2020-01-17 13:40 ` [Xen-devel] [PATCH v2 00/10] libxl: event: Fix hang for some applications George Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).