X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_checkpoint.h;h=9bb5e8163aac99127d0abc779a2ad2d4629d23a0;hb=5d1bbcc86de011e3f0d115b6f10fd8645cdf855e;hp=4281d5e1e2bc2948df9f76aa9b1a18363f815414;hpb=793f9cd53a472668dbeb16341085e5512484485c;p=palacios.git diff --git a/palacios/include/palacios/vmm_checkpoint.h b/palacios/include/palacios/vmm_checkpoint.h index 4281d5e..9bb5e81 100644 --- a/palacios/include/palacios/vmm_checkpoint.h +++ b/palacios/include/palacios/vmm_checkpoint.h @@ -23,7 +23,7 @@ #ifdef __V3VEE__ #include -#include + struct v3_chkpt; @@ -34,6 +34,10 @@ struct v3_chkpt_ctx { void * store_ctx; }; +/* Temporary */ +#define V3_CHKPT_STD_SAVE(ctx,x) v3_chkpt_save(ctx,#x,sizeof(x),&(x)) +#define V3_CHKPT_STD_LOAD(ctx,x) v3_chkpt_load(ctx,#x,sizeof(x),&(x)) + int v3_chkpt_save(struct v3_chkpt_ctx * ctx, char * tag, uint64_t len, void * buf); int v3_chkpt_load(struct v3_chkpt_ctx * ctx, char * tag, uint64_t len, void * buf); @@ -44,7 +48,8 @@ struct v3_chkpt_ctx * v3_chkpt_open_ctx(struct v3_chkpt * chkpt, struct v3_chkpt int v3_chkpt_save_vm(struct v3_vm_info * vm, char * store, char * url); int v3_chkpt_load_vm(struct v3_vm_info * vm, char * store, char * url); - +int V3_init_checkpoint(); +int V3_deinit_checkpoint(); #endif