ia64/xen-unstable

view tools/libxc/xenguest.h @ 6422:e24fd7012ffb

merge?
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 25 10:09:39 2005 +0000 (2005-08-25)
parents 2f20c2fce2c5 fdfd511768a3
children 4abd299ef2f6
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 XENBUILD_H
10 #define XENBUILD_H
12 #define XCFLAGS_VERBOSE 1
13 #define XCFLAGS_LIVE 2
14 #define XCFLAGS_DEBUG 4
15 #define XCFLAGS_CONFIGURE 8
17 /**
18 * This function will save a domain running Linux.
19 *
20 * @parm xc_handle a handle to an open hypervisor interface
21 * @parm fd the file descriptor to save a domain to
22 * @parm dom the id of the domain
23 * @return 0 on success, -1 on failure
24 */
25 int xc_linux_save(int xc_handle, int fd, uint32_t dom);
27 /**
28 * This function will restore a saved domain running Linux.
29 *
30 * @parm xc_handle a handle to an open hypervisor interface
31 * @parm fd the file descriptor to restore a domain from
32 * @parm dom the id of the domain
33 * @parm nr_pfns the number of pages
34 * @parm store_evtchn the store event channel for this domain to use
35 * @parm store_mfn returned with the mfn of the store page
36 * @return 0 on success, -1 on failure
37 */
38 int xc_linux_restore(int xc_handle, int io_fd, uint32_t dom, unsigned long nr_pfns,
39 unsigned int store_evtchn, unsigned long *store_mfn);
41 int xc_linux_build(int xc_handle,
42 uint32_t domid,
43 const char *image_name,
44 const char *ramdisk_name,
45 const char *cmdline,
46 unsigned int control_evtchn,
47 unsigned long flags,
48 unsigned int vcpus,
49 unsigned int store_evtchn,
50 unsigned long *store_mfn);
52 struct mem_map;
53 int xc_vmx_build(int xc_handle,
54 uint32_t domid,
55 int memsize,
56 const char *image_name,
57 struct mem_map *memmap,
58 const char *ramdisk_name,
59 const char *cmdline,
60 unsigned int control_evtchn,
61 unsigned long flags,
62 unsigned int vcpus,
63 unsigned int store_evtchn,
64 unsigned long *store_mfn);
66 #endif