Re: [PATCH v4 1/5] extend libvhost to support IOThread and coroutine

2020-02-25 Thread Kevin Wolf
Am 18.02.2020 um 06:07 hat Coiby Xu geschrieben: > Previously libvhost dispatch events in its own GMainContext. Now vhost-user > client's kick event can be dispatched in block device drive's AioContext > thus IOThread is supported. And also allow vu_message_read and > vu_kick_cb to be replaced so Q

Re: [PATCH v4 1/5] extend libvhost to support IOThread and coroutine

2020-02-19 Thread Stefan Hajnoczi
On Tue, Feb 18, 2020 at 01:07:07PM +0800, Coiby Xu wrote: > +static bool vu_message_read(VuDev *dev, int conn_fd, VhostUserMsg *vmsg) > +{ > +vu_read_msg_cb read_msg; > +if (dev->co_iface) { > +read_msg = dev->co_iface->read_msg; > +} else { > +read_msg = vu_message_read

[PATCH v4 1/5] extend libvhost to support IOThread and coroutine

2020-02-17 Thread Coiby Xu
Previously libvhost dispatch events in its own GMainContext. Now vhost-user client's kick event can be dispatched in block device drive's AioContext thus IOThread is supported. And also allow vu_message_read and vu_kick_cb to be replaced so QEMU can run them as coroutines. Signed-off-by: Coiby Xu