Stefan Hajnoczi b6948ab01d virtio-blk: add iothread-vq-mapping parameter
Add the iothread-vq-mapping parameter to assign virtqueues to IOThreads.
Store the vq:AioContext mapping in the new struct
VirtIOBlockDataPlane->vq_aio_context[] field and refactor the code to
use the per-vq AioContext instead of the BlockDriverState's AioContext.

Reimplement --device virtio-blk-pci,iothread= and non-IOThread mode by
assigning all virtqueues to the IOThread and main loop's AioContext in
vq_aio_context[], respectively.

The comment in struct VirtIOBlockDataPlane about EventNotifiers is
stale. Remove it.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20231220134755.814917-5-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2023-12-21 22:49:28 +01:00
..
2023-10-20 08:51:41 +02:00
2023-12-20 09:40:16 -05:00
2023-12-04 08:03:42 -05:00
2023-09-21 11:31:16 +03:00
2023-11-07 09:41:52 +08:00
2023-12-20 09:40:16 -05:00
2023-12-20 10:29:23 +01:00
2023-12-20 09:40:16 -05:00
2023-12-20 09:40:16 -05:00
2023-11-10 18:19:13 +01:00
2023-12-20 09:40:16 -05:00
2023-09-21 11:31:16 +03:00
2023-07-25 17:14:07 +03:00
2023-09-20 07:54:34 +03:00