Skip to contentSkip to conversation

When AioHandler->is_external=true?

Qemu-devel Dongli Zhang 2 participants 2 messages Nov 20, 2018 – Nov 21, 2018

lore
Share & tools
lore
#0 lore raw

Hi,

Would you please help explain in which case AioHandler->is_external is true, and when it is false?

I read about iothread and mainloop and I am little bit confused about it.

Thank you very much!

Dongli Zhang

#1 lore raw
Quoted 6 lines · Dongli Zhang

Hi,

Would you please help explain in which case AioHandler->is_external is true, and when it is false?

I read about iothread and mainloop and I am little bit confused about it.

VirtIO's ioeventfd is an example of is_external == true. It means the events handler on this fd may initiate more I/O, such as read/write on virtual storage backend, so are specially taken care of at certain points when we won't want more I/O requests to be processed, such as when a block job is completing, or in the middle of a QMP transaction.

Fam