Commit Graph
8139 Commits
Author SHA1 Message Date
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
kaf24@firebug.cl.cam.ac.uk 9cb8877a0e Fix vmx guest issue of allowing accessing supervisor page
from user level program.
In shadow fault, we need to check U/S bit in error code.
It is just a fix for shadow32.c, for x86_64 code and
public code, it is already handled.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-29 11:48:33 +01:00
kaf24@firebug.cl.cam.ac.uk 13f2417979 Small fix for shadow mode: fix a p.t. limit check.
Signed-off-by:Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-29 11:42:21 +01:00
kaf24@firebug.cl.cam.ac.uk cd197e9a16 Clean up a previous qemu workaround where we use
/etc/xen/qemu-vgaram-bin as vgabios.

Signed-off-by: Ke Yu <ke.yu@intel.com>
2005-11-29 11:40:16 +01:00
kaf24@firebug.cl.cam.ac.uk e9b54a136b Fix a race condition for multi-thread qemu dma, where vmx linux guests
show warning "dma interrupt lost" and dma becomes very slow.

root cause: In the time between set ide irq and set dma status, if guest
receive the irq and query the status, it will find the status is not
ready and therefore treat it as pseudo interrupt. Change the order of
set irq and set dma status fixes this issue.

Signed-off-by: Ke Yu <ke.yu@intel.com>
2005-11-29 11:38:53 +01:00
pl@us.ibm.com 0cf194e2b0 Fix minor traceback in xen-bugtool when send fails 2005-11-29 01:00:10 +00:00
rread@ubuntu.eng.hq.xensource.com b8ae09f01c The device sharing check races when more than one file backed vbd is
configured. Both of the files pick the same free loop device in the for
loop, and then one fails to losetup.  This patch will now retry if
losetup fails until it succeeds or no more devices are available.

Signed-off-by: Robert Read <robert@xensource.com>
2005-11-28 15:34:00 -07:00
rread@ubuntu.eng.hq.xensource.com 7376dc0204 Make psmouse module builtin.
Signed-off-by: Robert Read <robert@xensource.com>
2005-11-28 12:16:27 -07:00
kaf24@firebug.cl.cam.ac.uk 9bd97f28fa Bundle vcpu_time and vcpu_info structures together into a single
structure that is 64 bytes on x86. This ensures that indexing into
the array is fast (power-of-two size) and that accesses are cache
friendly (cache line size is usually 32 or 64 bytes).

Rename vcpu_data to vcpu_info, vcpu_time to vcpu_info.time.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-28 19:48:54 +01:00
dan@guaranine.beaverton.ibm.com 491738a4be Fix isConsoleDead() to actually run a command on the DomU, since a dead
console is no longer exposed when attempting to attach.  This makes test
04_memset_smallmem again able to detect console death and restart
xenconsoled so that the rest of the tests can run on x86_64.
2005-11-28 18:22:02 +00:00
emellor@leeni.uk.xensource.com e358be32dd Merged. 2005-11-28 17:22:02 +00:00
cl349@firebug.cl.cam.ac.uk 016ef02e87 Move mk-symlinks target into tools/Rules.mk.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-11-28 18:07:22 +01:00