]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: Increase device model startup timeout to 1min.
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 7 Jul 2015 15:09:13 +0000 (16:09 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 18 Sep 2015 15:29:55 +0000 (16:29 +0100)
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 <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit 9acfbe14d7261b03e3b3f4dc3c850ba2a7093e1f)

Conflicts:
tools/libxl/libxl_internal.h
(cherry picked from commit bbbd29a25d090f1180d14210358c6d7ccdebef85)
(cherry picked from commit fe66a76a2d6e30f2cd3aea6b2c8cb41f20ca6ea2)

tools/libxl/libxl_internal.h

index 63e206e774f8b1d520af5463753b64c7c70ba8c3..70200f37a43088e94813d4e25c0602b6b5e0d9c0 100644 (file)
@@ -83,7 +83,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_QEMU_BODGE_TIMEOUT 2
 #define LIBXL_XENCONSOLE_LIMIT 1048576
 #define LIBXL_XENCONSOLE_PROTOCOL "vt100"