Re: [Qemu-devel] [RFC 2/6] monitor: Simplify event throttling

2015-09-28 Thread Markus Armbruster
Eric Blake writes: > On 09/25/2015 08:00 AM, Markus Armbruster wrote: >> The event throttling state machine is hard to understand. I'm not >> sure it's entirely correct. Rewrite it in a more straightforward >> manner: >> >> State 1: No event sent recently (less than evconf->rate ns ago) >> >>

Re: [Qemu-devel] [RFC 2/6] monitor: Simplify event throttling

2015-09-25 Thread Eric Blake
On 09/25/2015 08:00 AM, Markus Armbruster wrote: > The event throttling state machine is hard to understand. I'm not > sure it's entirely correct. Rewrite it in a more straightforward > manner: > > State 1: No event sent recently (less than evconf->rate ns ago) > > Invariant: evstate->timer

[Qemu-devel] [RFC 2/6] monitor: Simplify event throttling

2015-09-25 Thread Markus Armbruster
The event throttling state machine is hard to understand. I'm not sure it's entirely correct. Rewrite it in a more straightforward manner: State 1: No event sent recently (less than evconf->rate ns ago) Invariant: evstate->timer is not pending, evstate->qdict is null On event: send eve