X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_time.h;h=329fce63d96b0b42575b084dff770c95fa98d421;hb=33bf43b34feba36dcbfa47f8f559e5862f531393;hp=3255acaee6495c8084973d100b5fcbbd05d7249d;hpb=e02cc15e36e8f5d7ee66390986351748dd9a16a1;p=palacios.git diff --git a/palacios/include/palacios/vmm_time.h b/palacios/include/palacios/vmm_time.h index 3255aca..329fce6 100644 --- a/palacios/include/palacios/vmm_time.h +++ b/palacios/include/palacios/vmm_time.h @@ -92,12 +92,9 @@ 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; - } +#ifdef V3_CONFIG_TIME_HIDE_VM_COST + 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