+/*
+ * This file is part of the Palacios Virtual Machine Monitor developed
+ * by the V3VEE Project with funding from the United States National
+ * Science Foundation and the Department of Energy.
+ *
+ * The V3VEE Project is a joint project between Northwestern University
+ * and the University of New Mexico. You can find out more at
+ * http://www.v3vee.org
+ *
+ * Copyright (c) 2008, Jack Lange <jarusl@cs.northwestern.edu>
+ * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org>
+ * All rights reserved.
+ *
+ * Author: Jack Lange <jarusl@cs.northwestern.edu>
+ *
+ * This is free software. You are permitted to use,
+ * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
+ */
+
static inline int activate_shadow_pt_64(struct guest_info * info) {
struct cr3_64 * shadow_cr3 = (struct cr3_64 *)&(info->ctrl_regs.cr3);
PrintDebug("Handling PDP fault\n");
+ if (fault_addr==0) {
+ PrintDebug("Guest Page Tree for guest virtual address zero fault\n");
+ PrintGuestPageTree(info,fault_addr,(addr_t)(info->shdw_pg_state.guest_cr3));
+ PrintDebug("Host Page Tree for guest virtual address zero fault\n");
+ PrintHostPageTree(info,fault_addr,(addr_t)(info->ctrl_regs.cr3));
+ }
+
// Check the guest page permissions
guest_pdpe_access = v3_can_access_pdpe64(guest_pdp, fault_addr, error_code);
((pde64_2MB_t *)guest_pde)->dirty = 1;
shadow_pde->writable = guest_pde->writable;
- PrintDebug("Returning due to large page Write Error\n");
- PrintHostPageTree(info, fault_addr, info->ctrl_regs.cr3);
+ //PrintDebug("Returning due to large page Write Error\n");
+ //PrintHostPageTree(info, fault_addr, info->ctrl_regs.cr3);
return 0;
} else if ((shadow_pde_access != PT_ACCESS_NOT_PRESENT) &&
static inline int handle_shadow_invlpg_64(struct guest_info * info, addr_t vaddr) {
+ PrintDebug("INVLPG64 - %p\n",(void*)vaddr);
+
int ret = v3_drill_host_pt_64(info, info->ctrl_regs.cr3, vaddr, invalidation_cb_64, NULL);
if (ret == -1) {
PrintError("Page table drill returned error.... \n");