* [Qemu-devel] how to create threads like dataplane in qemu
@ 2017-04-01 3:54 PERSIST
2017-04-05 1:56 ` Fam Zheng
2017-04-06 10:37 ` Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: PERSIST @ 2017-04-01 3:54 UTC (permalink / raw)
To: qemu-devel
Hello!
I want to create a specific thread for each process in VM so that virtio block requests from each process can be sumbitted in the thread related to the process.
I tried to implement it by referring to dataplane,but I can not understand the source about dataplane.
What should I do?
I am not good at English.Please forgive me.
Best wishes
Zhiheng Tao
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] how to create threads like dataplane in qemu
2017-04-01 3:54 [Qemu-devel] how to create threads like dataplane in qemu PERSIST
@ 2017-04-05 1:56 ` Fam Zheng
2017-04-06 10:37 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Fam Zheng @ 2017-04-05 1:56 UTC (permalink / raw)
To: PERSIST; +Cc: qemu-devel
On Sat, 04/01 11:54, PERSIST wrote:
> Hello!
> I want to create a specific thread for each process in VM so that virtio block requests from each process can be sumbitted in the thread related to the process.
> I tried to implement it by referring to dataplane,but I can not understand the source about dataplane.
There are multiple abstraction layers between guest process and QEMU threads, I
don't think the model you describe is practical. In dataplane, requests are
submitted to host through virtio ioeventfd, and handled by the per-virtual
device thread. What are you trying to achieve here?
Fam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] how to create threads like dataplane in qemu
2017-04-01 3:54 [Qemu-devel] how to create threads like dataplane in qemu PERSIST
2017-04-05 1:56 ` Fam Zheng
@ 2017-04-06 10:37 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2017-04-06 10:37 UTC (permalink / raw)
To: PERSIST; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 985 bytes --]
On Sat, Apr 01, 2017 at 11:54:35AM +0800, PERSIST wrote:
> I want to create a specific thread for each process in VM so that virtio block requests from each process can be sumbitted in the thread related to the process.
> I tried to implement it by referring to dataplane,but I can not understand the source about dataplane.
> What should I do?
It sounds like QEMU can already do what you want:
1. Define -object iothread for each guest process that needs a
dedicated dataplane thread.
2. Define -device virtio-blk-pci,iothread=iothread for each block
device. It wasn't clear from your email but I'm assuming here that
every guest process operates on its own disk image file. QEMU does
not support true multiqueue disk I/O to a single image file yet.
You should also bind the iothreads to host logical CPUs, bind vcpu
threads to host logical CPUs, and bind the guest processes to vcpus.
That way each guest process has a dedicated host CPU and iothread.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-06 10:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-01 3:54 [Qemu-devel] how to create threads like dataplane in qemu PERSIST
2017-04-05 1:56 ` Fam Zheng
2017-04-06 10:37 ` Stefan Hajnoczi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.