1 /* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
2 /* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
8 #include <palacios/vmm_types.h>
9 #include <palacios/vmm_list.h>
14 uint32_t cpu_freq; // in kHZ
16 // Total number of guest run time cycles
19 // Cache value to help calculate the guest_tsc
20 ullong_t cached_host_tsc;
22 // The number of cycles pending for notification to the timers
23 //ullong_t pending_cycles;
27 struct list_head timers;
34 void (*update_time)(ullong_t cpu_cycles, ullong_t cpu_freq, void * priv_data);
40 struct vm_timer_ops * ops;
42 struct list_head timer_link;
48 int v3_add_timer(struct guest_info * info, struct vm_timer_ops * ops, void * private_data);
49 int v3_remove_timer(struct guest_info * info, struct vm_timer * timer);
52 void v3_update_time(struct guest_info * info, ullong_t cycles);
57 void v3_init_time(struct guest_info * info);