Re: [Qemu-devel] [PATCH] cpus: unify qemu_*_wait_io_event

2018-04-04 Thread Alex Bennée
Paolo Bonzini writes: > On 04/04/2018 12:34, Alex Bennée wrote: >> >> Paolo Bonzini writes: >> >>> Except for round-robin TCG, every other accelerator is using more or >>> less the same code around qemu_wait_io_event_common. The exception >>> is HAX, which also has to eat the dummy APC that is

Re: [Qemu-devel] [PATCH] cpus: unify qemu_*_wait_io_event

2018-04-04 Thread Paolo Bonzini
On 04/04/2018 12:34, Alex Bennée wrote: > > Paolo Bonzini writes: > >> Except for round-robin TCG, every other accelerator is using more or >> less the same code around qemu_wait_io_event_common. The exception >> is HAX, which also has to eat the dummy APC that is queued by >> qemu_cpu_kick_thr

Re: [Qemu-devel] [PATCH] cpus: unify qemu_*_wait_io_event

2018-04-04 Thread Alex Bennée
Paolo Bonzini writes: > Except for round-robin TCG, every other accelerator is using more or > less the same code around qemu_wait_io_event_common. The exception > is HAX, which also has to eat the dummy APC that is queued by > qemu_cpu_kick_thread. > > We can add the SleepEx call to qemu_wait_

[Qemu-devel] [PATCH] cpus: unify qemu_*_wait_io_event

2018-01-11 Thread Paolo Bonzini
Except for round-robin TCG, every other accelerator is using more or less the same code around qemu_wait_io_event_common. The exception is HAX, which also has to eat the dummy APC that is queued by qemu_cpu_kick_thread. We can add the SleepEx call to qemu_wait_io_event under "if (!tcg_enabled())"