ia64/xen-unstable

view tools/libxc/xenguest.h @ 9730:74ee53209cca

Fix whitespace in libxc. Tabs are manually fixed.
Trailing whitespace removed with:
perl -p -i -e 's/\s+$/\n/g' tools/libxc/*.[ch]

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Apr 15 10:07:31 2006 +0100 (2006-04-15)
parents a1fcee3b2abe
children e6fdb32b786c
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 /**
46 * This function will create a domain for a paravirtualized Linux
47 * using file names pointing to kernel and ramdisk
48 *
49 * @parm xc_handle a handle to an open hypervisor interface
50 * @parm domid the id of the domain
51 * @param image_name name of the kernel image file
52 * @param ramdisk_name name of the ramdisk image file
53 * @parm cmdline command line string
54 * @parm flags domain creation flags
55 * @parm store_evtchn the store event channel for this domain to use
56 * @parm store_mfn returned with the mfn of the store page
57 * @parm console_evtchn the console event channel for this domain to use
58 * @parm conole_mfn returned with the mfn of the console page
59 * @return 0 on success, -1 on failure
60 */
61 int xc_linux_build(int xc_handle,
62 uint32_t domid,
63 const char *image_name,
64 const char *ramdisk_name,
65 const char *cmdline,
66 const char *features,
67 unsigned long flags,
68 unsigned int store_evtchn,
69 unsigned long *store_mfn,
70 unsigned int console_evtchn,
71 unsigned long *console_mfn);
73 /**
74 * This function will create a domain for a paravirtualized Linux
75 * using buffers for kernel and initrd
76 *
77 * @param xc_handle a handle to an open hypervisor interface
78 * @param domid the id of the domain
79 * @param image_buffer buffer containing kernel image
80 * @param image_size size of the kernel image buffer
81 * @param initrd_buffer name of the ramdisk image file
82 * @param initrd_size size of the ramdisk buffer
83 * @param cmdline command line string
84 * @param flags domain creation flags
85 * @param store_evtchn the store event channel for this domain to use
86 * @param store_mfn returned with the mfn of the store page
87 * @param console_evtchn the console event channel for this domain to use
88 * @param conole_mfn returned with the mfn of the console page
89 * @return 0 on success, -1 on failure
90 */
91 int xc_linux_build_mem(int xc_handle,
92 uint32_t domid,
93 const char *image_buffer,
94 unsigned long image_size,
95 const char *initrd_buffer,
96 unsigned long initrd_size,
97 const char *cmdline,
98 const char *features,
99 unsigned long flags,
100 unsigned int store_evtchn,
101 unsigned long *store_mfn,
102 unsigned int console_evtchn,
103 unsigned long *console_mfn);
105 int xc_hvm_build(int xc_handle,
106 uint32_t domid,
107 int memsize,
108 const char *image_name,
109 unsigned int vcpus,
110 unsigned int pae,
111 unsigned int acpi,
112 unsigned int apic,
113 unsigned int store_evtchn,
114 unsigned long *store_mfn);
116 int xc_hvm_build_mem(int xc_handle,
117 uint32_t domid,
118 int memsize,
119 const char *image_buffer,
120 unsigned long image_size,
121 unsigned int vcpus,
122 unsigned int pae,
123 unsigned int acpi,
124 unsigned int apic,
125 unsigned int store_evtchn,
126 unsigned long *store_mfn);
128 #endif /* XENGUEST_H */