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.


fixed up include directories for new interfaces locations
[palacios.git] / linux_module / palacios-vm.c
index 1d8bfe0..0e1f51e 100644 (file)
@@ -17,6 +17,9 @@
 #include <linux/file.h>
 #include <linux/spinlock.h>
 
+#ifdef CONFIG_DEBUG_FS
+#include "palacios-debugfs.h"
+#endif
 
 #include <palacios/vmm.h>
 
@@ -25,6 +28,7 @@
 #include "palacios-serial.h"
 #include "palacios-vm.h"
 
+
 extern struct class * v3_class;
 #define STREAM_NAME_LEN 128
 
@@ -102,7 +106,6 @@ extern u32 pg_frees;
 extern u32 mallocs;
 extern u32 frees;
 
-
 int start_palacios_vm(void * arg)  {
     struct v3_guest * guest = (struct v3_guest *)arg;
     int err;
@@ -145,6 +148,13 @@ int start_palacios_vm(void * arg)  {
 
     printk("palacios: launching vm\n");   
 
+
+
+#if CONFIG_DEBUG_FS
+    dfs_register_vm(guest);
+#endif
+
+
     if (v3_start_vm(guest->v3_ctx, 0xffffffff) < 0) { 
        printk("palacios: launch of vm failed\n");
        return -1;
@@ -172,5 +182,8 @@ int stop_palacios_vm(struct v3_guest * guest) {
 
     cdev_del(&(guest->cdev));
 
+    kfree(guest->img);
+    kfree(guest);
+
     return 0;
 }