aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Some cleanup in TPM-related files and implementation of functionality that kaf24@firebug.cl.cam.ac.uk2005-10-071-4/+2
| | | | | | | | got lost when switching to xenbus. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Re-enable the pygrub build and fix the build with olderkaf24@firebug.cl.cam.ac.uk2005-10-074-2/+19
| | | | | | | | | e2fsprogs (tested on RHEL4 with e2fsprogs-1.35 and rawhide with e2fsprogs-1.38) Signed-off-by: Jeremy Katz <katzj@redhat.com>
* Rationalise xenstore header files a little. xenstored.h,kaf24@firebug.cl.cam.ac.uk2005-10-078-127/+5
| | | | | | | | | | | which defines aspects of the 'wire' protocol between xs daemon and clients in user and kernel land, is now xs_wire.h and moved to xen's public/io directory. From there it is more easily accessible by kernels. Signed-off-by: Keir Fraser <keir@xensource.com>
* Change xs_read_watch interface to return a sized array (in userspace and inkaf24@firebug.cl.cam.ac.uk2005-10-077-24/+67
| | | | | | | | | | | kernel). Add index macros (XS_WATCH_*) for accessing the array to allow for future expansion. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add installation of the udev rules if appropriate. With a normal 'makekaf24@firebug.cl.cam.ac.uk2005-10-072-1/+26
| | | | | | | | | | | | | | | install', the udev rules will be installed if udev version is >= 059; otherwise, the hotplug rules get installed. When 'make dist' is done, we set a variable so that both hotplug and udev rules are installed into the dist tarball. install.sh then takes care of picking the proper rules. Also changes the hotplug check to look for a proper udev version Signed-off-by: Jeremy Katz <katzj@redhat.com>
* Merged.emellor@ewan2005-10-079-73/+92
|\
| * Add udev rules that map similar to the hotplug agent. Based off of whatkaf24@firebug.cl.cam.ac.uk2005-10-071-0/+4
| | | | | | | | | | | | | | | | | | Chris Bainbridge posted the end of last week but doing things as directly as possible. Signed-off-by: Jeremy Katz <katzj@redhat.com>
| * Move the block-phy and block-file handling into a commonkaf24@firebug.cl.cam.ac.uk2005-10-075-71/+85
| | | | | | | | | | | | | | | | block script that gets called by the hotplug agent. Signed-off-by: Jeremy Katz <katzj@redhat.com>
| * The hotplug agent sets the path now, but that's not as practical to dokaf24@firebug.cl.cam.ac.uk2005-10-073-2/+3
| | | | | | | | | | | | | | | | | | with udev rules. So instead, make sure that the path is set in the vif scripts themselves. Signed-off-by: Jeremy Katz <katzj@redhat.com>
* | Regig the construction of new domains so that restore and create can share theemellor@ewan2005-10-071-17/+11
|/ | | | | | | | construct method. This ensures that the domain will have any stale paths in the store removed on restore. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* merge.kaf24@firebug.cl.cam.ac.uk2005-10-071-5/+5
|\
| * Merge.emellor@ewan2005-10-073-7/+9
| |\
| * | Rename the source domain on migration, regardless of the live flag. This fixesemellor@ewan2005-10-071-5/+5
| | | | | | | | | | | | | | | | | | | | | localhost non-live migration, and bug #297. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | | This patch copies the NAT scripts in tools/examples/ tokaf24@firebug.cl.cam.ac.uk2005-10-071-0/+1
| |/ |/| | | | | | | | | | | | | /etc/xen/scripts/. Signed-off-by: Jon Mason <jdmason@us.ibm.com>
* | Big simplification of the Xen event-channel interface.kaf24@firebug.cl.cam.ac.uk2005-10-073-7/+9
|/ | | | | | | | EVTCHNOP_bind_interdomain in particular is much simpler. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix conflicting merge.emellor@ewan2005-10-071-1/+1
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merged.emellor@ewan2005-10-0618-540/+142
|\
| * User tools send evtchn notifications via /dev/xen/evtchnkaf24@firebug.cl.cam.ac.uk2005-10-0612-332/+48
| | | | | | | | | | | | | | | | rather than using hypercall directly. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Change how event channels are allocated and used by the controlkaf24@firebug.cl.cam.ac.uk2005-10-0610-211/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | tools. /dev/xen/evtchn is now used by daemons to connect to remote domains: the advantage is that the local ports are garbage collected automatically if the daemon dies. xen no longer constructs end-to-end event-channel port pairs -- it allocates an unbound port in new domU and writes that port to xenstore. It is then picked up by teh appropriate daemon which does interdomain bind via /dev/xen/evtchn. Signed-off-by: Keir Fraser <keir@xensource.com>
* | Remove xm commands block-refresh and vbd-refresh, as these are unsupported.emellor@ewan2005-10-067-51/+51
|/ | | | | | | | | | | | Allow xm block-detach to take a device name as well as a device ID. This closes bug #285 and fixes xm-test's 01_block-destroy_btblock_pos.py and 02_block-destroy_rtblock_pos.py. Rename and reconnect XendDomainInfo.configureDevice to reconfigureDevice. There is nothing using this at the moment, mind you. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added Zope's test.py, and a unit test to sxp. This test itself isn't veryemellor@ewan2005-10-067-1/+1180
| | | | | | | | exciting, but it's there to encourage the creation of more interesting ones. A test target has been added to the main Makefile, and the one in tools/python. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merged.emellor@ewan2005-10-066-50/+64
|\
| * Ensure that all fields of evtchn_op_t are initialised whenkaf24@firebug.cl.cam.ac.uk2005-10-061-31/+26
| | | | | | | | | | | | | | | | | | | | | | making an event_channel_op hypercall. Stefan Berger gets the credit for diagnosing nasty domU driver problems that were a result of garbage fields. Signed-off-by: Stefan Berger <stefanb@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * mixup in vcpu-enable and vcpu-disable help stringvh249@kneesaa.uk.xensource.com2005-10-051-2/+2
| | | | | | | | | | Signed-off-by: Vincent Hanquez <vincent@xensource.com>
| * Activate suspending/resuming of the TPM interface and addkaf24@firebug.cl.cam.ac.uk2005-10-051-1/+16
| | | | | | | | | | | | | | | | some missing code to tpmif.py. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| * Gentoo compatible stuff has to be done *before* the set -e. You could also dokaf24@firebug.cl.cam.ac.uk2005-10-051-11/+11
| | | | | | | | | | | | | | | | | | the which in the if with a combination of ! and || after the set -e but I think it's cleaner to just do it before the set -e. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * EVTCHNOP_alloc_unbound can allocate a port in an arbitrarykaf24@firebug.cl.cam.ac.uk2005-10-053-6/+10
| | | | | | | | | | | | | | | | domain (only if the caller is sufficiently privileged). Signed-off-by: Keir Fraser <keir@xensource.com>
* | Rename all dying domains to be prefixed with Zombie. This allows a new domainemellor@ewan2005-10-061-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to be created with the same name, fixing the race condition inside XendDomain that caused bug #278. Move the state_set(TERMINATED) call onto the end of cleanupDomain rather than destroyDomain, so that this flag is set when XendDomain cleans up a domain that was killed without going through Xend. Remove is_terminated, as this check is no longer necessary, since we are using Zombie prefixes instead. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Reduce the log level for the 'cannot recreate information for dying domain'emellor@ewan2005-10-061-6/+11
| | | | | | | | | | | | | | message for all but the first refresh when Xend starts. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Issue diagnostic if we find dying domains on Xend restart, because we will notemellor@ewan2005-10-061-20/+25
| | | | | | | | | | | | | | | | | | | | be able to show them any longer, as the paths in the store have gone. Don't call cleanupVm when a domain dies, as localhost-migrating VMs will be blown away by this (there is actually a race between the saving process and the resuming process). This fixes bug #276. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Raise an exception if an error appears on the pipes to our children, and makeemellor@ewan2005-10-061-27/+39
|/ | | | | | | | | sure that the child's pipes are closed even under that exception. Move the handling of POLLHUP to the end of the loop, so that we guarantee to read any remaining data from the child if POLLHUP and POLLIN appear at the same time. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix the handling of VCPUs, specifically wrt the broken VCPU hotplugging, bugemellor@ewan2005-10-051-44/+65
| | | | | | | | | | | | | #280. The cpu/<id>/availability paths had moved into /vm, but that is not easily accessible by the hotplugging driver, so I have created a /vm entry called vcpu_avail, so that the setting migrates along with the domain, and moved the cpu/<id> ones back to /local/domain. Don't try and destroy the domain twice if it fails within construct. This wasn't harming anything, but there's no need. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Change boolean config option parsing to allow True and Y and similar usefulemellor@ewan2005-10-051-3/+4
| | | | | | | things. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Send event-channel notification from console daemonkaf24@firebug.cl.cam.ac.uk2005-10-051-0/+6
| | | | | | | | | | to guest console driver when the output ring is emptied. This can be used to kick transmission of more characters without needing to poll. Signed-off-by: Keir Fraser <keir@xensource.com>
* Merge (with trepidation).emellor@ewan2005-10-052-2/+13
|\
| * Add Gentoo handling to network-bridge. Based on patcheskaf24@firebug.cl.cam.ac.uk2005-10-051-0/+11
| | | | | | | | | | from Jon Mason and Anthony Liguori.
| * Currently, the scripts in /etc/xen/scripts won't get overwritten if theykaf24@firebug.cl.cam.ac.uk2005-10-051-2/+2
| | | | | | | | | | | | | | | | | | exist which means that changes can easily not get updated. This makes it so the scripts always get installed. Signed-off-by: Jeremy Katz <katzj@redhat.com>
* | Recover from name uniqueness violation by renaming. Fixes bug #277.emellor@ewan2005-10-052-6/+24
|/ | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Removed the EventServer, replacing the events fired with simple loggingemellor@ewan2005-10-057-337/+25
| | | | | | | | | | | messages. This closes bug #281. Removed references to XendRoot where these have become unnecessary either through the work above or just through time. Renamed some parameters in event.py, to mark them as unused. Fix a call to a base class constructor there too. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* imported patch /home/emellor/block_detach.patchemellor@ewan2005-10-052-2/+14
|
* Explicitly close files on save and restore. Rename all local variables ↵emellor@ewan2005-10-051-57/+46
| | | | | | | named id or slice so as not to clash with the builtins. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Explicitly close files.emellor@ewan2005-10-041-9/+16
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Clean up domains if creation/restoration fails.emellor@ewan2005-10-041-10/+24
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix typo.emellor@ewan2005-10-041-1/+1
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merge the child-process handling of the save and restore functions into oneemellor@ewan2005-10-041-77/+73
| | | | | | | | | | | forkHelper function. Change the handling of file descriptor closure to wait until both stdout and stderr descriptors have closed. This may fix the intermittent bug seen whereby xm restore; xend restart leaves the domain in a misconfigured state, presumably because IntroduceDomain is not being called by XendCheckpoint.restore. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Removed unused xen_domain method, and unused imports. Comment those methodsemellor@ewan2005-10-041-36/+16
| | | | | | | | | | expecting domains_lock protection. Remove notifications through eserver for _add_domain and _delete_domain, and remove the notify parameters therein. Tidy the exception handling in domain_restore_fd. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix call to state_set inside preserve (was erroneously calling set_state).emellor@ewan2005-10-041-16/+16
| | | | | | | | Tidy exception handling, and rename local 'channel' variable which was clashing with the identical global name. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix xm restore broken by missing return statement.emellor@ewan2005-10-041-1/+1
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Clean up sched_op() hypercall interface. One particularkaf24@firebug.cl.cam.ac.uk2005-10-044-5/+7
| | | | | | | | | | change to watch out for is that the suspend record, on save/restore, is now passed via register %edx not %esi (both i386 and x86/64). Signed-off-by: Keir Fraser <keir@xensource.com>
* Allow EVTCHNOP_bind_{ipi,virq} to specify the vcpu tokaf24@firebug.cl.cam.ac.uk2005-10-041-1/+2
| | | | | | | | | bind to. Previously the alloacted port was implicitly bound to the calling vcpu. Signed-off-by: Keir Fraser <keir@xensource.com>