Re: [PATCH] main-loop: Avoid some unnecessary poll calls

2024-03-06 Thread Ross Lagerwall
On Mon, Feb 12, 2024 at 11:45 AM Ross Lagerwall wrote: > > A common pattern is seen where a timer fires, the callback does some > work, then rearms the timer which implicitly calls qemu_notify_event(). > > qemu_notify_event() is supposed to interrupt the main loop's poll() by > calling qemu_bh_sch

[PATCH] main-loop: Avoid some unnecessary poll calls

2024-02-12 Thread Ross Lagerwall via
A common pattern is seen where a timer fires, the callback does some work, then rearms the timer which implicitly calls qemu_notify_event(). qemu_notify_event() is supposed to interrupt the main loop's poll() by calling qemu_bh_schedule(). In the case that this is being called from a main loop cal