X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_shadow_paging_32.h;h=749d37149edb203ac64b0cd1656f6dd30393a734;hb=2222a18071be7f4f665206a1bfa274b8f27f4fcc;hp=b43a5a65c43f2f9dc8a904200cb02bc8ea3b1f19;hpb=42fa79cec8ed9c44392a71c6253edab3abcb900e;p=palacios.git diff --git a/palacios/src/palacios/vmm_shadow_paging_32.h b/palacios/src/palacios/vmm_shadow_paging_32.h index b43a5a6..749d371 100644 --- a/palacios/src/palacios/vmm_shadow_paging_32.h +++ b/palacios/src/palacios/vmm_shadow_paging_32.h @@ -51,7 +51,7 @@ static int cache_page_tables_32(struct guest_info * info, addr_t pde) { // We assume that shdw_pg_state.guest_cr3 is pointing to the page tables we want to activate // We also assume that the CPU mode has not changed during this page table transition -static int activate_shadow_pt_32(struct guest_info * info) { +static inline int activate_shadow_pt_32(struct guest_info * info) { struct cr3_32 * shadow_cr3 = (struct cr3_32 *)&(info->ctrl_regs.cr3); struct cr3_32 * guest_cr3 = (struct cr3_32 *)&(info->shdw_pg_state.guest_cr3); int cached = 0; @@ -100,7 +100,7 @@ static int handle_shadow_pte32_fault(struct guest_info * info, pte32_t * guest_pt); -static int handle_shadow_pagefault_32(struct guest_info * info, addr_t fault_addr, pf_error_t error_code) { +static inline int handle_shadow_pagefault_32(struct guest_info * info, addr_t fault_addr, pf_error_t error_code) { pde32_t * guest_pd = NULL; pde32_t * shadow_pd = CR3_TO_PDE32_VA(info->ctrl_regs.cr3); addr_t guest_cr3 = CR3_TO_PDE32_PA(info->shdw_pg_state.guest_cr3); @@ -499,7 +499,7 @@ static int handle_shadow_pte32_fault(struct guest_info * info, /* If we start to optimize we should look up the guest pages in the cache... */ -static int handle_shadow_invlpg_32(struct guest_info * info, addr_t vaddr) { +static inline int handle_shadow_invlpg_32(struct guest_info * info, addr_t vaddr) { pde32_t * shadow_pd = (pde32_t *)CR3_TO_PDE32_VA(info->ctrl_regs.cr3); pde32_t * shadow_pde = (pde32_t *)&shadow_pd[PDE32_INDEX(vaddr)]; @@ -525,7 +525,5 @@ static int handle_shadow_invlpg_32(struct guest_info * info, addr_t vaddr) { shadow_pte->present = 0; } - - return 0; }