mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
959384e74e
commit
392e48af34
6 changed files with 11 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue