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.


more work on the memory system
[palacios.git] / palacios / include / geekos / vmm_shadow_paging.h
1 #ifndef __VMM_SHADOW_PAGING_H
2 #define __VMM_SHADOW_PAGING_H
3
4
5 #include <geekos/vmm_paging.h>
6
7 #include <geekos/vmm_util.h>
8
9 typedef struct shadow_page_state {
10
11   // these two reflect the top-level page directory
12   // of the guest page table
13   paging_mode_t           guest_mode;
14   reg_ex_t                guest_cr3;         // points to guest's current page table
15
16   // Should thi sbe here
17   reg_ex_t                guest_cr0;
18
19   // these two reflect the top-level page directory 
20   // the shadow page table
21   paging_mode_t           shadow_mode;
22   reg_ex_t                shadow_cr3;
23
24
25 } shadow_page_state_t;
26
27
28
29 int init_shadow_page_state(shadow_page_state_t * state);
30
31 // This function will cause the shadow page table to be deleted
32 // and rewritten to reflect the guest page table and the shadow map
33 int wholesale_update_shadow_page_state(shadow_page_state_t * state, shadow_map_t * mem_map);
34
35
36
37
38 #endif