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.


removed old memory region type enumeration
Jack Lange [Sat, 15 May 2010 00:05:07 +0000 (19:05 -0500)]
palacios/include/palacios/vmm_mem.h
palacios/src/palacios/vmm_mem.c

index 727655e..3cb091f 100644 (file)
@@ -36,15 +36,6 @@ struct v3_vm_info;
 
 
 
-// These are the types of physical memory address regions
-// from the perspective of the HOST
-typedef enum shdw_region_type { 
-    SHDW_REGION_WRITE_HOOK,                 // This region is mapped as read-only (page faults on write)
-    SHDW_REGION_FULL_HOOK,                  // This region is mapped as not present (always generate page faults)
-    SHDW_REGION_ALLOCATED,                  // Region is a section of host memory
-    SHDW_REGION_BASE,
-} v3_shdw_region_type_t;
-
 #define V3_MEM_CORE_ANY ((uint16_t)-1)
 
 
@@ -69,7 +60,6 @@ struct v3_shadow_region {
     addr_t                  guest_start; 
     addr_t                  guest_end; 
 
-    v3_shdw_region_type_t   host_type;
     v3_mem_flags_t          flags;
 
     addr_t                  host_addr; // This either points to a host address mapping
index cb3f144..c804970 100644 (file)
@@ -59,7 +59,6 @@ int v3_init_mem_map(struct v3_vm_info * vm) {
 
     map->base_region.guest_start = 0;
     map->base_region.guest_end = mem_pages * PAGE_SIZE_4KB;
-    map->base_region.host_type = SHDW_REGION_ALLOCATED;
     map->base_region.host_addr = (addr_t)V3_AllocPages(mem_pages);
 
     map->base_region.flags.read = 1;
@@ -115,7 +114,6 @@ int v3_add_shadow_mem( struct v3_vm_info * vm, uint16_t core_id,
 
     entry->guest_start = guest_addr_start;
     entry->guest_end = guest_addr_end;
-    entry->host_type = SHDW_REGION_ALLOCATED;
     entry->host_addr = host_addr;
     entry->write_hook = NULL;
     entry->read_hook = NULL;
@@ -147,7 +145,6 @@ int v3_hook_write_mem(struct v3_vm_info * vm, uint16_t core_id,
 
     entry->guest_start = guest_addr_start;
     entry->guest_end = guest_addr_end;
-    entry->host_type = SHDW_REGION_WRITE_HOOK;
     entry->host_addr = host_addr;
     entry->write_hook = write;
     entry->read_hook = NULL;
@@ -179,7 +176,6 @@ int v3_hook_full_mem(struct v3_vm_info * vm, uint16_t core_id,
 
     entry->guest_start = guest_addr_start;
     entry->guest_end = guest_addr_end;
-    entry->host_type = SHDW_REGION_FULL_HOOK;
     entry->host_addr = (addr_t)NULL;
     entry->write_hook = write;
     entry->read_hook = read;