mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-04 09:04:39 -07: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
|
|
@ -303,7 +303,7 @@ BlockAIOCB *dma_blk_write(BlockBackend *blk,
|
|||
QEMUSGList *sg, uint64_t offset, uint32_t align,
|
||||
BlockCompletionFunc *cb, void *opaque);
|
||||
uint64_t dma_buf_read(void *ptr, int32_t len, QEMUSGList *sg);
|
||||
uint64_t dma_buf_write(void *ptr, int32_t len, QEMUSGList *sg);
|
||||
uint64_t dma_buf_write(void *ptr, int32_t len, QEMUSGList *sg, MemTxAttrs attrs);
|
||||
|
||||
void dma_acct_start(BlockBackend *blk, BlockAcctCookie *cookie,
|
||||
QEMUSGList *sg, enum BlockAcctType type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue