aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xg_private.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* HVM firmware passthrough control tools supportRoss Philipson2013-01-101-1/+1
| | | | | | | | | | | | Xen control tools support for loading the firmware passthrough blocks during domain construction. SMBIOS and ACPI blocks are passed in using the new xc_hvm_build_args structure. Each block is read and loaded into the new domain address space behind the HVMLOADER image. The base address for the two blocks is returned as an out parameter to the caller via the args structure. Signed-off-by: Ross Philipson <ross.philipson@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
* libxc: pass arguments to xc_hvm_build() in a structureDavid Vrabel2012-03-011-2/+1
| | | | | | | | | | | | | | | To allow new parameters to be added to the xc_hvm_build*() family of functions, pass them in a structure. Make the other variants fill in the structure and call xc_hvm_build() (except for xc_hvm_build_mem() which had no users and is removed). The units of the mem_size and mem_target arguments are in bytes (not MiB like the old functions). Signed-off-by: David Vrabel <david.vrabel@citrix.com> Acked-by: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* # HG changeset patchIan Campbell2010-08-241-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | # User Ian Campbell <ian.campbell@citrix.com> # Date 1282671421 -3600 # Node ID d1dd29a470ef1b9d2c77478a123326036dfe90bb # Parent d7a4adad9c328decbd384d87b23001aea8951b86 tools/libxc, tools/libelf: Relicense under LGPL v2.1 Relicense these two libraries under LGPL v2.1 only except where individual files already included the "or later" provision. Copyright holders have been contacted by Stephen Spector and have all agreed this change. Removed tools/libxc/ia64/aclinux.h since it appeared to be unused. There is a separate, more up to date, copy in xen/include/acpi/platform/aclinux.h which does appear to be used. Clarify the license of MiniOS privcmd.h under the same terms as other tools/include/xen-sys headers. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stephen Spector <stephen.spector@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: eliminate static variables, use xentoollog; API changeKeir Fraser2010-05-281-5/+7
| | | | | | | | | | | | | | | | | | | | This patch eliminate the global variables in libxenctrl (used for logging and error reporting). Instead the information which was in the global variables is now in a new xc_interface* opaque structure, which xc_interface open returns instead of the raw file descriptor; furthermore, logging is done via xentoollog. There are three new parameters to xc_interface_open to control the logging, but existing callers can just pass "0" for all three to get the old behaviour. All libxc callers have been adjusted accordingly. Also update QEMU_TAG for corresponding qemu change. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: New hcall_buf_{prep,release} pre-mlock interfaceKeir Fraser2010-01-221-16/+0
| | | | | | | | | | Allow certain performance-critical hypercall wrappers to register data buffers via a new interface which allows them to be 'bounced' into a pre-mlock'ed page-sized per-thread data area. This saves the cost of mlock/munlock on every such hypercall, which can be very expensive on modern kernels. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Replace bzero() usage with memset().Keir Fraser2009-03-121-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Define xc_ffs{8,16,32,64} functions. Use them.Keir Fraser2009-01-061-1/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Fix memory leak in zlib usageKeir Fraser2008-12-101-0/+1
| | | | | | | Any call to inflate() must be followed by inflateEnd(), otherwise the internal zlib state is leaked. Signed-off-by: Kevin Wolf <kwolf@suse.de>
* libxc: drop double un?lock_pages definition to fix static linkingKeir Fraser2008-05-221-16/+0
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* tools: Build fixes for *BSD.Keir Fraser2008-04-151-2/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Move xg_memalign() into a proper source file, so that itKeir Fraser2008-04-091-0/+18
| | | | | | | | definitely does not leak out of tools/libxc. Return to the ioemu/osdep.c way of checking for posix_memalign() as this works on Solaris. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxenguest: Remove bogus weak definitions of xc_{set,get}_hvm_param().kfraser@localhost.localdomain2007-04-131-12/+0
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Save/restore: merge xc_linux_save and xc_hvm_saveTim Deegan2007-04-111-11/+0
| | | | | | | | 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-10/+0
| | | | | | | | 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
* hvm: Lazy memory allocation during HVM restore. General cleanup andkfraser@localhost.localdomain2007-04-041-1/+1
| | | | | reduce gross assumptions about memory-map layout. Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove hvm_drain_io() hypercall, simplify qemu main loop and do notkfraser@localhost.localdomain2007-04-041-5/+0
| | | | | | pause the domain on reboot (not necessary and defeats new deferred shutdown logic). Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM][QEMU] Save/restore: enable HVM live migrationTim Deegan2007-03-161-1/+3
| | | | | by getting page-dirtying bitmaps from qemu-dm as well as from xen. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] Save/restore: make sure all ioreqs are gone when a domain is savedTim Deegan2007-03-081-0/+5
| | | | | by pausing the domain and pulling them through. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* libxc: Code format cleanups.Keir Fraser2007-02-241-41/+51
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Merge with xenppc-unstable.hgkfraser@localhost.localdomain2007-02-141-3/+2
|\
| * [HVM] Save/restore: disentangle max_pfn from nr_pages.Tim Deegan2007-02-091-1/+1
| | | | | | | | | | | | | | 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/+1
| | | | | | | | | | | | 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>
* | [POWERPC][XEN] Merge with xen-unstable.hg.Hollis Blanchard2007-02-061-6/+27
|\| | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.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>
* | [POWERPC][LIBXC] Add missing HVM stubs.Hollis Blanchard2007-01-031-0/+12
|/ | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : %5B%A9%A9%F7%D5%F4%FF%16%85%00%06%B2%A0%B2%ECC%7Cy%D9
* [HVM] Re-introduce the 'apic' configuration option, default to 1.kfraser@localhost.localdomain2006-11-271-6/+1
| | | | | | | | Also simplify the HVM builder interface by doing more work in the python wrapper, and fix mapping of shared_info page after the change to map foreign pages by GMFN rather than MFN. Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Replace hvm_setup_platform() with hvm_domain_initialise()kaf24@localhost.localdomain2006-11-051-1/+0
| | | | | | | | and extra code in hvm_vcpu_initialise(). Remove 'apic' config option -- HVM CPUs will always have an APIC (which should be set up in virtual wire mode for backward compatibility, just as in a real system). Signed-off-by: Keir Fraser <keir@xensource.com>
* [TOOLS] Uncompress and allocate memory for gzipped kernel and initrd images onIan Campbell2006-10-261-16/+41
| | | | | | | | | the fly. We cannot rely on the length contained in the gzip trailer to determine the length of the decompressed data because images have been observed which have trailing junk. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* [SOLARIS] Don't mlock() hypercall buffers.kfraser@localhost.localdomain2006-10-231-0/+16
| | | | | | | On solaris mlock requires a page aligned address and mlock doesn't ensure the pages won't minor page fault. Signed-off-by: Mark Johnson <mark.johnson@sun.com>
* [SOLARIS] A couple of simple compile fixes for tools/ on Solaris.kfraser@localhost.localdomain2006-10-171-0/+1
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Use a global build configuration file, and rework libxc Makefile for PPC.kfraser@dhcp93.uk.xensource.com2006-05-311-0/+15
| | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Fix whitespace in libxc. Tabs are manually fixed.kaf24@firebug.cl.cam.ac.uk2006-04-151-1/+1
| | | | | | | | Trailing whitespace removed with: perl -p -i -e 's/\s+$/\n/g' tools/libxc/*.[ch] Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Fix the gzip size extraction in xc_inflate_buffer(). Extractkaf24@firebug.cl.cam.ac.uk2006-03-171-4/+5
| | | | | | | | bytes as unsigned quantities. Signed-off-by: David Lively <dlively@virtualiron.com>
* Clean up internal libxc functions to take 'const char *'kaf24@firebug.cl.cam.ac.uk2006-03-091-2/+2
| | | | | | | | parameters where possible, to avoid unnecessary casts. Signed-off-by: Keir Fraser <keir@xensource.com>
* Add a parallel set of APIs to the domain builders to allow images andkaf24@firebug.cl.cam.ac.uk2006-03-091-4/+60
| | | | | | | | | | | | | | ramdisks to be passed via buffer, rather than via file. This allows usage of the underlying domain building routines in "file-challenged" enviroments. Specifically, xc_linux_build_mem is the buffer oriented version of the file-oriented xc_linux_build. Likewise, xc_hvm_build_mem is the buffer oriented analog of the file based xc_hvm_build. Signed-off-by: Ben Thomas (bthomas@virtualiron.com)
* Proactively check for NULL strings passed into xc_linx_build. Either dokaf24@firebug.cl.cam.ac.uk2006-01-101-0/+3
| | | | | | | | | the right thing or return error if detected. A NULL cmdline, for example, would currently generate a segfault. Signed-off-by: Ben Thomas <bjthomas3@gmail.com>
* Get rid of anonymous unions in public header files.kaf24@firebug.cl.cam.ac.uk2005-09-141-1/+1
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix build failure due to missing unistd.hkaf24@firebug.cl.cam.ac.uk2005-08-301-0/+1
| | | | | 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-251-0/+86
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>