On 2017年06月13日 19:24, wang.yong...@zte.com.cn wrote:
>>Char-fe.c for sure which means frontend of chardev.
>>> These API can only watch events in the qemu main thread, not in the
>>> IOThread.
>>>
>>> I had to use the qio_channel_socket_set_aio_fd_handler function to
>>>
>>> monitor the char event in the IOThread,so the io channel is used her
>>>
>>The point is not touching the internal structure of chardev like ioc,
>>instead extend its helper like e.g qemu_chr_fe_set_handlers() and let it
>>set aio handlers,
>Currently character devices are tied to the GSource API. However,I'll
try to submit a patch first.
Hi Jason,
I have investigated the change, which involves a great deal.
We have to convert the user of those APIs (the external API is
qemu_chr_fe_add_watch) from GSource/QIOChannel to AioContext.
Can we join this series first? and replace GSource with AioContext in
a future patch.
Touching internal chardev member out of its scope is bad, we need to
seek a solution for this.
Paolo, Marc and Stefan:
We want let chardev front-end run in colo comparing IOThread. This looks
not supported by current chardev frontend API. Any idea/suggestion on
how to achieve this?
Thanks