Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


d62d98fbe8589dbd00c0523a9214a1fc839be6fe
[palacios.git] / palacios / include / palacios / vmm_checkpoint.h
1 /*
2  * This file is part of the Palacios Virtual Machine Monitor developed
3  * by the V3VEE Project with funding from the United States National 
4  * Science Foundation and the Department of Energy.  
5  *
6  * The V3VEE Project is a joint project between Northwestern University
7  * and the University of New Mexico.  You can find out more at 
8  * http://www.v3vee.org
9  *
10  * Copyright (c) 2011, Madhav Suresh <madhav@u.northwestern.edu> 
11  * Copyright (c) 2011, The V3VEE Project <http://www.v3vee.org> 
12  * All rights reserved.
13  *
14  * Authors: Madhav Suresh <madhav@u.northwestern.edu>
15  *
16  * This is free software.  You are permitted to use,
17  * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
18  */
19
20 #ifndef __VMM_CHECKPOINT_H__
21 #define __VMM_CHECKPOINT_H__
22
23 #ifdef __V3VEE__
24
25 #include <palacios/vmm.h>
26 #include <palacios/vm_guest.h>
27
28 struct v3_chkpt;
29
30
31 struct v3_chkpt_ctx {
32     struct v3_chkpt * chkpt;
33     struct v3_chkpt_ctx * parent;
34     void * store_ctx;
35 };
36
37
38
39
40 int v3_chkpt_save(struct v3_chkpt_ctx * ctx, char * tag, uint64_t len, void * buf);
41 int v3_chkpt_load(struct v3_chkpt_ctx * ctx, char * tag, uint64_t len, void * buf);
42
43 int v3_chkpt_close_ctx(struct v3_chkpt_ctx * ctx);
44 struct v3_chkpt_ctx * v3_chkpt_open_ctx(struct v3_chkpt * chkpt, struct v3_chkpt_ctx * parent, char * name);
45
46 int v3_chkpt_save_vm(struct v3_vm_info * vm, char * store, char * url);
47 int v3_chkpt_load_vm(struct v3_vm_info * vm, char * store, char * url);
48
49 int V3_init_checkpoint();
50 int V3_deinit_checkpoint();
51
52 #endif
53
54 #endif