Re: [Qemu-devel] Question about aio_poll and glib aio_ctx_dispatch

2018-12-20 Thread Li Qiang
Fam Zheng 于2018年12月20日周四 上午9:26写道: > > > > On Dec 20, 2018, at 06:58, Li Qiang wrote: > > > > Hello Paolo > > > > Thanks for your kind reply. > > > > Yes, aio_poll and aio_ctx_dispatch mostly run in different threads, > though > > Sometimes they can run in a thread nested from Fam’s slides: > >

Re: [Qemu-devel] Question about aio_poll and glib aio_ctx_dispatch

2018-12-19 Thread Fam Zheng
> On Dec 20, 2018, at 06:58, Li Qiang wrote: > > Hello Paolo > > Thanks for your kind reply. > > Yes, aio_poll and aio_ctx_dispatch mostly run in different threads, though > Sometimes they can run in a thread nested from Fam’s slides: > →http://events17.linuxfoundation.org/sites/events/files

Re: [Qemu-devel] Question about aio_poll and glib aio_ctx_dispatch

2018-12-19 Thread Paolo Bonzini
On 19/12/18 11:05, Li Qiang wrote: > Sent it to qemu-devel. > > Li Qiang mailto:liq...@gmail.com>> 于2018年12月19日周 > 三 下午6:04写道: > > Hello Paolo, Stefan, Fam and all, > > Here I have a question about 'aio_poll'. > IIUC the 'aio_poll' is (mostly) used for synchronous IO > as I see a

Re: [Qemu-devel] Question about aio_poll and glib aio_ctx_dispatch

2018-12-19 Thread Li Qiang
Sent it to qemu-devel. Li Qiang 于2018年12月19日周三 下午6:04写道: > Hello Paolo, Stefan, Fam and all, > > Here I have a question about 'aio_poll'. > IIUC the 'aio_poll' is (mostly) used for synchronous IO > as I see a lot of code like this: > while(condition) > aio_poll(); > > However it seems the 'aio_