X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_mem.h;h=8a32f5f5a24470e528bf1528bf65b6e339269940;hb=86c6fd174a293cdea69e4592e2eace691949043c;hp=62352d2224d0a313ed44f0807d1882a0af9b751d;hpb=40be15894eccfbb51e42bcfe550aaf8d9841bc3a;p=palacios.git diff --git a/palacios/include/palacios/vmm_mem.h b/palacios/include/palacios/vmm_mem.h index 62352d2..8a32f5f 100644 --- a/palacios/include/palacios/vmm_mem.h +++ b/palacios/include/palacios/vmm_mem.h @@ -2,6 +2,7 @@ #define __VMM_MEM_H + #include @@ -42,6 +43,8 @@ typedef enum host_region_type { +#define shadow_mem_type_t host_region_type_t + typedef struct shadow_region { guest_region_type_t guest_type; addr_t guest_start; @@ -95,6 +98,8 @@ shadow_region_t * get_shadow_region_by_index(struct shadow_map * map, uint_t ind host_region_type_t lookup_shadow_map_addr(struct shadow_map * map, addr_t guest_addr, addr_t * host_addr); +host_region_type_t get_shadow_addr_type(struct guest_info * info, addr_t guest_addr); +addr_t get_shadow_addr(struct guest_info * info, addr_t guest_addr); // Semantics: // Adding a region that overlaps with an existing region results is undefined