Commit Graph
8164 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com d3be5880f8 Added serialisation facilities. Udev is supposed to serialise events, but sadly
the older hotplug infrastructure does not, so we must be able to serialise the
block-sharing checks (etc) ourselves.

Redirect stderr to /var/log/xen-hotplug.log, for better debugging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 15:38:22 +00:00
emellor@leeni.uk.xensource.com 13b9e071a3 Remove the watch on the /vm/<uuid> path when rebooting or migrating. We don't
want to end up with multiple watches on the same path, otherwise we get a
watch event storm after many such reboots or migrates.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 15:36:39 +00:00
emellor@leeni.uk.xensource.com 6d3895e243 Don't log every time around the big transaction writing the device details.
This transaction may be starved for a short while, and logging inside the while
loop won't help!

Use new xstransact.complete to tidy up one other transaction.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 15:35:22 +00:00
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 da533ceb07 Implement generic notiication hold-off in the ring macros
(ring.h). Move net and blk split drivers to use it.
blktap probably needs some work. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-01 20:23:07 +01:00
vhanquez@kneesa.uk.xensource.com ac26039ed7 Prevent BVT scheduler to be set with a too low ctx_allow by applying
a 10 microsecs low limit to the user parameter.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-12-01 13:13:15 +00: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 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
vhanquez@kneesa.uk.xensource.com 23f0fe07cd fix the console when only XEN_PHYSDEV_ACCESS is Yes.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-12-01 07:31:50 +00: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
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