X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_swapping.c;h=e3095d012f043d2199ecbe1f9b60b773286e52da;hb=022f63d320c2837822dc7f6be84f860a01f02d7c;hp=a24ef42d65292abd1747b5e88e7af1f0ec090e30;hpb=5ef0e92d52b2698fd2706cd7cfc2b01526a6e319;p=palacios.git diff --git a/palacios/src/palacios/vmm_swapping.c b/palacios/src/palacios/vmm_swapping.c index a24ef42..e3095d0 100644 --- a/palacios/src/palacios/vmm_swapping.c +++ b/palacios/src/palacios/vmm_swapping.c @@ -31,8 +31,6 @@ #include -#include -#include /* @@ -103,7 +101,7 @@ static int read_all(v3_file_t fd, void *buf, uint64_t len, uint64_t offset) #define CEIL_DIV(x,y) (((x)/(y)) + !!((x)%(y))) -int v3_init_swapping_vm(struct v3_vm_info *vm, v3_cfg_tree_t *config) +int v3_init_swapping_vm(struct v3_vm_info *vm, struct v3_xml *config) { v3_cfg_tree_t *swap_config; char *enable; @@ -471,7 +469,7 @@ static int swap_out_region_internal(struct v3_vm_info *vm, struct v3_mem_region for (i=0, fail=0; inum_cores;i++ ) { struct guest_info * core = &(vm->cores[i]); - int rc; + int rc=0; if (core->shdw_pg_mode == SHADOW_PAGING) { v3_mem_mode_t mem_mode = v3_get_vm_mem_mode(core);