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.


lots of fixes
[palacios.git] / palacios / include / palacios / vmm_sym_swap.h
index 6bb3788..e104acc 100644 (file)
@@ -45,12 +45,20 @@ 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;
+    uint32_t mapped_pages;
+    uint32_t list_size;
+#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));
 }
@@ -65,7 +73,9 @@ int v3_register_swap_disk(struct guest_info * info, int dev_index,
 int v3_swap_in_notify(struct guest_info * info, int pg_index, int dev_index);
 
 
-addr_t v3_get_swapped_pg_addr(struct guest_info * info, pte32_t * shadow_pte, pte32_t * guest_pte);
+int v3_get_vaddr_perms(struct guest_info * info, addr_t vaddr, pte32_t * guest_pte, pf_error_t * page_perms);
+addr_t v3_get_swapped_pg_addr(struct guest_info * info, pte32_t * guest_pte);
+addr_t v3_map_swp_page(struct guest_info * info, pte32_t * shadow_pte, pte32_t * guest_pte, void * swp_page_ptr);
 
 int v3_swap_flush(struct guest_info * info);