qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH v5 20/31] replay: recording and replaying cl


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH v5 20/31] replay: recording and replaying clock ticks
Date: Wed, 26 Nov 2014 11:52:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0


On 26/11/2014 11:40, Pavel Dovgalyuk wrote:
> +/* real time host monotonic timer implementation */
> +static inline int64_t get_clock_realtime_impl(void)
>  {
>      struct timeval tv;
>  
> @@ -708,6 +709,12 @@ static inline int64_t get_clock_realtime(void)
>      return tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000);
>  }
>  
> +/* real time host monotonic timer interface */
> +static inline int64_t get_clock_realtime(void)
> +{
> +    return REPLAY_CLOCK(REPLAY_CLOCK_HOST, get_clock_realtime_impl());
> +}
> +

Any reason to do this instead of using REPLAY_CLOCK in qemu_get_clock,
like you do for QEMU_CLOCK_VIRTUAL_RT?

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]