Commit Graph
8292 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com 458dbeddf3 Fix ip_of to cope with interfaces with multiple addresses, courtesy of
Adam Heath <doogie@brainfood.com>.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 15:54:35 +00:00
emellor@leeni.uk.xensource.com d0caf30ebb Merged. 2005-12-08 15:04:41 +00:00
emellor@leeni.uk.xensource.com ae0212521e Strip huge piles of cruft from the connection infrastructure. We now actually
block inside accept rather than using select to poll and then calling accept
regardless of the outcome of the select call, and then failing because the
socket is non-blocking.

SocketClientConnection, SocketConnector, TCPClientConnection, TCPConnector,
connectTCP, UnixClientConnection, UnixConnector, connectUnix have gone.

loseConnection and stopListening and closeSocket (where they are needed) are
now called close.  startListening is now called listen.

Closes bug #379.

Relieves a weight from the shoulders of the universe.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 15:04:31 +00:00
kaf24@firebug.cl.cam.ac.uk e50c7df410 Make balloon driver arch-neutral.
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-12-08 15:33:10 +01:00
emellor@leeni.uk.xensource.com 5ea39e7063 Move xm destroy handling out of crufty destroy.py and into main.py, where it
can share the better argument parsing.

Closes bug #443.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 14:30:15 +00:00
emellor@leeni.uk.xensource.com 6a6999e3fb Fix start_time parsing on restart -- it's a float, not an int.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 14:28:53 +00:00
kaf24@firebug.cl.cam.ac.uk df17685613 A small VMX code cleanup.
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2005-12-08 15:25:44 +01:00
kaf24@firebug.cl.cam.ac.uk 7fc4533b32 Merge in the newer Xenbus implementation from Linux to the Mini-OS. The new
version compiles and starts up, but I'm not really sure how to test the new
xenbus implementation.

* Added unbind_evtchn
* Copied parts of the Linux spinlock implementation to make the changes to
  xenbus compared to Linux smaller. Also added a dummy rwsem implementation.
* Updated the xenbus-files

Signed-off-by: Simon Kagstrom <simon.kagstrom@bth.se>
2005-12-08 15:24:02 +01:00
kaf24@firebug.cl.cam.ac.uk bc70813814 Don't unshadow when the shadow l2 is the current used shadow table.
Otherwise, when destroying the domain, if the current sl2 is unpinned
then the shadow page will be freed without accquire the shadow_lock.
This may also improve the performance due to avoiding uncessary
unshadow.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-08 15:21:36 +01:00
kaf24@firebug.cl.cam.ac.uk 064a4d414b Fixed a get/put_page mismatch for guest L2 pages. Sometimes, when you
destroy an OS when it is in real mode, there is an extra put_page in
domain_relinquish_resource.  This causes the page be freed with
non-zero type count.  With ASSERT enabled, hypervisor will crash; with
debug=n, on some machines, the system will hang in
alloc_domheap_pages, due to type_info being a union with cpumask and
not equal to 0.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-08 15:18:13 +01:00
kaf24@firebug.cl.cam.ac.uk f3fc4cd304 Improve VMX guest TSC accuracy when guests are
competing for the same physical CPU.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2005-12-08 15:13:38 +01:00
emellor@leeni.uk.xensource.com 1c68755227 Merged. 2005-12-08 12:14:33 +00:00
emellor@leeni.uk.xensource.com 5c896ea1a5 Loop retrying when ballooning out, even when the dom0-min-mem setting means
that there is not sufficient memory available at the moment.  Memory may be
about to be freed up by the system after a domain destruction (i.e. the memory
is being scrubbed asynchronously, and will be released soon).

Closes bug #407, bug #429.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 12:13:06 +00:00
emellor@leeni.uk.xensource.com 83c3ceb178 Read start_time and image from the store on restart. Closes bugs #441 and
#442.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 12:10:22 +00:00
emellor@leeni.uk.xensource.com 7b4fe715a5 Refuse to save dom0, and move the check that refuses to migrate dom0 from
migrate.py into XendDomain.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 12:08:59 +00:00
vhanquez@kneesa.uk.xensource.com df5dc503db really fix mkpatches to work correctly.
unfortunately, add some code duplication in mkpatches area.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-12-08 08:57:55 +00:00
vhanquez@kneesa.uk.xensource.com cc5c32ece6 fix mkpatches for creating correctly linux-2.6-xen.patch
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-12-08 08:09:09 +00:00
vhanquez@kneesa.uk.xensource.com c2c982f908 allow a port to be specified for migration.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-12-08 07:11:09 +00:00
smh22@firebug.cl.cam.ac.uk 91df848ca6 Updated info on Xend.
Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
Signed-off-by: Robb Romans <FMJ@us.ibm.com>
Signed-off-by: Steven Hand <steven@xensource.com>
2005-12-07 18:59:33 +01:00
emellor@leeni.uk.xensource.com d96a859929 Don't try and print out the info returned by the server after a restore -- there
isn't any.  Don't try and unpause the restored domain either -- XendCheckpoint
does that.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-07 16:26:07 +00:00
emellor@leeni.uk.xensource.com 4213a82e5b Use xm create's --dryrun option to get the name from the configuration file,
rather than the eversoskanky approach taken previously (use grep, and replace
any occurrences of %d with [0-9]* !)

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-07 16:25:13 +00:00
danms@us.ibm.com d8fdcac4df Make the xm-test ramdisk makefile correct the permissions on the rcS script
Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-12-07 15:50:59 +00:00
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