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.


Fix to the time period calculation
Lei Xia [Thu, 14 Apr 2011 17:20:34 +0000 (12:20 -0500)]
palacios/src/devices/nvram.c

index f2c45a3..b8481a7 100644 (file)
@@ -472,7 +472,8 @@ static void nvram_update_timer(struct guest_info *vm,
     uint64_t period_us;
 
     
-    period_us = (1000000*cpu_cycles/cpu_freq);
+    // cpu_freq is in kHz
+    period_us = (1000000*cpu_cycles/(cpu_freq*1000));
 
     update_time(nvram_state,period_us);