qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* qemu_coroutine_yield switches thread?
@ 2020-04-16  8:06 Stefan Reiter
  2020-04-16  8:28 ` Kevin Wolf
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Reiter @ 2020-04-16  8:06 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: kwolf, vsementsov, slp, mreitz, stefanha, jsnow, dietmar

Hi list,

quick question: Can a resume from a qemu_coroutine_yield happen in a 
different thread?

Well, it can, since I'm seeing it happen, but is that okay or a bug?

I.e. in a backup-job the following can sporadically trip:

   unsigned long tid = pthread_self();
   qemu_get_current_aio_context(); // returns main context
   qemu_coroutine_yield();
   qemu_get_current_aio_context(); // still returns main context, but:
   assert(tid == pthread_self()); // this fails

It seems to be called from a vCPU thread when it happens. VM uses no 
iothreads.

~



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-16 11:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-16  8:06 qemu_coroutine_yield switches thread? Stefan Reiter
2020-04-16  8:28 ` Kevin Wolf
2020-04-16 10:09   ` Dietmar Maurer
2020-04-16 11:04     ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).