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.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
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.
14 * Authors: Madhav Suresh <madhav@u.northwestern.edu>
16 * This is free software. You are permitted to use,
17 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
20 #ifndef __VMM_CHECKPOINT_H__
21 #define __VMM_CHECKPOINT_H__
25 #include <palacios/vmm.h>
32 struct v3_chkpt * chkpt;
33 struct v3_chkpt_ctx * parent;
38 #define V3_CHKPT_STD_SAVE(ctx,x) v3_chkpt_save(ctx,#x,sizeof(x),&(x))
39 #define V3_CHKPT_STD_LOAD(ctx,x) v3_chkpt_load(ctx,#x,sizeof(x),&(x))
42 int v3_chkpt_save(struct v3_chkpt_ctx * ctx, char * tag, uint64_t len, void * buf);
43 int v3_chkpt_load(struct v3_chkpt_ctx * ctx, char * tag, uint64_t len, void * buf);
45 int v3_chkpt_close_ctx(struct v3_chkpt_ctx * ctx);
46 struct v3_chkpt_ctx * v3_chkpt_open_ctx(struct v3_chkpt * chkpt, struct v3_chkpt_ctx * parent, char * name);
48 int v3_chkpt_save_vm(struct v3_vm_info * vm, char * store, char * url);
49 int v3_chkpt_load_vm(struct v3_vm_info * vm, char * store, char * url);
51 int V3_init_checkpoint();
52 int V3_deinit_checkpoint();