X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_time.h;h=c9248b8800131a71d7439d3679788bc86015dfa5;hb=b6d68a6d671dcd403749fcf317482773895b2a0d;hp=3255acaee6495c8084973d100b5fcbbd05d7249d;hpb=e02cc15e36e8f5d7ee66390986351748dd9a16a1;p=palacios-OLD.git diff --git a/palacios/include/palacios/vmm_time.h b/palacios/include/palacios/vmm_time.h index 3255aca..c9248b8 100644 --- a/palacios/include/palacios/vmm_time.h +++ b/palacios/include/palacios/vmm_time.h @@ -93,11 +93,8 @@ static inline uint64_t v3_get_host_time(struct vm_time *t) { // Returns *monotonic* guest time. static inline uint64_t v3_get_guest_time(struct vm_time *t) { #ifdef CONFIG_TIME_HIDE_VM_COST - if (t->exit_time) { - return t->exit_time + t->guest_host_offset; - } else { - return v3_get_host_time(t) + t->guest_host_offset; - } + V3_ASSERT(t->exit_time); + return t->exit_time + t->guest_host_offset; #else return v3_get_host_time(t) + t->guest_host_offset; #endif