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.


HVM synchronous operation facility
[palacios.git] / linux_usr / v3_os_debug.c
index c530964..af55b8a 100644 (file)
@@ -29,6 +29,10 @@ int do_work(struct palacios_host_dev_host_request_response *req,
          putchar(req->data[i]);
        }
        *resp = malloc(sizeof(struct palacios_host_dev_host_request_response));
+       if (!*resp) { 
+           printf("Cannot allocate response\n");
+           return -1;
+       }
        **resp=*req;
        (*resp)->len = (*resp)->data_len = sizeof(struct palacios_host_dev_host_request_response);
        (*resp)->op_len = numchars;