diff options
| author | Mattias Nissler <mnissler@rivosinc.com> | 2023-09-07 06:04:23 -0700 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-05-08 19:43:23 +0200 |
| commit | 5c62719710bab66a98f68ebdba333e2240ed6668 (patch) | |
| tree | c22b19340c29987b1b9b653888815c370909d236 /system/dma-helpers.c | |
| parent | d5e268197aa2ba89bc0540717c72be2c69568b62 (diff) | |
| download | focaccia-qemu-5c62719710bab66a98f68ebdba333e2240ed6668.tar.gz focaccia-qemu-5c62719710bab66a98f68ebdba333e2240ed6668.zip | |
system/physmem: Propagate AddressSpace to MapClient helpers
Propagate AddressSpace handler to following helpers: - register_map_client() - unregister_map_client() - notify_map_clients[_locked]() Rename them using 'address_space_' prefix instead of 'cpu_'. The AddressSpace argument will be used in the next commit. Reviewed-by: Peter Xu <peterx@redhat.com> Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Mattias Nissler <mnissler@rivosinc.com> Message-ID: <20240507094210.300566-2-mnissler@rivosinc.com> [PMD: Split patch, part 1/2] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'system/dma-helpers.c')
| -rw-r--r-- | system/dma-helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/dma-helpers.c b/system/dma-helpers.c index 9b221cf94e..74013308f5 100644 --- a/system/dma-helpers.c +++ b/system/dma-helpers.c @@ -169,7 +169,7 @@ static void dma_blk_cb(void *opaque, int ret) if (dbs->iov.size == 0) { trace_dma_map_wait(dbs); dbs->bh = aio_bh_new(ctx, reschedule_dma, dbs); - cpu_register_map_client(dbs->bh); + address_space_register_map_client(dbs->sg->as, dbs->bh); return; } @@ -197,7 +197,7 @@ static void dma_aio_cancel(BlockAIOCB *acb) } if (dbs->bh) { - cpu_unregister_map_client(dbs->bh); + address_space_unregister_map_client(dbs->sg->as, dbs->bh); qemu_bh_delete(dbs->bh); dbs->bh = NULL; } |