X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_mem.c;h=dfbe0e8e8a91d618c322dcf74198cf0b914dd304;hp=39939a108015152231be914138029ebed4aef762;hb=472dec28ebae078e8bf90ff48d1693c1ef8a7b85;hpb=1a8382a1bd0a4e537b28d7906399bee2bff043de diff --git a/palacios/src/palacios/vmm_mem.c b/palacios/src/palacios/vmm_mem.c index 39939a1..dfbe0e8 100644 --- a/palacios/src/palacios/vmm_mem.c +++ b/palacios/src/palacios/vmm_mem.c @@ -2,7 +2,7 @@ #include #include -extern struct vmm_os_hooks * os_hooks; + void init_shadow_region(shadow_region_t * entry, @@ -23,7 +23,7 @@ int add_shadow_region_passthrough( struct guest_info * guest_info, addr_t guest_addr_end, addr_t host_addr_start) { - shadow_region_t * entry = os_hooks->malloc(sizeof(shadow_region_t)); + shadow_region_t * entry = (shadow_region_t *)V3_Malloc(sizeof(shadow_region_t)); init_shadow_region(entry, guest_addr_start, guest_addr_end, GUEST_REGION_PHYSICAL_MEMORY, HOST_REGION_PHYSICAL_MEMORY);