Commit Graph
2771 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com 73f56f3e9b Added xen-hotplug.log to the files to collect.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 15:33:38 +00:00
emellor@leeni.uk.xensource.com d3079e2611 Initialise the connection ID when a domain is introduced. This (re)enables
the permission checking in xenstored.

Default the store permissions to read/write nobody (apart from the privileged
domain).  Create a /local node with these permissions, ready for inheriting by
children.  In Xend, create a /vm node with these permissions too, for the same
reason, and set the permissions on /local/domain/<domid> and each device
backend path to allow the guest domain to access these paths appropriately.

Added xstransact.{set_permissions,SetPermissions,mkdir,Mkdir,complete} as
support facilities.

This closes bug #290.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 01:34:39 +00:00
emellor@leeni.uk.xensource.com 3ceb6ce6b7 Fix error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 01:19:25 +00:00
emellor@leeni.uk.xensource.com 0172c7181e Use getopt.gnu_getopt rather than getopt.getopt, so that xm list VM --long is
parsed the same as xm list --long VM.  This is only in Python 2.3 -- for
Python 2.2 we keep the old getopt.getopt behaviour.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 01:04:09 +00:00
emellor@leeni.uk.xensource.com 242a8bbf4d Merged. 2005-12-02 01:00:01 +00:00
smh22@firebug.cl.cam.ac.uk 2b039aa937 Fix VBD recovery logic on SMP guests (+ a minor error reporting fix for save)
Signed-off-by: Steven Hand <steven@xensource.com>
2005-12-01 20:43:04 +01:00
kaf24@firebug.cl.cam.ac.uk 96428d33d9 Define explicit evtchn_port_t type (32 bits) and plumb up
to user space thru /dev/xen/evtchn.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-01 15:22:22 +01:00
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 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
smh22@firebug.cl.cam.ac.uk f96418ce18 Fix migrate.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-12-01 12:27:29 +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
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
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 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
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
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
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
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
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