aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-05-19 02:18:48 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-05-19 02:18:48 +0100
commit41af6f38d95ac1ec058488705c048539df92c125 (patch)
tree94b36ee2c89a3939d3f9dcc5421841dc249fe46b /tools/examples
parent9125594e4e27944df656d99f5ba28e1923b6de18 (diff)
downloadxen-41af6f38d95ac1ec058488705c048539df92c125.tar.gz
xen-41af6f38d95ac1ec058488705c048539df92c125.tar.bz2
xen-41af6f38d95ac1ec058488705c048539df92c125.zip
xend: Make hotplug script timeouts configurable
In some configurations, when dom0 is busy with I/O, it may take several minutes to complete all hotplug scripts required when a new domain is being created. As device create timeout is set to 100 seconds, users get "hotplug scripts not working" error instead of a new domain. This patch makes both DEVICE_CREATE_TIMEOUT and DEVICE_DESTROY_TIMEOUT configurable in xend-config.sxp to allow users to easily adapt hotplug timeouts to their environment. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Diffstat (limited to 'tools/examples')
-rw-r--r--tools/examples/xend-config.sxp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/examples/xend-config.sxp b/tools/examples/xend-config.sxp
index 7ca270661a..a1d8c85fa3 100644
--- a/tools/examples/xend-config.sxp
+++ b/tools/examples/xend-config.sxp
@@ -254,3 +254,9 @@
# Path where persistent domain configuration is stored.
# Default is /var/lib/xend/domains/
#(xend-domains-path /var/lib/xend/domains)
+
+# Number of seconds xend will wait for device creation and
+# destruction
+#(device-create-timeout 100)
+#(device-destroy-timeout 100)
+