X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm.c;h=89e33d35453311429700c820789c200d90e47a8c;hb=e02cc15e36e8f5d7ee66390986351748dd9a16a1;hp=384b355d62a4abe85d9da46235a318bd0d5d5052;hpb=d54fc24e6cfb62cc2fedfb63d3ae68ff636e3a01;p=palacios-OLD.git diff --git a/palacios/src/palacios/svm.c b/palacios/src/palacios/svm.c index 384b355..89e33d3 100644 --- a/palacios/src/palacios/svm.c +++ b/palacios/src/palacios/svm.c @@ -509,9 +509,7 @@ int v3_svm_enter(struct guest_info * info) { } #endif -#ifdef CONFIG_TIME_HIDE_VM_COST - v3_restart_time(info); -#endif + v3_time_enter_vm(info); guest_ctrl->TSC_OFFSET = v3_tsc_host_offset(&info->time_state); //V3_Print("Calling v3_svm_launch\n"); @@ -522,15 +520,9 @@ int v3_svm_enter(struct guest_info * info) { v3_last_exit = (uint32_t)(guest_ctrl->exit_code); -#ifdef CONFIG_TIME_HIDE_VM_COST - v3_pause_time(info); -#ifdef CONFIG_TIME_HIDE_EXIT_COST - v3_offset_time(info, -CONFIG_TIME_EXIT_COST_ADJUST); -#endif -#endif + // Immediate exit from VM time bookkeeping + v3_time_exit_vm(info); - //PrintDebug("SVM Returned\n"); - info->num_exits++; // Save Guest state from VMCB