X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_paging_debug.h;h=6a592b40dcb456c39ce098baf927bcc8b6db99e8;hb=1b9bba809bf9c1d6ada56c7e4f8910e7afb82557;hp=f39ff4dc019ca2f91e63f3110d25a711c88b9ad0;hpb=266af4b5b19da7bee8e7445288c7c1cb3ee194c7;p=palacios.git diff --git a/palacios/src/palacios/vmm_paging_debug.h b/palacios/src/palacios/vmm_paging_debug.h index f39ff4d..6a592b4 100644 --- a/palacios/src/palacios/vmm_paging_debug.h +++ b/palacios/src/palacios/vmm_paging_debug.h @@ -410,9 +410,9 @@ void PrintPTEntry(struct guest_info * info, page_type_t type, addr_t vaddr, void } -void PrintHostPageTables(struct guest_info * info, addr_t cr3) { +void PrintHostPageTables(struct guest_info * info, v3_cpu_mode_t cpu_mode, addr_t cr3) { PrintDebug("CR3: %p\n", (void *)cr3); - switch (info->cpu_mode) { + switch (cpu_mode) { case PROTECTED: v3_walk_host_pt_32(info, cr3, print_page_walk_cb, NULL); break; @@ -434,6 +434,7 @@ void PrintHostPageTables(struct guest_info * info, addr_t cr3) { void PrintGuestPageTables(struct guest_info * info, addr_t cr3) { PrintDebug("CR3: %p\n", (void *)cr3); switch (info->cpu_mode) { + case REAL: case PROTECTED: v3_walk_guest_pt_32(info, cr3, print_page_walk_cb, NULL); break;