X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_time.h;h=9f1c432138a38dda5cfa14f96ad49f43ddc90698;hb=5b1f618cf74dbcd7e490fa3fe4da5a4c53d79b5d;hp=74c7584318bc8b1c202161bd72afa61983a41e27;hpb=99335f2927daf2c522ecb9ea246fbd68dd2000bb;p=palacios.git diff --git a/palacios/include/palacios/vmm_time.h b/palacios/include/palacios/vmm_time.h index 74c7584..9f1c432 100644 --- a/palacios/include/palacios/vmm_time.h +++ b/palacios/include/palacios/vmm_time.h @@ -48,26 +48,32 @@ 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; }; // Basic functions for handling passage of time in palacios -void v3_init_time(struct guest_info * info); -int v3_start_time(struct guest_info * info); -int v3_adjust_time(struct guest_info * info); +void v3_init_time_core(struct guest_info * core); +int v3_init_time_vm(struct v3_vm_info * vm); + +void v3_deinit_time_core(struct guest_info * core); +void v3_deinit_time_vm(struct v3_vm_info * vm); + + +int v3_start_time(struct guest_info * core); +int v3_adjust_time(struct guest_info * core); // 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.