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.


Cleanup based on cppcheck pass (Linux module and user)
[palacios.git] / linux_usr / v3_user_host_dev_example.c
index 4f8144e..043811b 100644 (file)
@@ -17,7 +17,7 @@ void usage()
 int do_work(struct palacios_host_dev_host_request_response *req, 
            struct palacios_host_dev_host_request_response **resp)
 {
-    uint64_t datasize;
+    uint64_t datasize=0;
     
     //
     //
@@ -25,7 +25,8 @@ int do_work(struct palacios_host_dev_host_request_response *req,
     //
     // uint64_t v3_user_host_dev_read_guest_mem(int devfd, void *gpa, void *dest, uint64_t len);
     // uint64_t v3_user_host_dev_write_guest_mem(int devfd, void *gpa, void *src, uint64_t len);
-    // int      v3_user_host_dev_inject_guest_irq(int devfd, uint8_t irq);
+    // int      v3_user_host_dev_raise_irq(int devfd, uint8_t irq);
+    // int      v3_user_host_dev_lower_irq(int devfd, uint8_t irq);
     //
     // determine datasize - # bytes to include in response
     //