diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2007-02-06 15:03:52 -0600 |
---|---|---|
committer | Hollis Blanchard <hollisb@us.ibm.com> | 2007-02-06 15:03:52 -0600 |
commit | 4c03b0792eb8db290607866d017bc87ec3d4e580 (patch) | |
tree | 0ab83dae24a4c7e00c91786071a437f2dbc54e0a /tools/libxc/xenguest.h | |
parent | 0e290d99934ffccccf249e5f6c8bc5c584f73a9c (diff) | |
parent | 0ea3c30b5b68406c57154eb12c086a181c3095b4 (diff) | |
download | xen-4c03b0792eb8db290607866d017bc87ec3d4e580.tar.gz xen-4c03b0792eb8db290607866d017bc87ec3d4e580.tar.bz2 xen-4c03b0792eb8db290607866d017bc87ec3d4e580.zip |
[POWERPC][XEN] Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Diffstat (limited to 'tools/libxc/xenguest.h')
-rw-r--r-- | tools/libxc/xenguest.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/libxc/xenguest.h b/tools/libxc/xenguest.h index 777ee9f23b..2ae1fb287b 100644 --- a/tools/libxc/xenguest.h +++ b/tools/libxc/xenguest.h @@ -11,6 +11,7 @@ #define XCFLAGS_LIVE 1 #define XCFLAGS_DEBUG 2 +#define XCFLAGS_HVM 4 /** @@ -25,6 +26,13 @@ int xc_linux_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters, uint32_t max_factor, uint32_t flags /* XCFLAGS_xxx */, int (*suspend)(int domid)); +/** + * This function will save a hvm domain running unmodified guest. + * @return 0 on success, -1 on failure + */ +int xc_hvm_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters, + uint32_t max_factor, uint32_t flags /* XCFLAGS_xxx */, + int (*suspend)(int domid)); /** * This function will restore a saved domain running Linux. @@ -43,6 +51,18 @@ int xc_linux_restore(int xc_handle, int io_fd, uint32_t dom, unsigned long *console_mfn); /** + * This function will restore a saved hvm domain running unmodified guest. + * + * @parm store_mfn pass mem size & returned with the mfn of the store page + * @return 0 on success, -1 on failure + */ +int xc_hvm_restore(int xc_handle, int io_fd, uint32_t dom, + unsigned long nr_pfns, unsigned int store_evtchn, + unsigned long *store_mfn, unsigned int console_evtchn, + unsigned long *console_mfn, + unsigned int pae, unsigned int apic); + +/** * This function will create a domain for a paravirtualized Linux * using file names pointing to kernel and ramdisk * |