Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Lots of pedantic error checking in Palacios proper, especially for memory
[palacios.git] / palacios / src / interfaces / vmm_host_hypercall.c
index 0299268..ab57698 100644 (file)
@@ -142,7 +142,8 @@ int v3_register_host_hypercall(host_vm_info_t * vm,
     struct bounce_data *b = V3_Malloc(sizeof(struct bounce_data));
 
     if (!b) { 
-      return -1;
+       PrintError("Unable to allocate in registering host hypercall\n");
+       return -1;
     }
     
     b->hypercall=hypercall;
@@ -152,7 +153,9 @@ int v3_register_host_hypercall(host_vm_info_t * vm,
                              hypercall_id, 
                              bounce,
                              b) < 0) {
-      return -1;
+       PrintError("Cannot register host hypercall\n");
+       V3_Free(b);
+       return -1;
     }
     
     return 0;