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 pci passthrough and a few other things
[palacios.git] / palacios / include / palacios / vmm_sym_swap.h
index 6bb3788..5f09c3b 100644 (file)
@@ -45,12 +45,18 @@ struct v3_swap_dev {
 struct v3_sym_swap_state {
     struct v3_swap_dev devs[256];
 
+#ifdef CONFIG_SYMBIOTIC_SWAP_TELEMETRY
+    uint32_t read_faults;
+    uint32_t write_faults;
+    uint32_t flushes;
+#endif
+
     // shadow pointers
     struct hashtable * shdw_ptr_ht;
 };
 
-
-
+// Present = 0 and Dirty = 0
+// fixme
 static inline int is_swapped_pte32(pte32_t * pte) {
     return ((pte->present == 0) && (*(uint32_t *)pte != 0));
 }