aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xcutils
Commit message (Collapse)AuthorAgeFilesLines
...
* Move generation of public header hierarchy into the tools.Keir Fraser2008-01-261-1/+1
| | | | | | | This patch merges the two versions of public header generation currently used in the build into one. Signed-off-by: Bastian Blank <waldi@debian.org>
* Apply PREFIX directly to LIBDIR.Keir Fraser2008-01-221-1/+1
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* tools: LDFLAGS in link linesKeir Fraser2008-01-171-1/+1
| | | | | | | LDFLAGS is not honoured by a couple of link lines in tools/*, but should be. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* [HVM] Save/restore: don't leak shared-memory segments after HVM live-migrate.Tim Deegan2007-07-261-7/+18
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] Live-migration fixups after 15639:c585f993385cTim Deegan2007-07-241-1/+3
| | | | | | Use the same xenstore area for log-dirty commands as for save/continue, and avoid a race condition by acking the save command after the save. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Specify -fno-strict-aliasing in root build config file.Keir Fraser2007-07-071-1/+1
| | | | | | | | Fixes correctness issues with xenstored and gcc-4.2. Original patch by Charles Coffing <ccoffing@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Save/restore: merge xc_linux_save and xc_hvm_saveTim Deegan2007-04-111-6/+3
| | | | | | | | into xc_domain_save, like we did for xc_domain_restore Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com> --HG-- rename : tools/libxc/xc_linux_save.c => tools/libxc/xc_domain_save.c
* [HVM] Save/restore: merge xc_linux_restore and xc_hvm_restoreTim Deegan2007-04-051-8/+2
| | | | | | | | into one function (and one file) since they share a lot of code Signed-off-by: Tim Deegan <Tim.Deegan@øensource.com> --HG-- rename : tools/libxc/xc_linux_restore.c => tools/libxc/xc_domain_restore.c
* Clean up save/restore state record handling. No need for Python tokfraser@localhost.localdomain2007-04-041-12/+12
| | | | | | read out the 'p2m size' field. Also that field is not needed at all for HVM guests. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Lazy memory allocation during HVM restore. General cleanup andkfraser@localhost.localdomain2007-04-041-18/+18
| | | | | reduce gross assumptions about memory-map layout. Signed-off-by: Keir Fraser <keir@xensource.com>
* Some save/restore cleanups.Steven Hand2007-04-021-16/+17
| | | | Signed-off-by: Steven Hand <steven@xensource.com>
* [HVM] Save/restore: don't get guest size from "memory_static_min"Tim Deegan2007-03-291-2/+0
| | | | | | | since it doesn't mean that any more. This is a sticking-plaster to get HVM S/R working until the proper memory-map handling patch is ready. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM][QEMU] Save/restore: enable HVM live migrationTim Deegan2007-03-162-5/+130
| | | | | by getting page-dirtying bitmaps from qemu-dm as well as from xen. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Add suspend_cancel flag to linux elf notes.kfraser@localhost.localdomain2007-02-281-0/+3
| | | | Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
* [TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.Ian Campbell2007-02-271-1/+26
| | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* [LIBELF] Prefer PT_NOTE segments to SHT_NOTE sections for ELF notes.Ian Campbell2007-02-191-49/+89
| | | | | | | | | | | | | | | | | | | | | | | | It's always an error to try to use sections on an executable; the segments in the phdr are definitive. Unfortunately we cannot drop SHT_NOTE support completely due to a binutils bug which causes kernels to have the offset field of the PT_NOTE phdr set to zero: http://sourceware.org/bugzilla/show_bug.cgi?id=594 This bug is present in binutils 2.17 although some distros have backported the fix. Therefore we simply prefer a PT_NOTE segment if we find one otherwise we still use the SHT_NOTE section (and then the old __xen_guest section). Based on a patch from Jeremy Fitzhardinge. Also added XEN_ELFNOTE_HV_START_LOW to readnotes. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* [HVM] Save/restore: disentangle max_pfn from nr_pages.Tim Deegan2007-02-091-5/+5
| | | | | | | These have been used interchangeably, which is OK for PV domains but not for HVM. This fixes an over-allocation by 256MB when restoring HVM guests that have more than 4GB of RAM. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] Save/restore: don't try to set the console ring MFNTim Deegan2007-02-081-2/+3
| | | | | | in a HVM restore. In particular, don't print an uninitialized stack variable, which causes XMLRPC exceptions in xend. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [TOOLS] Fix typos which breaks readnotes transparent gunzipping ...Emmanuel Ackaouy2007-01-311-2/+2
| | | | | From: Gerd Hoffmann <kraxel@suse.de> Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
* Support transparant gunzipping in the readnotes utility.Emmanuel Ackaouy2007-01-251-2/+12
| | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/xcutils/readnotes.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
* libelf: use for readnotes utility.Emmanuel Ackaouy2007-01-251-232/+45
| | | | | | | | | This patch makes the readnotes utility use libelf. Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/xcutils/readnotes.c | 277 +++++++--------------------------------------- 1 file changed, 45 insertions(+), 232 deletions(-)
* [TOOLS] Avoid void* arithmetic when parsing elf notes.kfraser@localhost.localdomain2007-01-191-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] save restore: frame workTim Deegan2007-01-182-5/+19
| | | | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> frame work for HVM save restore in Control Panel
* Don't use $(LINK.o), as it doesn't pick up -m32/-m64 from $(CFLAGS).kfraser@localhost.localdomain2006-10-191-1/+1
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* [SOLARIS] A couple of simple compile fixes for tools/ on Solaris.kfraser@localhost.localdomain2006-10-171-2/+4
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Clean up duplication of 'install' macros in the Makefiles.kfraser@localhost.localdomain2006-10-171-4/+0
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* [TOOLS] Use ELFSIZE to pick the ELF structures to use in readnotes.cIan Campbell2006-08-251-17/+36
| | | | | | | We can remove Elf_Ehdr since it is only used for e_ident which is an unsigned char array. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* [TOOLS] Add a simple tool to display the Xen specific ELF notes.Ian Campbell2006-08-232-1/+308
| | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* [XEND] xc_save/xc_restore open the libxc interface independentlykfraser@localhost.localdomain2006-08-152-18/+33
| | | | | | | of their parent. This is required now that the interface fd is marked for close-on-exec. Signed-off-by: Keir Fraser <keir@xensource.com>
* build: Clean up use of .PHONYkaf24@firebug.cl.cam.ac.uk2006-04-101-0/+3
| | | | | | | | | | | | * Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
* Move 'debug' build option into the outermost Config.mk file.kaf24@firebug.cl.cam.ac.uk2006-03-091-1/+1
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Clean up the usage of CFLAGS. This is nice for packagers, who wouldkaf24@firebug.cl.cam.ac.uk2006-03-091-1/+1
| | | | | | | | like to control the base compilation flags from a central place. Signed-off-by: Charles Coffing <ccoffing@novell.com>
* Extend the xc_linux_save interface to take a callback function for handling theemellor@leeni.uk.xensource.com2006-01-101-1/+19
| | | | | | | | | suspend, and push the printf("suspend") out of xc_linux_save and into xc_save. This means that xc_linux_save can be used without the xc_save wrapper if desired. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Allow parallel 32- and 64-bit Xen installations. Move xc_save, xc_restore,emellor@ewan2005-10-111-1/+1
| | | | | | | | | | | | and xenconsole out of /usr/libexec/xen and into one of /usr/lib/xen/bin or /usr/lib64/xen/bin. Remove all the PATH hacking inside Xend, and rely upon the PATH being set correctly from outside. Added an auxbin module for handling the hacky stuff. Replace the few /usr/bin/python bang paths with /usr/bin/env python. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Update suspend/resume for new console code.cl349@firebug.cl.cam.ac.uk2005-09-031-7/+12
| | | | | | | | | - translate console mfn to pfn - unbind/bind console evtchn - recover console mfn on restore - trigger xenconsoled refresh after mfn is put in store Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Enable 'live' migration from a tools pov; prior to this the 'live' flag was shand@ubuntu.eng.hq.xensource.com2005-09-021-4/+7
| | | | | | | being ignored by xend/xc_linux_save. Signed-off-by: Steven Hand <steven@xensource.com>
* Cross-compilation fixes.kaf24@firebug.cl.cam.ac.uk2005-08-301-2/+0
| | | | | Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
* Break the building/save/restore code out into a separate library libxenguest.cl349@firebug.cl.cam.ac.uk2005-08-253-5/+7
| | | | | | | Also update the tools accordingly. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Rename libxc => libxenctrl and xc.h => xen/xenctrl.hcl349@firebug.cl.cam.ac.uk2005-08-243-3/+3
| | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk> --HG-- rename : tools/libxc/xc.h => tools/libxc/xenctrl.h
* Fix checkpointing - add save/restore support to the xenbus driver.cl349@firebug.cl.cam.ac.uk2005-08-021-4/+12
| | | | | | | | | | - Add xenbus driver suspend/resume functions - Change xenbus irq to not be shared - Translate store mfn in suspend record to pfn and back - Make tools re-introduce the domain to the store Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* bitkeeper revision 1.1534.1.1 (429399e0oJudIjoFsgWFxNKnCM7qTg)cl349@firebug.cl.cam.ac.uk2005-05-241-1/+1
| | | | | | | | | | | Nothing but vnet uses libxutil -- move it there. Makefile, xc.c, setup.py, configure, configure.in, Makefile.in: This doesn't use libxutil. Makefile, Makefile.vnet, Rules.mk: Move libxutil into vnet since it's only used there. Many files: mvdir
* bitkeeper revision 1.1527.1.3 (42936982HEfOXuPvsCgdi5IHEHax_Q)cl349@firebug.cl.cam.ac.uk2005-05-242-1/+30
|\ | | | | | | | | | | Don't need xc_save_OBJS with updated Makefile. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
| * bitkeeper revision 1.1527.2.1 (429368a2F0SR4yrzuHsrRucuwriYqA)cl349@firebug.cl.cam.ac.uk2005-05-242-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Execute xc_linux_save in a seperate process so that it can't crash xend. Also handle errors passed from xc_linux_save. xen_domain.c: Disable save in xfrd. xc_save.c: new file Makefile: Add xc_save. XendDomainInfo.py: Add suspended state and threading Condition with notification, allowing easy waiting for state changes. XendDomain.py: Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Set state to "suspended" when detecting a suspended domain. Fix reading output from subprocesses. Fix ValueError in xen_domain(). xc.c: Remove python binding for xc_linux_save. xc_linux_save.c: Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Also run xc_linux_save in a seperate process. xc_linux_restore.c: Flush output so that xend picks it up timely. Also disable debug output again. xc.h: Update xc_linux_save prototype and fix comments for xc_linux_{save,restore}. ignore: Add tools/xcutils/xc_save. xpopen.py: Exit with 127 if exec fails. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* | bitkeeper revision 1.1527.1.2 (4293468ayy5XU1yxu0QwnCQ83S5pbA)kaf24@firebug.cl.cam.ac.uk2005-05-241-11/+4
| | | | | | | | | | | | | | No more dependency of GNU Make 'eval' function, which is not present in older versions. Signed-off-by: Keir Fraser <keir@xensource.com>
* | bitkeeper revision 1.1527.1.1 (42933814hYUdPBrhJ2nEsS5J3nRP8Q)kaf24@firebug.cl.cam.ac.uk2005-05-241-5/+3
|/ | | | | | Another xcutil Makefile 'fix'. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1526 (4292f6fatFGrb_g2pL3e_YfSdZhjPA)kaf24@firebug.cl.cam.ac.uk2005-05-241-2/+1
| | | | | | Another xcutils build fix: libxc depends on libxutil. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1523.1.1 (4292f383Cc0iiNE6syBhzLa27UwM7w)cl349@firebug.cl.cam.ac.uk2005-05-241-2/+3
| | | | | | | Makefile: Fix library link on systems which don't have libxc installed (yet). Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* bitkeeper revision 1.1513.1.1 (42925a6aSZSwfyaVsNzV4psPmpZwZg)cl349@firebug.cl.cam.ac.uk2005-05-232-0/+92
Execute xc_linux_restore in a seperate process so that it can't crash xend. Also handle errors passed from xc_linux_restore and log info messages from xc_linux_restore. XendDomain.py: Popen xc_restore instead of calling xc_linux_restore directly. xc.c: Add pyxc_handle exporting the file descriptor to the control interface. Remove xc_linux_restore -- replaced by popen of xc_restore directly from python. xc_linux_restore.c: Enable debug output. xpopen.py: Add xpopen functionality: Optionally exclude a list of file descriptors from being closed, allowing access to those file descriptors from the command. Remove unused parts. xpopen.py, Makefile, xc_restore.c: new file Makefile: Add xcutils subdir. ignore: Add tools/xcutils/xc_restore. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>