Re: [Qemu-devel] [PATCH 0/4] qemu-timer: introduce usable pointer-free API

2015-01-09 Thread Fam Zheng
On Fri, 01/09 10:07, Paolo Bonzini wrote: > > > On 09/01/2015 03:10, Fam Zheng wrote: > > On Thu, 01/08 11:03, Paolo Bonzini wrote: > >> The current pointer free API for timers is very low level. Introduce > >> a new API that matches timer_new_ns/us/ms and also a new API timer_deinit > >> that c

Re: [Qemu-devel] [PATCH 0/4] qemu-timer: introduce usable pointer-free API

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 03:10, Fam Zheng wrote: > On Thu, 01/08 11:03, Paolo Bonzini wrote: >> The current pointer free API for timers is very low level. Introduce >> a new API that matches timer_new_ns/us/ms and also a new API timer_deinit >> that can be used instead of timer_free. >> >> Finally, mechani

Re: [Qemu-devel] [PATCH 0/4] qemu-timer: introduce usable pointer-free API

2015-01-08 Thread Fam Zheng
On Thu, 01/08 11:03, Paolo Bonzini wrote: > The current pointer free API for timers is very low level. Introduce > a new API that matches timer_new_ns/us/ms and also a new API timer_deinit > that can be used instead of timer_free. > > Finally, mechanically change timer macro names in vmstate, to

[Qemu-devel] [PATCH 0/4] qemu-timer: introduce usable pointer-free API

2015-01-08 Thread Paolo Bonzini
The current pointer free API for timers is very low level. Introduce a new API that matches timer_new_ns/us/ms and also a new API timer_deinit that can be used instead of timer_free. Finally, mechanically change timer macro names in vmstate, to make it clear that they accept a pointer. This prep