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.


added profiling support
[palacios.git] / palacios / src / palacios / vmm_config.c
index 82f34e2..180a618 100644 (file)
@@ -22,6 +22,8 @@
 #include <palacios/vmm_debug.h>
 #include <palacios/vmm_msr.h>
 #include <palacios/vmm_decoder.h>
+#include <palacios/vmm_profiler.h>
+#include <palacios/vmm_mem.h>
 
 #include <devices/serial.h>
 #include <devices/keyboard.h>
@@ -34,6 +36,7 @@
 #include <devices/bochs_debug.h>
 
 
+
 #include <palacios/vmm_host_events.h>
 
 #define USE_GENERIC 1
@@ -99,6 +102,14 @@ int v3_config_guest(struct guest_info * info, struct v3_vm_config * config_ptr)
   setup_devices(info, config_ptr);
  
 
+
+  if (config_ptr->enable_profiling) {
+    info->enable_profiler = 1;
+    v3_init_profiler(info);
+  } else {
+    info->enable_profiler = 0;
+  }
+
   //v3_hook_io_port(info, 1234, &IO_Read, NULL, info);
 
   // Setup initial cpu register state