X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_time.c;h=85c671e09d3ad8ffd87f185153625dd9f7c2c344;hb=3e5e5a12e64630d7a37ed32b8d7e2d993c79f7e0;hp=319d1585cc50965fce08751df237ef5687ee944a;hpb=dabe645642889502900e7783420052b1c5241354;p=palacios.git diff --git a/palacios/src/palacios/vmm_time.c b/palacios/src/palacios/vmm_time.c index 319d158..85c671e 100644 --- a/palacios/src/palacios/vmm_time.c +++ b/palacios/src/palacios/vmm_time.c @@ -60,13 +60,17 @@ int v3_remove_timer(struct guest_info * info, struct vm_timer * timer) { -void v3_update_time(struct guest_info * info, ullong_t cycles) { +void v3_update_time(struct guest_info * info, uint64_t cycles) { struct vm_timer * tmp_timer; - + + // cycles *= 8; + +// cycles /= 150; + info->time_state.guest_tsc += cycles; list_for_each_entry(tmp_timer, &(info->time_state.timers), timer_link) { - tmp_timer->ops->update_time(cycles, info->time_state.cpu_freq, tmp_timer->private_data); + tmp_timer->ops->update_time(info, cycles, info->time_state.cpu_freq, tmp_timer->private_data); }