Re: [Qemu-devel] [RFC PATCH v8 12/21] replay: recording and replaying different timers

2015-02-04 Thread Paolo Bonzini
On 03/02/2015 15:05, Pavel Dovgaluk wrote: What about just making qemu_get_timedate use qemu_clock_get_ns(QEMU_CLOCK_HOST) instead of time()? This would just work using the infrastructure of the previous patch. I can get rid of these calls, but localtime() function used in

Re: [Qemu-devel] [RFC PATCH v8 12/21] replay: recording and replaying different timers

2015-02-03 Thread Pavel Dovgaluk
From: Paolo Bonzini [mailto:pbonz...@redhat.com] On 22/01/2015 09:52, Pavel Dovgalyuk wrote: This patch introduces functions for recording and replaying realtime sources, that do not use qemu-clock interface. These include return value of time() function in time_t and struct tm forms.

Re: [Qemu-devel] [RFC PATCH v8 12/21] replay: recording and replaying different timers

2015-01-29 Thread Paolo Bonzini
On 22/01/2015 09:52, Pavel Dovgalyuk wrote: This patch introduces functions for recording and replaying realtime sources, that do not use qemu-clock interface. These include return value of time() function in time_t and struct tm forms. Patch also adds warning to get_timedate function to

[Qemu-devel] [RFC PATCH v8 12/21] replay: recording and replaying different timers

2015-01-22 Thread Pavel Dovgalyuk
This patch introduces functions for recording and replaying realtime sources, that do not use qemu-clock interface. These include return value of time() function in time_t and struct tm forms. Patch also adds warning to get_timedate function to prevent its usage in recording mode, because it may