Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


modified copyright tags
[palacios.git] / palacios / src / palacios / vmm_time.c
index a7cd626..2bb88b3 100644 (file)
@@ -1,14 +1,15 @@
+/* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
+
+
 #include "palacios/vmm_time.h"
 #include "palacios/vmm.h"
 
 
-void v3_init_time(struct vm_time * time_state) {
-  ullong_t cpu_khz = 0;
-
-  V3_CPU_KHZ(cpu_khz);
-  time_state->cpu_freq = cpu_khz;
+void v3_init_time(struct guest_info * info) {
+  struct vm_time * time_state = &(info->time_state);
 
-  PrintDebug("CPU KHZ = HI=%x LO=%x\n", (uint_t)(cpu_khz >> 32), (uint_t)cpu_khz);
+  time_state->cpu_freq = V3_CPU_KHZ();
  
   time_state->guest_tsc = 0;
   time_state->cached_host_tsc = 0;