X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm.h;h=8364325ca31de174b0e76d7e63676ca28cc012dc;hb=9d3b3018dfa76f3612eff68e78aaf636496c4fe4;hp=4243d020baf63b75ec10b5d1e98446a892b20150;hpb=8e9c13c41b0244a8d0029e837a623591a22c5879;p=palacios.releases.git diff --git a/palacios/include/palacios/vmm.h b/palacios/include/palacios/vmm.h index 4243d02..8364325 100644 --- a/palacios/include/palacios/vmm.h +++ b/palacios/include/palacios/vmm.h @@ -207,12 +207,12 @@ struct guest_info; #define V3_CREATE_THREAD_ON_CPU(cpu, fn, arg, name) ({ \ void * thread = NULL; \ - extern struct v3_os_hooks * os_hooks; \ - if ((os_hooks) && (os_hooks)->start_thread_on_cpu) { \ - thread = (os_hooks)->start_thread_on_cpu(cpu, fn, arg, name); \ - } \ - thread; \ - }) + extern struct v3_os_hooks * os_hooks; \ + if ((os_hooks) && (os_hooks)->start_thread_on_cpu) { \ + thread = (os_hooks)->start_thread_on_cpu(cpu, fn, arg, name); \ + } \ + thread; \ + }) #define V3_MOVE_THREAD_TO_CPU(pcpu, thread) ({ \ int ret = -1; \ @@ -343,6 +343,9 @@ int v3_stop_vm(struct v3_vm_info * vm); int v3_pause_vm(struct v3_vm_info * vm); int v3_continue_vm(struct v3_vm_info * vm); +int v3_save_vm(struct v3_vm_info * vm, char * store, char * url); +int v3_load_vm(struct v3_vm_info * vm, char * store, char * url); + int v3_move_vm_core(struct v3_vm_info * vm, int vcore_id, int target_cpu); int v3_free_vm(struct v3_vm_info * vm);