X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx.c;h=aba565635db79b294d09e4cff7f2c2338b5143c0;hp=2526f3dea8a5abd226d41a6b0111d2f77c25cff8;hb=0121a4503305424096e2b5c5bd3b6c3af2d813e5;hpb=ec01e0d8a7a3debd92ce2787a9d8bfd15d38df04 diff --git a/palacios/src/palacios/vmx.c b/palacios/src/palacios/vmx.c index 2526f3d..aba5656 100644 --- a/palacios/src/palacios/vmx.c +++ b/palacios/src/palacios/vmx.c @@ -652,6 +652,11 @@ int v3_vmx_enter(struct guest_info * info) { update_irq_entry_state(info); #endif + { + addr_t guest_cr3; + vmcs_read(VMCS_GUEST_CR3, &guest_cr3); + vmcs_write(VMCS_GUEST_CR3, guest_cr3); + } rdtscll(info->time_state.cached_host_tsc); @@ -682,6 +687,8 @@ int v3_vmx_enter(struct guest_info * info) { /* Update guest state */ v3_vmx_save_vmcs(info); + // info->cpl = info->segments.cs.selector & 0x3; + info->mem_mode = v3_get_vm_mem_mode(info); info->cpu_mode = v3_get_vm_cpu_mode(info);