uint32_t cpu_freq; // in kHZ
// Total number of guest run time cycles
- uint64_t_t guest_tsc;
+ uint64_t guest_tsc;
// Cache value to help calculate the guest_tsc
- uint64_t_t cached_host_tsc;
+ uint64_t cached_host_tsc;
// The number of cycles pending for notification to the timers
//ullong_t pending_cycles;
rdtscll(tmp_tsc);
v3_update_time(info, (tmp_tsc - info->time_state.cached_host_tsc));
- info->time_state.cached_hlt_tsc = 0;
rdtscll(info->time_state.cached_host_tsc);
// guest_ctrl->TSC_OFFSET = info->time_state.guest_tsc - info->time_state.cached_host_tsc;
// We do timer injection here to track real host time.
rdtscll(tmp_tsc);
v3_update_time(info, tmp_tsc - info->time_state.cached_host_tsc);
- info->time_state.cached_hlt_tsc = 0;
rdtscll(info->time_state.cached_host_tsc);
if (info->vm_info->run_state == VM_STOPPED) {