]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio: extract iothread-vq-mapping.h API
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 11 Mar 2025 13:26:13 +0000 (21:26 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 13 Mar 2025 16:57:23 +0000 (17:57 +0100)
commitb50629c335804e193b51936867d6cb7ea3735d72
tree252d5514e4e90f2d6b000fbd7f9248b2c3ca0442
parent2fa67a7b1d7957dc0cc482136ba58c460463ecb6
virtio: extract iothread-vq-mapping.h API

The code that builds an array of AioContext pointers indexed by the
virtqueue is not specific to virtio-blk. virtio-scsi will need to do the
same thing, so extract the functions.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250311132616.1049687-11-stefanha@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/virtio-blk.c
hw/virtio/iothread-vq-mapping.c [new file with mode: 0644]
hw/virtio/meson.build
include/hw/virtio/iothread-vq-mapping.h [new file with mode: 0644]