diff options
author | Rao Lei | 2022-01-14 06:09:02 +0100 |
---|---|---|
committer | Jason Wang | 2022-02-14 04:50:44 +0100 |
commit | 611382968069f54914e3cfff30f2a3b92c6219cd (patch) | |
tree | 340811c3ff3725fc90c43fbcefacb64e57155092 /hw/intc/pnv_xive.c | |
parent | net/colo-compare.c: Update the default value comments (diff) | |
download | qemu-611382968069f54914e3cfff30f2a3b92c6219cd.tar.gz qemu-611382968069f54914e3cfff30f2a3b92c6219cd.tar.xz 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 'hw/intc/pnv_xive.c')
0 files changed, 0 insertions, 0 deletions