5 #include <palacios/vmm_types.h>
6 #include <palacios/vmm_list.h>
11 uint32_t cpu_freq; // in kHZ
13 // Total number of guest run time cycles
16 // Cache value to help calculate the guest_tsc
17 ullong_t cached_host_tsc;
19 // The number of cycles pending for notification to the timers
20 //ullong_t pending_cycles;
24 struct list_head timers;
29 void (*update_time)(ullong_t cpu_cycles, ullong_t cpu_freq, void * priv_data);
35 struct vm_timer_ops * ops;
37 struct list_head timer_link;
41 void v3_init_time(struct vm_time * time_state);
46 int v3_add_timer(struct guest_info * info, struct vm_timer_ops * ops, void * private_data);
47 int v3_remove_timer(struct guest_info * info, struct vm_timer * timer);
50 void v3_update_time(struct guest_info * info, ullong_t cycles);