Commit Graph
8150 Commits
Author SHA1 Message Date
dan@localhost.localdomain fff236db8d Add test for the last unresolved bit of bug #416. Check that
"xm list --long" reflects removed devices.
2005-12-01 11:15:31 +00:00
kaf24@firebug.cl.cam.ac.uk b242b20898 Move net split driver onto ring.h generic rings.
No backend should SHARED_RING_INIT(): that's the frontend's job.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-01 11:27:27 +01:00
kaf24@firebug.cl.cam.ac.uk 37f1411911 ptsname() is applied to the master fd, not the slave fd.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-01 11:10:40 +01:00
emellor@leeni.uk.xensource.com 7899900c4f Merged. 2005-12-01 03:40:26 +00:00
emellor@leeni.uk.xensource.com e3d7747349 Move the dom0 ballooning-out code from the xm create handler and into the
server, where it can be used on reboot and migrate as well as create.
Ballooning bugs may still exist (it is unclear) but this is certainly a good
step in the right direction.

Ignore the memory and maxmem entries in the store for dom0 when restarting.
This means that the value in use at the time becomes the configured target.
This should fix the bug whereby dom0_mem settings on the command line are
being overridden by (older) entries in the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-01 03:39:23 +00:00
emellor@leeni.uk.xensource.com b090f499e1 Remove /local when xenstored starts. This stops stale data affecting the
system immediately after reboot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-01 03:32:39 +00:00
emellor@leeni.uk.xensource.com ccb75f7da6 Work around the fact that the physinfo dom0 call is not implemented for IA64.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-01 03:26:47 +00:00
emellor@leeni.uk.xensource.com adb306ed29 Merged. 2005-12-01 03:21:45 +00:00
emellor@leeni.uk.xensource.com 5bc6f1ef3d Added a pages_to_kib function, which converts a page count into a number of
KiB.  This allows us to compute the correct amount to balloon out to support
a migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-01 03:19:40 +00:00
rread@ubuntu.eng.hq.xensource.com eedac8c05b Match rename of free_pages field to free_memory
Signed-off-by: Robert Read <rread@xensource.com>
2005-11-30 20:11:49 -07:00
stekloff@elm3b216.beaverton.ibm.com e6c3a4534a Remove config.py, it's autogenerated from config.py.in 2005-12-01 03:09:35 +00:00
emellor@leeni.uk.xensource.com effe56337b Merged. 2005-12-01 03:07:24 +00:00
iap10@freefall.cl.cam.ac.uk 8d68c69875 Add a new /proc/xen file called 'capabilities'. Currently, when read in dom0 it will return 'control_d', and be empty when read in a guest. This provides a convenient way to allow the root user to detect whether they're running in a guest or dom0, and e.g. gate whether to start xend. In future, when we add more fine grained capabilities we will add other details into this file.
Signed-off-by: ian@xensource.com
2005-12-01 02:43:04 +01:00
iap10@freefall.cl.cam.ac.uk 33ea7cb0ee Improve the tls warning message to mention that the best soloution is to install a 'xen-friendly' glibc.
Signed-off-by: ian@xensource.com
2005-12-01 02:36:46 +01:00
emellor@leeni.uk.xensource.com f814d1f288 Merged. 2005-11-30 19:55:08 +00:00
emellor@leeni.uk.xensource.com bf5ca2a1fd Added xm rename command. Improve the argument checking and error reporting. 2005-11-30 19:54:28 +00:00
emellor@leeni.uk.xensource.com a0c858f6bf Miscellaneous tidying up, no semantic changes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 19:48:54 +00:00
emellor@leeni.uk.xensource.com 3fba743862 Fix test following uuid format change in changeset 8089.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 19:48:21 +00:00
emellor@leeni.uk.xensource.com 57daa6655d Move the relocate.setupRelocation code into XendDomain, removing the mutual
dependency between those two classes.

Split the XendDomain constructor into two pieces so that XendDomainInfo can
call XendDomain.instance even during the initial startup of XendDomain.

These two together mean that there is no need for the horrendous hack using
XendRoot.get_component to pass the singleton instance of XendDomain around.
Both XendRoot.get_component and XendRoot.add_component can go.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 19:26:32 +00:00
emellor@leeni.uk.xensource.com fd1b54b4d1 Match rename of xm info field from memory to total_memory.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 19:25:35 +00:00
emellor@leeni.uk.xensource.com 667035011d Fix the reporting when this test fails (the eyecatcher variables would not be
created if the domain creation actually succeeded).  Use total_memory not
free_memory to determine how big to make the domain -- when ballooning down of
dom0 works properly, creating a domain larger than free_memory is possible.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 18:55:09 +00:00
emellor@leeni.uk.xensource.com f0309906f0 Don't refuse to clean up after a domain death when the buffer is not empty. If
the domain has gone away, then no-one can attach to the pty because Xend will
have cleaned up the entries in the store, so the pty will never become ready to
write.  The buffer will never get emptied, so cleanup will never occur. This
leaks ptys, file descriptors, and memory.  Simply throw those data away instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 18:48:27 +00:00
emellor@leeni.uk.xensource.com fa45226f84 Move the translation from pages to MiB out of XendNode and into the xc layer.
xc has access to the page size for the platform and the Python layer does not,
so there was a hardcoded "/ 256" in there.

Rename the "memory" physinfo parameter to "total_memory", to match the usage
elsewhere.

Tidy the code generating the SXP for xm info.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 18:43:00 +00:00
emellor@leeni.uk.xensource.com 9d72feba41 Cope with longs being passed to xstransact.write.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 18:38:48 +00:00
emellor@leeni.uk.xensource.com df2ba9e15b Added the errno to the messages printed with the ERR macro. Tidy the use of
this macro where newlines have been appended -- the macro does this itself so
there is no need to add another one.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 18:38:14 +00:00
kaf24@firebug.cl.cam.ac.uk ba3f55e57a GNTTABOP_map_grant_ref returns error status and handle as
separate fields. Update callers for new interface. Also
use int16_t as standard error code type on all public
interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 17:24:27 +01:00
kaf24@firebug.cl.cam.ac.uk b2de462a06 Public interface cleanups. Widen some fields in public
interface defintions for future extensibility. In particular,
grant references are now 32 bits and this has some knock-on
effects on split-driver interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 16:03:05 +01:00
kaf24@firebug.cl.cam.ac.uk 4e92c9cd0f Remove some vmx header files from Xen public interfaces.
They are not public.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 12:51:24 +01:00
dan@guaranine.beaverton.ibm.com c5924cf272 Some tweaks to the restore and migrate tests to expose the consoles of the
restored DomUs, since they currently Oops on x86_64.
2005-11-30 11:44:19 +00:00
dan@caffeine.beaverton.ibm.com d4c5f90859 Remove useless test 05_create_noroot_noram 2005-11-30 11:42:07 +00:00
dan@guaranine.beaverton.ibm.com aa32296af8 Enable console debug dumping so that we submit the oops generated by
network-detach to the reporting site.
2005-11-30 11:41:33 +00:00
kaf24@firebug.cl.cam.ac.uk c235fe27ec Fix serial pty creation in qemu-dm. Set raw attributes to
avoid weird buffering behaviour and obtain the pty name
via ptsname().

Signed-off-by: Ping Yu <ping.y.yu@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 12:32:16 +01:00
kaf24@firebug.cl.cam.ac.uk a5b0f465c5 We need to do sync when mov_to_cr3 to a value already shadowed.
The L2 page and already shadowed L1 page may be out of sync.
This fixes the problems of segmentation faults and strange prints
when booting Redhat FC3 and make kernel in FC3 in VMX domain.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-30 12:16:35 +01:00
kaf24@firebug.cl.cam.ac.uk c52334688d Add ATA-over-Ethernet as a module to the default 32-bit -xen config
(it is already included in the default 64-bit -xen config).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 12:13:53 +01:00
kaf24@firebug.cl.cam.ac.uk effc516f0d domain_pause duplicates the code from vcpu_pause. Eliminate the
duplicate code and make domain_pause a mirror of the existing
domain_unpause.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2005-11-30 12:10:34 +01:00
kaf24@firebug.cl.cam.ac.uk 4b3fd3a9f3 Removes the carriage returns from some of the vtpm
source files that were edited in windows at some point.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2005-11-30 12:07:28 +01:00
kaf24@firebug.cl.cam.ac.uk af9e4ad732 writable_pl1e in shadow mode is a machine address, so
is type physaddr_t, not unsigned long.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 11:36:57 +01:00
smh22@firebug.cl.cam.ac.uk bb6d2f8575 Disable some over-zealous sanity checking for now (can cause major problems
with live migration to localhost). A proper fix will follow. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 17:59:03 +01:00
smh22@firebug.cl.cam.ac.uk bf4c562218 Fix typo.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 16:03:06 +01:00
emellor@leeni.uk.xensource.com 0c63b57930 Tidy and comment use of canonicalise_mode, et al.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 15:01:47 +00:00
emellor@leeni.uk.xensource.com 5c9e232d3d Merged. 2005-11-29 15:00:27 +00:00
emellor@leeni.uk.xensource.com e01408a262 Increase device timeout to 10 seconds, as restarting a DHCP server takes a few
seconds, so we need to allow for that.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 15:00:01 +00:00
smh22@firebug.cl.cam.ac.uk 79d1eef3ba Avoid audit code during live migrate on 32bit since it's not required.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 15:57:42 +01:00
emellor@leeni.uk.xensource.com 1f2b7910d7 Support facilities for the new DHCP support.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 14:57:33 +00:00
emellor@leeni.uk.xensource.com feea83809d Added trap for ERR, to get better response from the scripts when they are really
broken, and add do_or_die command.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 14:56:54 +00:00
emellor@leeni.uk.xensource.com 2832dba652 Replace grep >&/dev/null with grep -q.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 14:56:16 +00:00
emellor@leeni.uk.xensource.com 5941ac94f2 Added DHCP server support, configured by a dhcp=yes parameter. This will write
the appropriate entries into dom0's DHCP server configuration file, allowing
that server to provide info for the guest when it starts.

If an IP address is not configured for vif-nat, invent one using the domain
ID and vif ID.

Fix the vif-nat script.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 14:55:48 +00:00
smh22@firebug.cl.cam.ac.uk 98a54f8733 Tidy up audit code for PAE plus avoid its use during live migrate where
it is not strictly required. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 15:54:44 +01:00
smh22@firebug.cl.cam.ac.uk 7086b5730b Cleanup backend block device logic under save/restore; this should
fix the issues some people have seen with segfaults in vbd_translate 
and/or user-space hangs. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 14:50:30 +01:00
kaf24@firebug.cl.cam.ac.uk 5da1debbbd Remove shadow32 dead code (it's never built for other than
x86_32).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-29 14:37:24 +01:00