Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/snapshot.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | struct restore_state { | ||||
struct ucl_parser *meta_parser; | struct ucl_parser *meta_parser; | ||||
ucl_object_t *meta_root_obj; | ucl_object_t *meta_root_obj; | ||||
}; | }; | ||||
struct checkpoint_thread_info { | struct checkpoint_thread_info { | ||||
struct vmctx *ctx; | struct vmctx *ctx; | ||||
int socket_fd; | int socket_fd; | ||||
cap_channel_t *channel; | |||||
}; | }; | ||||
typedef int (*vm_snapshot_dev_cb)(struct vm_snapshot_meta *); | typedef int (*vm_snapshot_dev_cb)(struct vm_snapshot_meta *); | ||||
typedef int (*vm_pause_dev_cb) (struct vmctx *, const char *); | typedef int (*vm_pause_dev_cb) (struct vmctx *, const char *); | ||||
typedef int (*vm_resume_dev_cb) (struct vmctx *, const char *); | typedef int (*vm_resume_dev_cb) (struct vmctx *, const char *); | ||||
struct vm_snapshot_dev_info { | struct vm_snapshot_dev_info { | ||||
const char *dev_name; /* device name */ | const char *dev_name; /* device name */ | ||||
Show All 23 Lines | |||||
int vm_restore_user_devs(struct vmctx *ctx, struct restore_state *rstate); | int vm_restore_user_devs(struct vmctx *ctx, struct restore_state *rstate); | ||||
int vm_pause_user_devs(struct vmctx *ctx); | int vm_pause_user_devs(struct vmctx *ctx); | ||||
int vm_resume_user_devs(struct vmctx *ctx); | int vm_resume_user_devs(struct vmctx *ctx); | ||||
int get_checkpoint_msg(int conn_fd, struct vmctx *ctx); | int get_checkpoint_msg(int conn_fd, struct vmctx *ctx); | ||||
void *checkpoint_thread(void *param); | void *checkpoint_thread(void *param); | ||||
void init_snapshot(void); | void init_snapshot(void); | ||||
int init_checkpoint_thread(struct vmctx *ctx, cap_channel_t *chn); | int init_checkpoint_thread(struct vmctx *ctx); | ||||
void init_capsicum_info(char *ckp_path); | |||||
int load_restore_file(const char *filename, struct restore_state *rstate); | int load_restore_file(const char *filename, struct restore_state *rstate); | ||||
#endif | #endif |