> From: Paolo Bonzini [mailto:pbonz...@redhat.com]
> On 19/01/2018 09:44, Pavel Dovgalyuk wrote:
> >  static void qemu_wait_io_event(CPUState *cpu)
> >  {
> > +    qemu_mutex_lock_iothread();
> > +
> >      while (cpu_thread_is_idle(cpu)) {
> >          qemu_cond_wait(cpu->halt_cond, &qemu_global_mutex);
> >      }
> 
> This function locks the iothread and never unlocks it.  Please test your
> patches better.

Yes, there was kind of mess. Lock was inside the function and unlock outside,
that's why it worked for me.

Pavel Dovgalyuk


Reply via email to