emellor@leeni.uk.xensource.com
afa150ca7c
Fix the startup behaviour when the tdb file exists. We were attempting to
...
remove and recreate the /local directory, but the manual_node call only works
if the tdb is empty -- we must use create_node, otherwise the store is
corrupted.
It's not clear to me that the other manual_node calls are safe, but I have only
made this smaller change for the sake of stability. These other calls should
be reviewed.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 15:44:38 +00:00
emellor@leeni.uk.xensource.com
a16c06e77e
Fix usleep definition -- we would be sleeping 1000 times too long if the usleep
...
command were not available elsewhere on the machine (on my Debian boxes, for
example).
Sleep for a configurable amount of time between xm create calls (by default,
5 seconds). This spaces out the booting of the new domains, meaning that they
should not thrash the disk so much.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 15:41:41 +00:00
emellor@leeni.uk.xensource.com
11d655cef6
Tidy up use of environment variables in xenbus-hotplug interaction.
...
I've changed this to only write "backend" (xenbus_backend.root) into
XENBUS_BASE_PATH. After appending XENBUS_TYPE (also exported) you can
construct the "base path" easily in the scripts. I've completely
removed writing XENBUS_FRONTEND_ID in favour of reading it from the
store at "$XENBUS_PATH/frontend-id".
Avoid re-reading the store over and over for the frontend domain's vm-path.
The patch also fixes a memory leak in backend_bus_id where we
leak the memory referenced by frontend if the function succeeds.
This work is by Christian Limpach.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 11:57:26 +00:00
emellor@leeni.uk.xensource.com
e21406c453
Merged.
2005-12-07 11:51:31 +00:00
emellor@leeni.uk.xensource.com
5e61562a32
Change configuration handling wrt to the vcpus entry, so that we only see a
...
vcpus entry in the image section when using VMX, only add VMX options at all
if the builder is vmx, and issue a warning when overriding the global vcpus
setting with the one from the image.
This removes the duplicated vcpus entries in the domain's sxpr.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 11:50:55 +00:00
emellor@leeni.uk.xensource.com
497ff155b3
Remove timeout on select -- there is no need for it, since we don't do anything
...
in the main loop except service I/O.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 11:47:46 +00:00
emellor@leeni.uk.xensource.com
d688d94c83
Merged.
2005-12-07 11:44:02 +00:00
emellor@leeni.uk.xensource.com
a4de9a218c
Further fix to same_vm check. This fixes intermittent failure of live
...
localhost migration.
return [ test ] is not valid, simply [ test ] at the end of the function is the
correct syntax.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 11:43:43 +00:00
emellor@leeni.uk.xensource.com
2fd63647b4
Fix printf of ssize_t that broke 64-bit build.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 10:54:57 +00:00
emellor@leeni.uk.xensource.com
d38caf05b2
Squelch error messages from calls when failure is handled gracefully.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 10:53:47 +00:00
emellor@leeni.uk.xensource.com
df964c1d71
Remove one of the multiple occurrences of vcpus in the sxpr. This value is
...
in ROUNDTRIPPING_CONFIG_ENTRIES, so there is no need for it to be mentioned
explicitly in sxpr() too.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-07 10:51:55 +00:00
emellor@leeni.uk.xensource.com
a64d176a1c
xm-test report fails because IA64's /cpu/procinfo format is different from
...
x86's. Here's a small patch to fix the problem.
Signed-off-by: Matsumoto <n_matumoto@soft.fujitsu.com >
2005-12-07 10:27:03 +00:00
emellor@leeni.uk.xensource.com
f63de9a38d
Merged.
2005-12-06 17:11:04 +00:00
emellor@leeni.uk.xensource.com
ef1a53c4e0
Add a "consumed" parameter to the buffer declaration, and use this to advance
...
through the buffer when the data are read by console clients. This avoids a
costly memmove with every read from the console.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-06 17:10:59 +00:00
kaf24@firebug.cl.cam.ac.uk
af50dd63cf
Pull nmi/traps changes from Linux 2.6.14.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-06 17:48:57 +01:00
emellor@leeni.uk.xensource.com
b978d1410a
Merged.
2005-12-06 16:40:50 +00:00
emellor@leeni.uk.xensource.com
e50a8e9939
Make the master fd belonging to the pty pair non-blocking. Writes were blocking
...
if the console client disconnected before all the data had been written to the
pty, even though the select call had indicated that the fd was previously
writable. Reads have been observed exhibiting similar behaviour too.
Closes bug #380 .
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-06 16:40:43 +00:00
kaf24@firebug.cl.cam.ac.uk
f855f75259
The Mini-OS build once again broke, this time since vcpu_data became vcpu_info
...
and that XEN_VER in the __xen_guest section changed slightly. I've modified
the mini-os so that it at least compiles and boots again.
Signed-off-by: Simon Kagstrom <simon.kagstrom@bth.se >
2005-12-06 16:05:31 +01:00
kaf24@firebug.cl.cam.ac.uk
ee694618a7
Add map_domain_pages/unmap_domain_pages to map contiguous
...
multi-franme extents of domain memory.
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-06 15:52:51 +01:00
kaf24@firebug.cl.cam.ac.uk
b8477f0215
Fix the request size for a full page-sized skbuff in netfront
...
driver (must allow 16 bytes for dev_alloc_skb headroom).
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-06 15:52:15 +01:00
kaf24@firebug.cl.cam.ac.uk
107808a452
Fix netfront to accept received packets at a wider range of
...
offsets within a memory page. Also fix, skb realloc-and-copy
when copying really is required (we were forgetting whether
the packet data is known valid, and checksumming packets that
do not have the csum field filled in).
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-06 15:02:54 +01:00
kaf24@firebug.cl.cam.ac.uk
7710ccfc30
Pre-decrement rather than post-decrement in shadow32.c.
...
Already fixed in shadow.c.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com >
2005-12-06 12:49:05 +01:00
kaf24@firebug.cl.cam.ac.uk
67858f9867
Update xen cap to reflect 32 bit VMX guest support on x86_64
...
Signed-off-by: Xin Li <xin.b.li@intel.com >
2005-12-06 12:46:43 +01:00
kaf24@firebug.cl.cam.ac.uk
32dc1c6ed9
Fix vtpm support in xend.
...
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2005-12-06 12:45:30 +01:00
dan@guaranine.beaverton.ibm.com
383dbc16f4
Output an explicit newline before the "REASON:" string so the report script
...
can find it, even when a domain outputs a non-newline-terminated line.
Signed-off-by: Dan Smith <danms@us.ibm.com >
2005-12-05 15:36:11 +00:00
emellor@leeni.uk.xensource.com
46ba2d63fa
Mention udev, clean up xm help section, mention network-nat and network-route
...
scripts and the fact that network is now called network-bridge.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-12-05 15:30:10 +00:00
iap10@freefall.cl.cam.ac.uk
0d02a0c403
Added tag RELEASE-3.0.0 for changeset c8fdb0caa77b429cf47f9707926e83947778cb48
2005-12-05 14:02:01 +01:00
smh22@firebug.cl.cam.ac.uk
4f1fd0003e
Updated docs for Xen 3.0.
...
Signed-off-by: Steven Hand <steven@xensource.com >
RELEASE-3.0.0
2005-12-05 13:39:26 +01:00
cl349@firebug.cl.cam.ac.uk
a060a4c50b
Temporarily remove NetBSD and FreeBSD sparse trees to avoid user confusion.
...
The NetBSD and FreeBSD currently don't build against the final Xen 3.0 API.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-12-04 20:12:00 +01:00
cl349@firebug.cl.cam.ac.uk
f41cb4d2cc
Merge
2005-12-04 18:24:24 +01:00
kaf24@firebug.cl.cam.ac.uk
1e4b462e21
Pull requests from blkfront into blkback a bit more
...
aggressively, to keep the scheduling pipeline filled.
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-04 18:20:41 +01:00
cl349@firebug.cl.cam.ac.uk
127515a943
Update version number for Xen 3.0.0 release.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-12-04 18:17:33 +01:00
cl349@firebug.cl.cam.ac.uk
c4b7794669
Make version strings consistent across all interfaces.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-12-04 18:16:33 +01:00
cl349@firebug.cl.cam.ac.uk
fac70b835d
Update -xen config file to include newgen megaraid and qla scsi drivers.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-12-04 18:12:18 +01:00
cl349@firebug.cl.cam.ac.uk
abbe050874
Rename set-vcpus to vcpu-set (match docs) and update short help page.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-12-04 17:29:46 +01:00
kaf24@firebug.cl.cam.ac.uk
55f8d24f80
Bump blktap and dom0op version numbers.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-04 12:06:38 +01:00
kaf24@firebug.cl.cam.ac.uk
e23e1a21a5
Image.py should send 2 new arguments to qemu-dm for setting QEMU window
...
Title. 1 is const string "-domain-name", the other is the string of
domain name. At present imagy.py combines these two strings to 1. So
Qemu will fail to recognize it and fail to start.
Signed-off-by: Yongkang You <yongkang.you@intel.com >
2005-12-04 11:57:32 +01:00
kaf24@firebug.cl.cam.ac.uk
92279a6821
Add a comment to tricky corner case in evtchn_close().
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-04 11:54:04 +01:00
rread@ubuntu.eng.hq.xensource.com
5ec8938808
Merge docs
2005-12-03 17:52:38 -07:00
iap10@freefall.cl.cam.ac.uk
e44081a02a
Readme typos
...
Signed-off-by: ian@xensource.com
2005-12-04 01:34:25 +01:00
cl349@firebug.cl.cam.ac.uk
79a13ff2fd
Fix same_vm test by adding missing '$'.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-12-04 00:51:15 +01:00
cl349@firebug.cl.cam.ac.uk
f7ba08cc97
Use test ([) instead of expr to compare integers.
...
expr $int1 '<' $int2 seems to be broken on some shells.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-12-04 00:49:51 +01:00
kaf24@firebug.cl.cam.ac.uk
1e56ea4a43
Fix request-notification holdoff in blkback. New code is
...
more correct and clearer in intent.
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-03 21:53:01 +01:00
kaf24@firebug.cl.cam.ac.uk
c06235d49f
Remove scary warning message about 'breaking irq affinity'
...
when hot-unplugging cpus. It is a harmless side-effect of
running the irqbalance daemon in user space.
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-03 21:17:11 +01:00
iap10@freefall.cl.cam.ac.uk
f74b71caca
Merge
2005-12-03 20:16:04 +01:00
iap10@freefall.cl.cam.ac.uk
0466574382
Update xend-config.sxp so that dom0-min-mem is 196MB by default, as this is rather more user friendly.
...
Also do some minor fixes to the README
Signed-off-by: ian@xensource.com
2005-12-03 20:05:39 +01:00
kaf24@firebug.cl.cam.ac.uk
395ae89f03
Always initialise a swiotlb for domain0. Make it a small
...
aperture (2MB) for small systems (< 2GB).
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-12-03 19:09:19 +01:00
kaf24@firebug.cl.cam.ac.uk
5e6cf9a3f2
Enable multiple NICs for vmx domain by configuration file
...
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com >
2005-12-03 17:59:37 +01:00
kaf24@firebug.cl.cam.ac.uk
f2e2149629
Set the device model windows title as the domain name
...
This helps when creating multile vmx domain.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com >
2005-12-03 17:58:31 +01:00
kaf24@firebug.cl.cam.ac.uk
840923cb84
Fixes unmodified 32-bit guest support on the x86_64 Xen.
...
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com >
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com >
2005-12-03 17:41:16 +01:00