diff options
Diffstat (limited to 'tools/xc/lib/xc.h')
-rw-r--r-- | tools/xc/lib/xc.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/xc/lib/xc.h b/tools/xc/lib/xc.h index 9a0fab2257..a0205bcc6b 100644 --- a/tools/xc/lib/xc.h +++ b/tools/xc/lib/xc.h @@ -38,6 +38,7 @@ typedef struct { int xc_domain_create(int xc_handle, unsigned int mem_kb, const char *name, + int cpu, u64 *pdomid); int xc_domain_start(int xc_handle, u64 domid); @@ -58,15 +59,20 @@ int xc_shadow_control(int xc_handle, u64 domid, unsigned int sop); +#define XCFLAGS_VERBOSE 1 +#define XCFLAGS_LIVE 2 + int xc_linux_save(int xc_handle, u64 domid, - const char *state_file, - int verbose); + unsigned int flags, + int (*writerfn)(void *, const void *, size_t), + void *writerst ); int xc_linux_restore(int xc_handle, u64 domid, - const char *state_file, - int verbose, + unsigned int flags, + int (*readerfn)(void *, void *, size_t), + void *readerst, u64 *pdomid); int xc_linux_build(int xc_handle, |