X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fgeekos%2Fvmm_shadow_paging.h;h=1817800a2d4be65f6953429022a3547e4e69b255;hb=b85f79b8030114370851ed3422c078debe630570;hp=5fd9083e19c59ac9b4a6fd31fb0a2d86fafbf0d1;hpb=7acd54f8c3b30d118d56186a9c6506f21f85096d;p=palacios.releases.git diff --git a/palacios/include/geekos/vmm_shadow_paging.h b/palacios/include/geekos/vmm_shadow_paging.h index 5fd9083..1817800 100644 --- a/palacios/include/geekos/vmm_shadow_paging.h +++ b/palacios/include/geekos/vmm_shadow_paging.h @@ -2,18 +2,21 @@ #define __VMM_SHADOW_PAGING_H -#include #include -typedef struct shadow_page_state { + + +#include + +struct shadow_page_state { // these two reflect the top-level page directory // of the guest page table paging_mode_t guest_mode; reg_ex_t guest_cr3; // points to guest's current page table - // Should thi sbe here + // Should this be here?? reg_ex_t guest_cr0; // these two reflect the top-level page directory @@ -22,15 +25,21 @@ typedef struct shadow_page_state { reg_ex_t shadow_cr3; -} shadow_page_state_t; +}; + + + + + +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);