X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm.c;h=52a0a5ff96bfeedc65b97c8b11414ab195336d9b;hb=564e23ffc7505181975a4f82a5e8b0c88e535945;hp=40dded06d9b078f88bbdfdd6f5370d56bfc4815d;hpb=8c767ddb04d3ac42d080d9f9f5f40196d6f8f217;p=palacios.git diff --git a/palacios/src/palacios/svm.c b/palacios/src/palacios/svm.c index 40dded0..52a0a5f 100644 --- a/palacios/src/palacios/svm.c +++ b/palacios/src/palacios/svm.c @@ -199,7 +199,8 @@ static void Init_VMCB_BIOS(vmcb_t * vmcb, struct guest_info *vm_info) { if (vm_info->shdw_pg_mode == SHADOW_PAGING) { PrintDebug("Creating initial shadow page table\n"); - vm_info->direct_map_pt = (addr_t)create_passthrough_pde32_pts(vm_info); + vm_info->direct_map_pt = V3_PAddr((addr_t)create_passthrough_pde32_pts(vm_info)); + vm_info->shdw_pg_state.shadow_cr3 |= (vm_info->direct_map_pt & ~0xfff); vm_info->shdw_pg_state.guest_cr0 = 0x0000000000000010LL; PrintDebug("Created\n"); @@ -308,7 +309,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); @@ -320,7 +321,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 @@ -334,11 +335,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);