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 memory conversions and copies for the guest/host contexts
[palacios.git] / palacios / include / geekos / vmm_shadow_paging.h
index 5fd9083..cbda937 100644 (file)
@@ -6,7 +6,8 @@
 
 #include <geekos/vmm_util.h>
 
-typedef struct shadow_page_state {
+
+struct shadow_page_state {
 
   // these two reflect the top-level page directory
   // of the guest page table
@@ -22,15 +23,23 @@ typedef struct shadow_page_state {
   reg_ex_t                shadow_cr3;
 
 
-} shadow_page_state_t;
+};
+
+
+
+
+
+
 
 
+#include <geekos/vm_guest.h>
+struct guest_info;
 
-int init_shadow_page_state(shadow_page_state_t * state);
+int init_shadow_page_state(struct shadow_page_state * state);
 
 // This function will cause the shadow page table to be deleted
 // and rewritten to reflect the guest page table and the shadow map
-int wholesale_update_shadow_page_state(shadow_page_state_t * state, shadow_map_t * mem_map);
+int wholesale_update_shadow_page_state(struct guest_info * guest_info);