qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] What events should be handled in iohandler context?
@ 2019-07-15 15:19 Anton Kuchin
  2019-07-19  9:40 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Kuchin @ 2019-07-15 15:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Fam Zheng, Markus Armbruster, Stefan Hajnoczi

Hi,

I'm trying to understand contexts and handlers/notifiers and a bit 
confused about two contexts living in main loop: qemu_aio_context and 
iohandler_ctx. It is mentioned in the iohandler_ctx comment that 
qemu_aio_context can't be reused because "iohandlers mustn't be polled 
by aio_poll(qemu_aio_context)" but there is no exlanation why.

I tried to find examples and failed to understand why virtio-net 
eventfds are registred to iohandler_ctx with generic virtio callback 
virtio_device_start_ioeventfd_impl() but TX bottom-half and handlers of 
back-end TAP use qemu_aio_context.

Can you explain a little bit why we need some fds to be polled and some 
not to be polled? And how can I choose which context is right for me?

Thanks in advance for your help!

Anton



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

end of thread, other threads:[~2019-07-19  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-15 15:19 [Qemu-devel] What events should be handled in iohandler context? Anton Kuchin
2019-07-19  9:40 ` Stefan Hajnoczi

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).