aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_resume.c
Commit message (Collapse)AuthorAgeFilesLines
* libxc: introduce xc_domain_get_guest_width()Dario Faggioli2013-09-131-17/+4
| | | | | | | | | | | | | | As a wrapper to XEN_DOMCTL_get_address_size, and use it wherever the call was being issued directly via do_domctl(), saving quite some line of code. Actually, the function returns the guest width in bytes, rather than directly what XEN_DOMCTL_get_address_size provides (which is a number of bits), since that is what it is useful almost everywhere. Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
* libxc: convert domctl interfaces over to hypercall buffersIan Campbell2010-10-221-7/+0
| | | | | | | (defer save/restore and shadow related interfaces til a later patch) Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: pass an xc_interface handle to page locking functionsIan Campbell2010-10-181-2/+2
| | | | | | | | | Not actually used here but useful to confirm that a handle is passed down to each location where it will be required once we switch to hypercall buffers. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* # HG changeset patchIan Campbell2010-08-241-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | # 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: remove \n from strings passed to PERRORKeir Fraser2010-05-281-1/+1
| | | | | | | | Previously, the code was inconsistent: some calls to PERROR passed \n and some did not. With the new logging arrangements, passing \n is definitely incorrect. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* libxc: eliminate static variables, use xentoollog; API changeKeir Fraser2010-05-281-27/+27
| | | | | | | | | | | | | | | | | | | | 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: use new (replacement) mmap-batch ioctlKeir Fraser2010-01-131-2/+2
| | | | | | | | | | | | | | | | | | | | Replace all calls to xc_map_foreign_batch() where the caller doesn't look at the passed in array to check for errors by calls to xc_map_foreign_pages(). Replace all remaining calls by such to the newly introduced xc_map_foreign_bulk(). As a sideband modification (needed while writing the patch to ensure they're unused) eliminate unused parameters to uncanonicalize_pagetable() and xc_map_foreign_batch_single(). Also unmap live_p2m_frame_list earlier in map_and_save_p2m_table(), reducing the peak amount of virtual address space required. All supported OSes other than Linux continue to use the old ioctl for the time being. Also change libxc's MAJOR to 4.0 to reflect the API change. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* libxc: create a domain_info_context structure to store guest_width and ↵Keir Fraser2009-12-011-9/+12
| | | | | | | | p2m_size for macros. Macro now refers to guest_width and p2m_size through a dinfo pointer. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* xc_resume: fix modify_returncode when host width != guest widthKeir Fraser2009-11-041-15/+37
| | | | | | | Also improve checking in xc_domain_resume_any(). Signed-off-by: Brendan Cully <brendan@cs.ubc.ca> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: The following patch replace the libxc interface to useKeir Fraser2008-06-191-5/+5
| | | | | | | vcpu_guest_context_any_t (which is both 32 and 64 bits) instead of vcpu_guest_context_t. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* [TOOLS] Make xc_domain_{save, restore} understand compat guestsTim Deegan2007-09-191-9/+4
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* HVM: First attempt at domain-resume on save-failure.kfraser@localhost.localdomain2007-04-121-4/+57
| | | | | | | Not working yet as we are a bit too keen to kill the qemu-dm process, before we know that the save has been successful. Signed-off-by: Keir Fraser <keir@xensource.com>
* Some save/restore cleanups.Steven Hand2007-04-021-2/+2
| | | | Signed-off-by: Steven Hand <steven@xensource.com>
* Let xend choose to do hard or soft domain resumption depending onkfraser@localhost.localdomain2007-02-281-6/+2
| | | | | | | whether the domain advertises support for soft resumption in its elfnotes. Signed-off-by: Brendan Cully <brendan@kublai.com>
* Make domctl/sysctl interfaces 32-/64-bit invariant.kfraser@localhost.localdomain2007-01-241-1/+1
| | | | | | | 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>
* Implement clean return from save/restore failure (so that originalkfraser@localhost.localdomain2007-01-221-14/+142
| | | | | domain can continue execution). Signed-off-by: Andrei Petrov <andrei.petrov@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-191-0/+35
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>