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.


Linux user-space tools for memory tracking functionality
[palacios.git] / linux_usr / v3_guest_mem.h
index 508f351..cacddd1 100644 (file)
@@ -4,6 +4,13 @@
 #include <stdint.h>
 #include "v3_ctrl.h"
 
+
+#include "memtrack.h"
+
+/**************************/
+/* Access to guest memory */
+/**************************/
+
 struct v3_guest_mem_block {
   void     *gpa;      // guest physical address this region starts at
   void     *cumgpa;   // cumulative GPA in the VM including this block
@@ -83,5 +90,25 @@ int v3_guest_mem_write(struct v3_guest_mem_map *map, void *gpa, uint64_t num_byt
 // hash the guest's data
 int v3_guest_mem_hash(struct v3_guest_mem_map *map, void *gpa, uint64_t num_bytes, uint64_t *hash);
 
+
+/********************************/
+/* Guest memory access tracking */
+/********************************/
+
+#include "../linux_module/memtrack.h"
+
+int v3_guest_mem_track_start(char *vmdev, 
+                            v3_mem_track_access_t access, 
+                            v3_mem_track_reset_t reset, 
+                            uint64_t period);
+
+int v3_guest_mem_track_stop(char *vmdev);
+
+v3_mem_track_snapshot *v3_guest_mem_track_snapshot(char *vmdev);
+
+void v3_guest_mem_track_free_snapshot(v3_mem_track_snapshot *snap);
+
+
+
 #endif