X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_shadow_paging_32.h;fp=palacios%2Fsrc%2Fpalacios%2Fvmm_shadow_paging_32.h;h=755c9a685f3dbb71c34329bf4a16a31d1cdf1cc9;hb=058a3adde5893927ae056a1d8fbccd5191d2446f;hp=d9d54f4d59dd45b98823b27656863a6518e38d4b;hpb=0dc6c1ec345d5c48e348b7e6532e5dcec00fa2ff;p=palacios.git diff --git a/palacios/src/palacios/vmm_shadow_paging_32.h b/palacios/src/palacios/vmm_shadow_paging_32.h index d9d54f4..755c9a6 100644 --- a/palacios/src/palacios/vmm_shadow_paging_32.h +++ b/palacios/src/palacios/vmm_shadow_paging_32.h @@ -287,8 +287,7 @@ static int handle_large_pagefault_32(struct guest_info * info, struct v3_shadow_region * shdw_reg = v3_get_shadow_region(info, guest_fault_pa); - if ((shdw_reg == NULL) || - (shdw_reg->host_type == SHDW_REGION_INVALID)) { + if (shdw_reg == NULL) { // Inject a machine check in the guest PrintDebug("Invalid Guest Address in page table (0x%p)\n", (void *)guest_fault_pa); v3_raise_exception(info, MC_EXCEPTION); @@ -395,8 +394,7 @@ static int handle_shadow_pte32_fault(struct guest_info * info, struct v3_shadow_region * shdw_reg = v3_get_shadow_region(info, guest_pa); - if ((shdw_reg == NULL) || - (shdw_reg->host_type == SHDW_REGION_INVALID)) { + if (shdw_reg == NULL) { // Inject a machine check in the guest PrintDebug("Invalid Guest Address in page table (0x%p)\n", (void *)guest_pa); v3_raise_exception(info, MC_EXCEPTION);