aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
Commit message (Collapse)AuthorAgeFilesLines
...
| * libxc: Domain builder must align initial virtual mapping to 4MBkfraser@localhost.localdomain2007-02-022-1/+6
| | | | | | | | | | | | boundaries. From: Gerd Hoffmann <kraxel@suse.de> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [TOOLS] Remove a debug message which is spamming the logs during liveIan Campbell2007-02-011-2/+0
| | | | | | | | | | | | migration. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [HVM] Save/restore: clean up the new hypercall interfaceTim Deegan2007-01-314-49/+60
| | | | | | | | | | | | | | Pass a buffer and size through instead of fixed-size structure. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
| * [HVM] Save/restore: save shared-info pfn and re-map it on restoreTim Deegan2007-01-312-9/+23
| | | | | | | | | | | | | | In the short term this allows us to save the same domain more than once. Longer-term some more careful shared-info management will be needed. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
| * new domain builder fix to boot domU on IA64.kaf24@localhost.localdomain2007-01-302-5/+56
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.kaf24@localhost.localdomain2007-01-301-2/+2
| | | | | | | | Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
| * Replace mlock() calls with lock_pages().kaf24@localhost.localdomain2007-01-261-9/+9
| | | | | | | | Signed-off-by: Russell Blaine <russell.blaine@sun.com>
| * 32-on-64: New set_address_size domctl for switching to compat mode.kaf24@localhost.localdomain2007-01-261-12/+8
| | | | | | | | | | From: Gerd Hoffmann <kraxel@suse.de> Signed-off-by: Keir Fraser <keir@xensource.com>
| * libxc domain builder rewrite, linux builderEmmanuel Ackaouy2007-01-252-2/+129
| | | | | | | | | | | | | | | | | | | | use new domain builder for the linux (aka generic elf) loader. Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/libxc/Makefile | 7 +- tools/libxc/xc_dom_compat_linux.c | 124 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+), 2 deletions(-)
| * libxc domain builder rewrite, core bits.Emmanuel Ackaouy2007-01-259-0/+2917
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/libxc/Makefile | 14 tools/libxc/xc_dom.h | 261 +++++++++++++ tools/libxc/xc_dom_binloader.c | 294 +++++++++++++++ tools/libxc/xc_dom_boot.c | 515 +++++++++++++++++++++++++++ tools/libxc/xc_dom_core.c | 773 +++++++++++++++++++++++++++++++++++++++++ tools/libxc/xc_dom_elfloader.c | 283 +++++++++++++++ tools/libxc/xc_dom_ia64.c | 118 ++++++ tools/libxc/xc_dom_powerpc64.c | 100 +++++ tools/libxc/xc_dom_x86.c | 559 +++++++++++++++++++++++++++++ 9 files changed, 2917 insertions(+)
| * libxc header fixups.Emmanuel Ackaouy2007-01-251-49/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make some arch-specific #defines for page table handling available unconditionally, add a suffix to avoid name clashes. The versions without suffix are defined depending on the architecture like they used to, so code using them continues to work. Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/libxc/xg_private.h | 114 +++++++++++++++++++++++++++-------------------- 1 file changed, 67 insertions(+), 47 deletions(-)
| * Add more xc_error_code values.Emmanuel Ackaouy2007-01-252-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | XC_INVALID_PARAM such as asking for features unsupported by either xen or guest kernel. XC_OUT_OF_MEMORY no comment ;) Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/libxc/xc_private.c | 4 ++++ tools/libxc/xenctrl.h | 2 ++ 2 files changed, 6 insertions(+)
| * libelf: use for hvm builder.Emmanuel Ackaouy2007-01-251-156/+66
| | | | | | | | | | | | | | | | | | | | This patch switches over the hvm domain builder to libelf (for loading hvmloader). Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/libxc/xc_hvm_build.c | 220 +++++++++++++-------------------------------- 1 file changed, 65 insertions(+), 155 deletions(-)
| * libelf: add to libxcEmmanuel Ackaouy2007-01-251-0/+15
| | | | | | | | | | | | | | | | | | | | This patch makes libelf available to the tools, by symlinking the source files and compiling them into libxc. Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/libxc/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
| * add libelf: an ELF binary parser library.Emmanuel Ackaouy2007-01-251-524/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a library with a small collection of helper functions to parse and load elf binaries. The library handles endianess and elfsize at runtime. The patch also shuffles around the include files a bit. Now there is *one* include file holding all the elf structures (xen/include/public/elfstructs.h) which is included by everyone who needs them. It's dead code with this patch only, putting the code into use happens in followup patches. Signed-off-by: Gerd Hoffmann <kraxel@suse.de> --- tools/libxc/xc_elf.h | 525 ----------------------------------- xen/arch/x86/boot/mkelf32.c | 2 xen/common/Makefile | 2 xen/common/libelf/Makefile | 4 xen/common/libelf/README | 1 xen/common/libelf/libelf-dominfo.c | 420 ++++++++++++++++++++++++++++ xen/common/libelf/libelf-loader.c | 156 ++++++++++ xen/common/libelf/libelf-private.h | 51 +++ xen/common/libelf/libelf-relocate.c | 345 +++++++++++++++++++++++ xen/common/libelf/libelf-tools.c | 225 +++++++++++++++ xen/include/public/elfstructs.h | 527 ++++++++++++++++++++++++++++++++++++ xen/include/public/libelf.h | 238 ++++++++++++++++ xen/include/xen/elf.h | 490 --------------------------------- 13 files changed, 1972 insertions(+), 1014 deletions(-)
| * During suspend, return immediately with a failure if the domain willkfraser@localhost.localdomain2007-01-251-3/+24
| | | | | | | | | | | | never suspend, instead of pointlessly retrying. Signed-off-by: John Levon <john.levon@sun.com>
| * Make domctl/sysctl interfaces 32-/64-bit invariant.kfraser@localhost.localdomain2007-01-249-39/+33
| | | | | | | | | | | | | | This kills off a fair amount of unpleasant CONFIG_COMPAT shimming and avoids needing to keep the compat paths in sync as these interfaces continue to develop. Signed-off-by: Keir Fraser <keir@xensource.com>
| * libxenguest: Fix xc_resume() build for non-x86.kfraser@localhost.localdomain2007-01-241-5/+6
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Close save-after-restore race.john.levon@sun.com2007-01-231-7/+37
| | | | | | | | | | | | | | | | Make xc_linux_save() wait for the frame_list_list MFN to be updated by the domain before trying to use it. Make Linux set the top-level MFN /after/ updating the other MFN lists. Signed-off-by: John Levon <john.levon@sun.com>
| * [LIBXC] Provide weak stub default implementations of xc_hvm_save() andkfraser@localhost.localdomain2007-01-231-6/+27
| | | | | | | | | | xc_hvm_restore() for architectures with no full implementation. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Implement clean return from save/restore failure (so that originalkfraser@localhost.localdomain2007-01-222-19/+146
| | | | | | | | | | domain can continue execution). Signed-off-by: Andrei Petrov <andrei.petrov@xensource.com>
| * Fix byte-to-long bitmap conversions.kaf24@localhost.localdomain2007-01-211-2/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LIBXC] Fix non-x86 build.kaf24@localhost.localdomain2007-01-211-7/+24
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LIBXC] Refactor xc_domain_resume() into its own source file.kfraser@localhost.localdomain2007-01-194-17/+42
| | | | | | | | | | | | | | | | | | The idea is that this file is where we will have two implementations of 'suspend cancellation': one which the guest is aware of (and is faster) and the other which does more work to avoid requiring guest modifications. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [XEN] Support VCPU reset via DOMCTL_setvcpucontext.kfraser@localhost.localdomain2007-01-191-2/+3
| | | | | | | | Signed-off-by: Andrei Petrov <andrei.petrov@xensource.com>
| * [XEN] New event-channel reset operation.kfraser@localhost.localdomain2007-01-192-1/+11
| | | | | | | | | | | | | | Plumbed through libxenctrl to python. From: Andrei Petrov <andrei.petrov@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * Add resumedomain domctl to resume a domain after checkpoint.kfraser@localhost.localdomain2007-01-192-0/+22
| | | | | | | | | | | | Export resumedomain domctl to libxc, xend. Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
| * [TOOLS] Avoid void* arithmetic when parsing elf notes.kfraser@localhost.localdomain2007-01-191-5/+5
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LIBXC] Handle trace-buffer cpumap endianness.kfraser@localhost.localdomain2007-01-191-4/+8
| | | | | | | | | | Original patch from Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LIBXC] Convert between byte-based and 64-bit bitmap arrays. Use thiskfraser@localhost.localdomain2007-01-193-10/+47
| | | | | | | | | | | | for conversion of the domctl_cpumap. Original patch from Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * Merge with xen-ia64-unstable.hgkfraser@localhost.localdomain2007-01-186-1/+1176
| |\
| | * [HVM] save restore: guest memory handlingTim Deegan2007-01-182-2/+1007
| | | | | | | | | | | | | | | | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> add support for save/restore HVM guest memory
| | * [HVM] save restore: new hyper-callTim Deegan2007-01-182-0/+68
| | | | | | | | | | | | | | | | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> add a pair of hyper-call for hvm guest context
| | * [HVM] save restore: frame workTim Deegan2007-01-184-1/+103
| | | | | | | | | | | | | | | | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> frame work for HVM save restore in Control Panel
| * | merge with xen-unstable.hgawilliam@xenbuild2.aw2007-01-173-67/+133
| |\|
| | * Enable lazy (on-demand) allocation of memory to a guest being restored; thisSteven Hand2007-01-161-59/+132
| | | | | | | | | | | | | | | | | | | | | | | | means that ballooned down domains only require as much memory as is currently being used (rather than their max) when being restored from save, or when being migrated. Signed-off-by: Steven Hand <steven@xensource.com>
| | * Remove bogus sanity check from xc_linux_save.Steven Hand2007-01-151-7/+0
| | | | | | | | | | | | | | | | | | | | | (a guest from another host (or an earlier time) can quite validly have a max_mfn bigger the current max on this host) Signed-off-by: Steven Hand <steven@xensource.com>
| | * Comment fix.Steven Hand2007-01-151-1/+1
| | | | | | | | | | | | Signed-off-by: Steven Hand <steven@xensource.com>
| * | merge with xen-unstable.hgawilliam@xenbuild2.aw2007-01-152-15/+15
| |\|
| | * Fix xc_ptrace() for PAE.kfraser@localhost.localdomain2007-01-121-9/+7
| | | | | | | | | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
| | * Use strstr() to look for "bimodal" string in ELF notes, to allow guests to usejohn.levon@sun.com2007-01-081-6/+8
| | | | | | | | | | | | | | | | | | "yes,bimodal", so they are correctly identified as PAE on older hypervisors. Signed-off-by: John Levon <john.levon@sun.com>
| * | merge with xen-unstable.hgawilliam@xenbuild2.aw2007-01-108-92/+113
| |\|
| | * [HVM] Ignore evtchn_upcall_mask and initialise to zero.kfraser@localhost.localdomain2007-01-091-2/+1
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| | * Support for save and restore of compatibility guestsEmmanuel Ackaouy2007-01-052-7/+29
| | | | | | | | | | | | Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
| | * Introduce _DOMF_compat and infrastructure as well as several conditionalsEmmanuel Ackaouy2007-01-051-0/+2
| | | | | | | | | | | | | | | | | | | | | dealing with operations that need to distinguish between native and compatibility mode guests. Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * | [IA64] Clean up VTi memory initialization logicawilliam@xenbuild2.aw2007-01-101-26/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes the logic in setup_guest() more clear. domain_translate_gpfn_list() is now gone, so we can make memory initializtion code simple. Xend passes memory size which is a sum of normal memory size and GFW memory to QEMU and Libxc. This patch fixes this issue. Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
* | | [POWERPC][XEN] Add information into flat devtree needed to create a ↵Hollis Blanchard2007-02-063-64/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | start_info_t structure in linux. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : %F2%18u%E3%DC%0B%E8%C4%E0%DE%996%97%3C%B3UX%F6%C4%BD
* | | [XEND][POWERPC] move ppc memory allocation to libxc. Sync XendDomainInfo.py ↵Jimi Xenidis2007-01-211-0/+68
| | | | | | | | | | | | | | | | | | | | | with xen-unstable.hg. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
* | | [XEND][POWERPC] Remove FlatDeviceTree.py, eliminate devtree from prose builder.Jimi Xenidis2007-01-214-156/+10
| | | | | | | | | | | | | | | Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
* | | [XEND][POWERPC] Move flat device tree construction from python to libxc for ↵Jimi Xenidis2007-01-215-107/+691
| | | | | | | | | | | | | | | | | | | | | xc_linux_build(). Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>