ia64/xen-unstable

view tools/libxc/xenguest.h @ 8576:642b26779c4e

8604:a51fcb5de470 introduced a discrepancy between the declaration
and definition of xc_linux_save(). In particular the argument for
the suspend pointer to function was null in one and int in the other.
On inspection, int seemed to be correct, so I went with this.
I also fixed up a few other cosmetic discrepancies.

Signed-Off-By: Horms <horms@verge.net.au>
author emellor@leeni.uk.xensource.com
date Thu Jan 12 13:13:34 2006 +0100 (2006-01-12)
parents a51fcb5de470
children f1b361b05bf3
line source
1 /******************************************************************************
2 * xenguest.h
3 *
4 * A library for guest domain management in Xen.
5 *
6 * Copyright (c) 2003-2004, K A Fraser.
7 */
9 #ifndef XENGUEST_H
10 #define XENGUEST_H
12 #define XCFLAGS_LIVE 1
13 #define XCFLAGS_DEBUG 2
16 /**
17 * This function will save a domain running Linux.
18 *
19 * @parm xc_handle a handle to an open hypervisor interface
20 * @parm fd the file descriptor to save a domain to
21 * @parm dom the id of the domain
22 * @return 0 on success, -1 on failure
23 */
24 int xc_linux_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters,
25 uint32_t max_factor, uint32_t flags /* XCFLAGS_xxx */,
26 int (*suspend)(int domid));
29 /**
30 * This function will restore a saved domain running Linux.
31 *
32 * @parm xc_handle a handle to an open hypervisor interface
33 * @parm fd the file descriptor to restore a domain from
34 * @parm dom the id of the domain
35 * @parm nr_pfns the number of pages
36 * @parm store_evtchn the store event channel for this domain to use
37 * @parm store_mfn returned with the mfn of the store page
38 * @return 0 on success, -1 on failure
39 */
40 int xc_linux_restore(int xc_handle, int io_fd, uint32_t dom,
41 unsigned long nr_pfns, unsigned int store_evtchn,
42 unsigned long *store_mfn, unsigned int console_evtchn,
43 unsigned long *console_mfn);
45 int xc_linux_build(int xc_handle,
46 uint32_t domid,
47 const char *image_name,
48 const char *ramdisk_name,
49 const char *cmdline,
50 unsigned long flags,
51 unsigned int store_evtchn,
52 unsigned long *store_mfn,
53 unsigned int console_evtchn,
54 unsigned long *console_mfn);
56 int xc_vmx_build(int xc_handle,
57 uint32_t domid,
58 int memsize,
59 const char *image_name,
60 unsigned int control_evtchn,
61 unsigned int vcpus,
62 unsigned int acpi,
63 unsigned int apic,
64 unsigned int store_evtchn,
65 unsigned long *store_mfn);
67 #endif // XENGUEST_H