shadow_pml4e_access = v3_can_access_pml4e64(shadow_pml, fault_addr, error_code);
/* Was the page fault caused by the Guest's page tables? */
- if (is_guest_pf(guest_pml4e_access, shadow_pml4e_access) == 1) {
+ if (v3_is_guest_pf(guest_pml4e_access, shadow_pml4e_access) == 1) {
PrintDebug("Injecting PML4E pf to guest: (guest access error=%d) (pf error code=%d)\n",
*(uint_t *)&guest_pml4e_access, *(uint_t *)&error_code);
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
//
PrintDebug("Shadow Paging User access error (shadow_pml4e_access=0x%x, guest_pml4e_access=0x%x)\n",
shadow_pml4e_access, guest_pml4e_access);
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
} else if ((shadow_pml4e_access != PT_ACCESS_NOT_PRESENT) &&
(shadow_pml4e_access != PT_ACCESS_OK)) {
// inject page fault in guest
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
shadow_pdpe_access = v3_can_access_pdpe64(shadow_pdp, fault_addr, error_code);
/* Was the page fault caused by the Guest's page tables? */
- if (is_guest_pf(guest_pdpe_access, shadow_pdpe_access) == 1) {
+ if (v3_is_guest_pf(guest_pdpe_access, shadow_pdpe_access) == 1) {
PrintDebug("Injecting PDPE pf to guest: (guest access error=%d) (pf error code=%d)\n",
*(uint_t *)&guest_pdpe_access, *(uint_t *)&error_code);
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
//
PrintDebug("Shadow Paging User access error (shadow_pdpe_access=0x%x, guest_pdpe_access=0x%x)\n",
shadow_pdpe_access, guest_pdpe_access);
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
} else if ((shadow_pdpe_access != PT_ACCESS_NOT_PRESENT) &&
(shadow_pdpe_access != PT_ACCESS_OK)) {
// inject page fault in guest
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
shadow_pde_access = v3_can_access_pde64(shadow_pd, fault_addr, error_code);
/* Was the page fault caused by the Guest's page tables? */
- if (is_guest_pf(guest_pde_access, shadow_pde_access) == 1) {
+ if (v3_is_guest_pf(guest_pde_access, shadow_pde_access) == 1) {
PrintDebug("Injecting PDE pf to guest: (guest access error=%d) (pf error code=%d)\n",
*(uint_t *)&guest_pde_access, *(uint_t *)&error_code);
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
//
PrintDebug("Shadow Paging User access error (shadow_pdpe_access=0x%x, guest_pdpe_access=0x%x)\n",
shadow_pde_access, guest_pde_access);
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
} else if ((shadow_pde_access != PT_ACCESS_NOT_PRESENT) &&
(shadow_pde_access != PT_ACCESS_OK)) {
// inject page fault in guest
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
shadow_pte_access = v3_can_access_pte64(shadow_pt, fault_addr, error_code);
/* Was the page fault caused by the Guest's page tables? */
- if (is_guest_pf(guest_pte_access, shadow_pte_access) == 1) {
+ if (v3_is_guest_pf(guest_pte_access, shadow_pte_access) == 1) {
PrintDebug("Access error injecting pf to guest (guest access error=%d) (pf error code=%d)\n",
guest_pte_access, *(uint_t*)&error_code);
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}
} else {
// Inject page fault into the guest
- if (inject_guest_pf(info, fault_addr, error_code) == -1) {
+ if (v3_inject_guest_pf(info, fault_addr, error_code) == -1) {
PrintError("Could not inject guest page fault\n");
return -1;
}