Re: [Qemu-devel] [PATCH] hw/ptimer: Don't wrap around counter for expired timer that uses tick handler

2016-06-25 Thread Dmitry Osipenko
On 25.06.2016 13:04, Mark Cave-Ayland wrote: > On 24/06/16 21:29, Dmitry Osipenko wrote: > >> Software should see timer counter wrap around only after IRQ being triggered. >> Change returned counter value to "1" for the expired timer and avoid >> returning >> wrapped around counter value in

Re: [Qemu-devel] [PATCH] hw/ptimer: Don't wrap around counter for expired timer that uses tick handler

2016-06-25 Thread Mark Cave-Ayland
On 24/06/16 21:29, Dmitry Osipenko wrote: Software should see timer counter wrap around only after IRQ being triggered. Change returned counter value to "1" for the expired timer and avoid returning wrapped around counter value in periodic mode for the timer that has bottom-half handler setup,

[Qemu-devel] [PATCH] hw/ptimer: Don't wrap around counter for expired timer that uses tick handler

2016-06-24 Thread Dmitry Osipenko
Software should see timer counter wrap around only after IRQ being triggered. Change returned counter value to "1" for the expired timer and avoid returning wrapped around counter value in periodic mode for the timer that has bottom-half handler setup, assuming it is IRQ handler. This fixes