X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_time.c;h=82a50eb35deab5eeed3f31c51b7905687d97563b;hb=7cdedeb7a01b51c5242cce94924f2ea246008e7d;hp=a7cd6265e40489583ca0b9969ae8f7f186cfaad1;hpb=90b8236597004a37a9d5acb33a1b1f987fe9070c;p=palacios.git diff --git a/palacios/src/palacios/vmm_time.c b/palacios/src/palacios/vmm_time.c index a7cd626..82a50eb 100644 --- a/palacios/src/palacios/vmm_time.c +++ b/palacios/src/palacios/vmm_time.c @@ -1,14 +1,30 @@ +/* + * This file is part of the Palacios Virtual Machine Monitor developed + * by the V3VEE Project with funding from the United States National + * Science Foundation and the Department of Energy. + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2008, Jack Lange + * Copyright (c) 2008, The V3VEE Project + * All rights reserved. + * + * Author: Jack Lange + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "V3VEE_LICENSE". + */ + #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;