From: Anthony PERARD Date: Tue, 7 Jul 2015 15:09:13 +0000 (+0100) Subject: libxl: Increase device model startup timeout to 1min. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2901 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9acfbe14d7261b03e3b3f4dc3c850ba2a7093e1f;p=xen.git libxl: Increase device model startup timeout to 1min. On a busy host, QEMU may take more than 10s to load and start. This is likely due to a bug in Linux where the I/O subsystem sometime produce high latency under load and result in QEMU taking a long time to load every single dynamic libraries. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 1ead0282dd..2fdfb73818 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -85,7 +85,9 @@ #define LIBXL_INIT_TIMEOUT 10 #define LIBXL_DESTROY_TIMEOUT 10 #define LIBXL_HOTPLUG_TIMEOUT 10 -#define LIBXL_DEVICE_MODEL_START_TIMEOUT 10 +/* QEMU may be slow to load and start due to a bug in Linux where the I/O + * subsystem sometime produce high latency under load. */ +#define LIBXL_DEVICE_MODEL_START_TIMEOUT 60 #define LIBXL_STUBDOM_START_TIMEOUT 30 #define LIBXL_QEMU_BODGE_TIMEOUT 2 #define LIBXL_XENCONSOLE_LIMIT 1048576