1 /* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
2 /* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
9 #include <palacios/vmm_types.h>
10 #include <palacios/vmm_list.h>
15 uint32_t cpu_freq; // in kHZ
17 // Total number of guest run time cycles
20 // Cache value to help calculate the guest_tsc
21 ullong_t cached_host_tsc;
23 // The number of cycles pending for notification to the timers
24 //ullong_t pending_cycles;
28 struct list_head timers;
35 void (*update_time)(ullong_t cpu_cycles, ullong_t cpu_freq, void * priv_data);
41 struct vm_timer_ops * ops;
43 struct list_head timer_link;
49 int v3_add_timer(struct guest_info * info, struct vm_timer_ops * ops, void * private_data);
50 int v3_remove_timer(struct guest_info * info, struct vm_timer * timer);
53 void v3_update_time(struct guest_info * info, ullong_t cycles);
58 void v3_init_time(struct guest_info * info);