From: Jack Lange Date: Sat, 15 May 2010 00:05:07 +0000 (-0500) Subject: removed old memory region type enumeration X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9a9f61d177898cdc22d3f4b88762d493290a7d4;p=palacios.git removed old memory region type enumeration --- diff --git a/palacios/include/palacios/vmm_mem.h b/palacios/include/palacios/vmm_mem.h index 727655e..3cb091f 100644 --- a/palacios/include/palacios/vmm_mem.h +++ b/palacios/include/palacios/vmm_mem.h @@ -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 diff --git a/palacios/src/palacios/vmm_mem.c b/palacios/src/palacios/vmm_mem.c index cb3f144..c804970 100644 --- a/palacios/src/palacios/vmm_mem.c +++ b/palacios/src/palacios/vmm_mem.c @@ -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;