X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_time.c;h=357bae426fd635a4c40c72b9c8afd0bb22236546;hb=481925dd42fdf715897007abbc32d81bda2d2586;hp=2880f5d39974c09940985e126f20736d18679d39;hpb=305267e8eaabf7dffadd86abc323f7d1b231e388;p=palacios.git diff --git a/palacios/src/palacios/vmm_time.c b/palacios/src/palacios/vmm_time.c index 2880f5d..357bae4 100644 --- a/palacios/src/palacios/vmm_time.c +++ b/palacios/src/palacios/vmm_time.c @@ -96,6 +96,14 @@ int v3_start_time(struct guest_info * info) { return 0; } +int v3_offset_time( struct guest_info * info, sint64_t offset ) +{ + struct vm_time * time_state = &(info->time_state); +// PrintDebug("Adding additional offset of %lld to guest time.\n", offset); + time_state->guest_host_offset += offset; + return 0; +} + // Control guest time in relation to host time so that the two stay // appropriately synchronized to the extent possible. int v3_adjust_time(struct guest_info * info) { @@ -190,13 +198,7 @@ v3_time_enter_vm( struct guest_info * info ) return 0; } -int v3_offset_time( struct guest_info * info, sint64_t offset ) -{ - struct vm_time * time_state = &(info->time_state); -// PrintDebug("Adding additional offset of %lld to guest time.\n", offset); - time_state->guest_host_offset += offset; - return 0; -} + struct v3_timer * v3_add_timer(struct guest_info * info, struct v3_timer_ops * ops,