Skip to content

RFC libxl: Asynchronous event cancellation

Ian Jackson xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14libxl: suspend: switch_logdirty_done takes rctools/libxl/libxl_dom.c+14 -90 replies
2/14libxl: suspend: common suspend callbacks take rctools/libxl/libxl_dom.c+22 -290 replies
3/14libxl: suspend: Return correct error from callbackstools/libxl/libxl_dom.c tools/libxl/libxl_internal.h+14 -10 replies
4/14libxl: Use libxl__xswait* in libxl__ao_devicetools/libxl/libxl_device.c tools/libxl/libxl_internal.h+20 -480 replies
5/14libxl: xswait/devstate: Move xswait to before devstatetools/libxl/libxl_internal.h+53 -520 replies
6/14libxl: devstate: Use libxl__xswait*tools/libxl/libxl_device.c tools/libxl/libxl_event.c tools/libxl/libxl_internal.h+40 -530 replies
7/14libxl: New error codes CANCELLED etc.tools/libxl/libxl_types.idl+3 -00 replies
8/14libxl: events: Permit timeouts to signal cancellationtools/libxl/libxl_aoutils.c tools/libxl/libxl_device.c tools/libxl/libxl_dom.c +2 more+49 -310 replies
9/14libxl: domain create: Do not destroy on cancellationtools/libxl/libxl.h tools/libxl/libxl_create.c+5 -10 replies
10/14libxl: ao: Record ultimate parent of a nested aotools/libxl/libxl_event.c tools/libxl/libxl_internal.h+17 -110 replies
11/14libxl: ao: Count the nested progeny of an aotools/libxl/libxl_event.c tools/libxl/libxl_internal.h+8 -10 replies
12/14libxl: ao: Provide manip_refcnttools/libxl/libxl_event.c tools/libxl/libxl_internal.h+35 -90 replies
13/14libxl: ao: Cancellation APItools/libxl/libxl.c tools/libxl/libxl.h tools/libxl/libxl_event.c +1 more+230 -10 replies
14/14libxl: ao: Timeouts are cancellabletools/libxl/libxl_event.c tools/libxl/libxl_internal.h+29 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 00/14] libxl: Asynchronous event cancellation

Comments on my approach would be very welcome at this stage. This applies only on top of my async suspend series.

I have compiled it but I HAVE NOT EXECUTED IT.

There is nothing to exercise this. I think it might be possible to make xl have a SIGINT handler which DTRT, but only at the cost of making it multithreaded or giving it its own event loop.

Preparatory work on the suspend code's dodgy error handling:
01/14 libxl: suspend: switch_logdirty_done takes rc 02/14 libxl: suspend: common suspend callbacks take rc 03/14 libxl: suspend: Return correct error from callbacks

Switching to libxl__xswait* to reduce number of timeout call sites:
04/14 libxl: Use libxl__xswait* in libxl__ao_device 05/14 libxl: xswait/devstate: Move xswait to before devstate 06/14 libxl: devstate: Use libxl__xswait*

Public API changes:
07/14 libxl: New error codes CANCELLED etc.
09/14 libxl: domain create: Do not destroy on cancellation 13/14 libxl: ao: Cancellation API

Internal API changes:
08/14 libxl: events: Permit timeouts to signal cancellation 10/14 libxl: ao: Record ultimate parent of a nested ao 11/14 libxl: ao: Count the nested progeny of an ao 12/14 libxl: ao: Provide manip_refcnt

Actual functionality!
14/14 libxl: ao: Timeouts are cancellable