ia64/xen-unstable

view tools/examples/xend-config.sxp @ 7238:971e7c7411b3

Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Thu Oct 06 10:13:11 2005 +0100 (2005-10-06)
parents 06d84bf87159
children 9e0b6fbab872 9e0b6fbab872 857b79d27993
line source
1 # Xend configuration file.
3 # Port xend should use for the HTTP interface.
4 (xend-port 8000)
6 # Port xend should use for the event interface.
7 (xend-event-port 8001)
9 # Address xend should listen on for HTTP connections.
10 # Specifying 'localhost' prevents remote connections.
11 # Specifying the empty string '' allows all connections.
12 (xend-address 'localhost')
14 # The port xend should start from when allocating a port
15 # for a domain console.
16 (console-port-base 9600)
18 # Address xend should listen on for console connections.
19 # Specifying 'localhost' prevents remote connections.
20 # Specifying the empty string '' allows all connections.
21 (console-address 'localhost')
23 ## Use the following if VIF traffic is routed.
24 # The script used to start/stop networking for xend.
25 #(network-script network-route)
26 # The default script used to control virtual interfaces.
27 #(vif-script vif-route)
29 ## Use the following if VIF traffic is bridged.
30 # The script used to start/stop networking for xend.
31 (network-script network-bridge)
32 # The default bridge that virtual interfaces should be connected to.
33 (vif-bridge xen-br0)
34 # The default script used to control virtual interfaces.
35 (vif-script vif-bridge)
37 # Whether iptables should be set up to prevent IP spoofing for
38 # virtual interfaces. Specify 'yes' or 'no'.
39 (vif-antispoof no)
41 # Setup script for file-backed block devices
42 (block-file block-file)
44 # Setup script for enbd-backed block devices
45 (block-enbd block-enbd)
47 # Dom0 will balloon out when needed to free memory for domU.
48 # dom0-min-mem is the lowest memory level (in MB) dom0 will get down to.
49 # If dom0-min-mem=0, dom0 will never balloon out.
50 (dom0-min-mem 0)
52 # In SMP system, dom0 will use dom0-cpus # of CPUS
53 # If dom0-cpus = 0, dom0 will take all cpus available
54 (dom0-cpus 0)