summaryrefslogtreecommitdiffstats
path: root/hw/scsi/scsi-bus.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-12-15 23:02:21 +0100
committerPhilippe Mathieu-Daudé2021-12-31 01:05:27 +0100
commit392e48af3468d7f8e49db33fdc9e28b5f99276ce (patch)
tree274618168e58c5ec08008eb8bd1ef3a011946c63 /hw/scsi/scsi-bus.c
parentdma: Let dma_buf_rw() take MemTxAttrs argument (diff)
downloadqemu-392e48af3468d7f8e49db33fdc9e28b5f99276ce.tar.gz
qemu-392e48af3468d7f8e49db33fdc9e28b5f99276ce.tar.xz
qemu-392e48af3468d7f8e49db33fdc9e28b5f99276ce.zip
dma: Let dma_buf_write() take MemTxAttrs argument
Let devices specify transaction attributes when calling dma_buf_write(). Keep the default MEMTXATTRS_UNSPECIFIED in the few callers. Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211223115554.3155328-12-philmd@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-bus.c')
-rw-r--r--hw/scsi/scsi-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c
index 77325d8cc7..64a506a397 100644
--- a/hw/scsi/scsi-bus.c
+++ b/hw/scsi/scsi-bus.c
@@ -1423,7 +1423,7 @@ void scsi_req_data(SCSIRequest *req, int len)
if (req->cmd.mode == SCSI_XFER_FROM_DEV) {
req->resid = dma_buf_read(buf, len, req->sg);
} else {
- req->resid = dma_buf_write(buf, len, req->sg);
+ req->resid = dma_buf_write(buf, len, req->sg, MEMTXATTRS_UNSPECIFIED);
}
scsi_req_continue(req);
}