From: Yang Hongyang Date: Fri, 18 Jul 2014 08:40:54 +0000 (+0800) Subject: libxl: Extend libxl__ao_device with a libxl__ev_child member X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4316^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7c52b9231f06286c5d24192b81d644b86eb07a08;p=xen.git libxl: Extend libxl__ao_device with a libxl__ev_child member This can be used to fork children to allow the asynchronous execution of system calls which only come in a synchronous variant. This will be useful for Remus, in the following patches. Signed-off-by: Yang Hongyang Signed-off-by: Shriram Rajagopalan Acked-by: Ian Jackson Acked-by: Konrad Rzeszutek Wilk --- diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 4c49c4cb3f..4b51ded820 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -453,6 +453,7 @@ void libxl__prepare_ao_device(libxl__ao *ao, libxl__ao_device *aodev) /* We init this here because we might call device_hotplug_done * without actually calling any hotplug script */ libxl__async_exec_init(&aodev->aes); + libxl__ev_child_init(&aodev->child); } /* multidev */ diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index a2dd7ca9f6..4a444822d8 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -2150,6 +2150,8 @@ struct libxl__ao_device { libxl__async_exec_state aes; /* If we need to update JSON config */ bool update_json; + /* for asynchronous execution of synchronous-only syscalls etc. */ + libxl__ev_child child; }; /*