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>
26 #include <palacios/vm_guest.h>
32 struct v3_chkpt * chkpt;
33 struct v3_chkpt_ctx * parent;
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);
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);
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);
49 int V3_init_checkpoint();
50 int V3_deinit_checkpoint();