aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2025-03-11 21:26:06 +0800
committerKevin Wolf <kwolf@redhat.com>2025-03-13 17:57:23 +0100
commit7eecba37788f48d34c015954f1207cc7b52728f5 (patch)
tree3079d23a4c6c5d0c524a02a99c2d71302f0d60b4 /include/hw
parenta89c3c9b2cc4107658c7260ecf329d869888fd51 (diff)
downloadqemu-7eecba37788f48d34c015954f1207cc7b52728f5.zip
qemu-7eecba37788f48d34c015954f1207cc7b52728f5.tar.gz
qemu-7eecba37788f48d34c015954f1207cc7b52728f5.tar.bz2
scsi: track per-SCSIRequest AioContext
Until now, a SCSIDevice's I/O requests have run in a single AioContext. In order to support multiple IOThreads it will be necessary to move to the concept of a per-SCSIRequest AioContext. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-ID: <20250311132616.1049687-4-stefanha@redhat.com> Tested-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/scsi/scsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h
index c3d5e17..ffc4820 100644
--- a/include/hw/scsi/scsi.h
+++ b/include/hw/scsi/scsi.h
@@ -24,6 +24,7 @@ struct SCSIRequest {
SCSIBus *bus;
SCSIDevice *dev;
const SCSIReqOps *ops;
+ AioContext *ctx;
uint32_t refcount;
uint32_t tag;
uint32_t lun;