X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm.c;h=95bb5867534cbb089f6c9cc4862e36dcc2fd0f8e;hb=5c6233eb88fe33c60907d72e8b5d8b13d4084a9e;hp=7d91c4592e38c1fde06e43189d4c32f39fadf121;hpb=ad434b4991ec5ab7e3f5e24edbaad1fb29a12feb;p=palacios.git diff --git a/palacios/src/palacios/svm.c b/palacios/src/palacios/svm.c index 7d91c45..95bb586 100644 --- a/palacios/src/palacios/svm.c +++ b/palacios/src/palacios/svm.c @@ -201,11 +201,15 @@ static void Init_VMCB_BIOS(vmcb_t * vmcb, struct guest_info *vm_info) { PrintDebug("Creating initial shadow page table\n"); vm_info->direct_map_pt = (addr_t)V3_PAddr(create_passthrough_pde32_pts(vm_info)); - vm_info->shdw_pg_state.shadow_cr3 |= (vm_info->direct_map_pt & ~0xfff); + //vm_info->shdw_pg_state.shadow_cr3 |= (vm_info->direct_map_pt & ~0xfff); + vm_info->shdw_pg_state.shadow_cr3 = 0; vm_info->shdw_pg_state.guest_cr0 = 0x0000000000000010LL; PrintDebug("Created\n"); - guest_state->cr3 = vm_info->shdw_pg_state.shadow_cr3; + //guest_state->cr3 = vm_info->shdw_pg_state.shadow_cr3; + + guest_state->cr3 = vm_info->direct_map_pt; + //PrintDebugPageTables((pde32_t*)(vm_info->shdw_pg_state.shadow_cr3.e_reg.low)); @@ -309,7 +313,7 @@ static int start_svm_guest(struct guest_info *info) { v3_clgi(); - PrintDebug("SVM Entry to rip=%p...\n", (void *)info->rip); + //PrintDebug("SVM Entry to rip=%p...\n", (void *)info->rip); v3_get_msr(0xc0000101, &vm_cr_high, &vm_cr_low); @@ -321,7 +325,7 @@ static int start_svm_guest(struct guest_info *info) { rdtscll(tmp_tsc); v3_set_msr(0xc0000101, vm_cr_high, vm_cr_low); - PrintDebug("SVM Returned\n"); + //PrintDebug("SVM Returned\n"); #if PrintDebug @@ -335,11 +339,11 @@ static int start_svm_guest(struct guest_info *info) { v3_update_time(info, tmp_tsc - info->time_state.cached_host_tsc); num_exits++; - PrintDebug("Turning on global interrupts\n"); + //PrintDebug("Turning on global interrupts\n"); v3_stgi(); - PrintDebug("SVM Exit number %d\n", num_exits); + //PrintDebug("SVM Exit number %d\n", num_exits);