ia64/xen-unstable

view tools/libxc/xenguest.h @ 8964:8946b6dcd49e

Fix x86_64 Xen build.

event_callback_cs and failsafe_callback_cs are x86_32 only.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Wed Feb 22 17:26:39 2006 +0000 (2006-02-22)
parents 991c4d62d392
children b5bb9920bf48
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_hvm_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 pae,
63 unsigned int acpi,
64 unsigned int apic,
65 unsigned int store_evtchn,
66 unsigned long *store_mfn);
68 #endif // XENGUEST_H