diff options
| author | Rao Lei <lei.rao@intel.com> | 2022-01-14 13:09:02 +0800 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2022-02-14 11:50:44 +0800 |
| commit | 611382968069f54914e3cfff30f2a3b92c6219cd (patch) | |
| tree | 340811c3ff3725fc90c43fbcefacb64e57155092 /util/qemu-coroutine.c | |
| parent | 09313cdb44b2ccec218bc85f39073954f91ee9ea (diff) | |
| download | focaccia-qemu-611382968069f54914e3cfff30f2a3b92c6219cd.tar.gz focaccia-qemu-611382968069f54914e3cfff30f2a3b92c6219cd.zip | |
net/filter: Optimize filter_send to coroutine
This patch is to improve the logic of QEMU main thread sleep code in qemu_chr_write_buffer() where it can be blocked and can't run other coroutines during COLO IO stress test. Our approach is to put filter_send() in a coroutine. In this way, filter_send() will call qemu_coroutine_yield() in qemu_co_sleep_ns(), so that it can be scheduled out and QEMU main thread has opportunity to run other tasks. Signed-off-by: Lei Rao <lei.rao@intel.com> Signed-off-by: Zhang Chen <chen.zhang@intel.com> Reviewed-by: Li Zhijian <lizhijian@fujitsu.com> Reviewed-by: Zhang Chen <chen.zhang@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'util/qemu-coroutine.c')
0 files changed, 0 insertions, 0 deletions