Re: [Qemu-devel] [PATCH v7 19/23] qmp: isolate responses into io thread

2018-02-21 Thread Stefan Hajnoczi
On Wed, Jan 24, 2018 at 01:39:53PM +0800, Peter Xu wrote: > For those monitors who have enabled IO thread, we'll offload the > responding procedure into IO thread. The main reason is that chardev is > not thread safe, and we need to do all the read/write IOs in the same > thread. For use_io_thr=t

[Qemu-devel] [PATCH v7 19/23] qmp: isolate responses into io thread

2018-01-23 Thread Peter Xu
For those monitors who have enabled IO thread, we'll offload the responding procedure into IO thread. The main reason is that chardev is not thread safe, and we need to do all the read/write IOs in the same thread. For use_io_thr=true monitors, that thread is the IO thread. We do this isolation