X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_time.h;h=46d1946614851dc64b25e9c8315ba1d53c1500da;hb=b4aaeaa7233244ad9d607a0077dbbce719833fe0;hp=74c7584318bc8b1c202161bd72afa61983a41e27;hpb=99335f2927daf2c522ecb9ea246fbd68dd2000bb;p=palacios.releases.git diff --git a/palacios/include/palacios/vmm_time.h b/palacios/include/palacios/vmm_time.h index 74c7584..46d1946 100644 --- a/palacios/include/palacios/vmm_time.h +++ b/palacios/include/palacios/vmm_time.h @@ -48,14 +48,14 @@ struct vm_time { struct list_head timers; }; -struct vm_timer_ops { +struct v3_timer_ops { void (*update_timer)(struct guest_info * info, ullong_t cpu_cycles, ullong_t cpu_freq, void * priv_data); void (*advance_timer)(struct guest_info * info, void * private_data); }; -struct vm_timer { +struct v3_timer { void * private_data; - struct vm_timer_ops * ops; + struct v3_timer_ops * ops; struct list_head timer_link; }; @@ -66,8 +66,8 @@ int v3_start_time(struct guest_info * info); int v3_adjust_time(struct guest_info * info); // Basic functions for attaching timers to the passage of time -int v3_add_timer(struct guest_info * info, struct vm_timer_ops * ops, void * private_data); -int v3_remove_timer(struct guest_info * info, struct vm_timer * timer); +struct v3_timer * v3_add_timer(struct guest_info * info, struct v3_timer_ops * ops, void * private_data); +int v3_remove_timer(struct guest_info * info, struct v3_timer * timer); void v3_update_timers(struct guest_info * info); // Functions to return the different notions of time in Palacios.