RE: [QUESTION] About virtio and eventloop

2023-01-18 Thread zhukeqian via
Hi Stefan, this indeed helps, thank you. Keqian On Mon, 16 Jan 2023 at 03:20, zhukeqian via mailto:qemu-devel@nongnu.org>> wrote: > And if IO operation is blocked, is vCPU thread will blocked when do > deactivate? Yes, blk_drain() is a synchronous function. It blocks until in-flight I/O has fi

Re: [QUESTION] About virtio and eventloop

2023-01-16 Thread Stefan Hajnoczi
On Mon, 16 Jan 2023 at 03:20, zhukeqian via wrote: > And if IO operation is blocked, is vCPU thread will blocked when do > deactivate? Yes, blk_drain() is a synchronous function. It blocks until in-flight I/O has finished. The vcpu thread will be blocked in virtio_pci_common_write(). Stefan

答复: [QUESTION] About virtio and eventloop

2023-01-16 Thread zhukeqian via
; Wanghaibin (D) ; Zhangbo (Oscar) ; limingwang (A) ; Wangyan ; lihuachao 主题: [QUESTION] About virtio and eventloop Hi all maintainers and community friends, Recently I am reviewing and learning the virtio and eventloop implementation of latest QEMU, and now I have a questions for help: In g

[QUESTION] About virtio and eventloop

2023-01-16 Thread zhukeqian via
Hi all maintainers and community friends, Recently I am reviewing and learning the virtio and eventloop implementation of latest QEMU, and now I have a questions for help: In general, the IO requests of virtio is popped in iothread/mainloop and may submitted to "async IO Engine" (io_uring/linu