X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_ctrl_regs.c;h=4dba7372f4d6c8584ef318bfa20a9b97917e676e;hb=b07ca7a7edd31d34a8dc613e3d208bbeedd44661;hp=58d0465be264a8546130acd5e9f938c9edbdb75a;hpb=684409c4ad29c0f06167bebf2bb51e21374a6840;p=palacios-OLD.git diff --git a/palacios/src/palacios/vmm_ctrl_regs.c b/palacios/src/palacios/vmm_ctrl_regs.c index 58d0465..4dba737 100644 --- a/palacios/src/palacios/vmm_ctrl_regs.c +++ b/palacios/src/palacios/vmm_ctrl_regs.c @@ -579,7 +579,7 @@ int handle_cr3_write(struct guest_info * info) { delete_page_tables_pde32((pde32_t *)CR3_TO_PDE32(*(uint_t*)shadow_cr3)); PrintDebug("Old Shadow CR3=%x; Old Guest CR3=%x\n", - info->shdw_pg_state.shadow_cr3, info->shdw_pg_state.guest_cr3); + *(uint_t*)shadow_cr3, *(uint_t*)guest_cr3); *guest_cr3 = *new_cr3; @@ -598,7 +598,8 @@ int handle_cr3_write(struct guest_info * info) { shadow_cr3->pdt_base_addr = PD32_BASE_ADDR(shadow_pt); PrintDebug("New Shadow CR3=%x; New Guest CR3=%x\n", - info->shdw_pg_state.shadow_cr3, info->shdw_pg_state.guest_cr3); + *(uint_t*)shadow_cr3, *(uint_t*)guest_cr3); + if (info->mem_mode == VIRTUAL_MEM) {