diff options
author | swapnili <swapnil.ingle@nutanix.com> | 2020-12-17 14:17:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 14:17:38 +0100 |
commit | ff70ca1a9f97feae62e326eca39624c13aa8117f (patch) | |
tree | 9e3c8933c2614bc12d4d4002de054444d1886ec5 /include | |
parent | ff260aa40b9b6f44e923d8efd209cc26a39aad33 (diff) | |
download | libvfio-user-ff70ca1a9f97feae62e326eca39624c13aa8117f.zip libvfio-user-ff70ca1a9f97feae62e326eca39624c13aa8117f.tar.gz libvfio-user-ff70ca1a9f97feae62e326eca39624c13aa8117f.tar.bz2 |
General fixes (#213)
* Reorg vfu_create_ctx()
* Unconditionally call dma_controller_create() in vfu_setup_device_dma_cb().
* Added UT for vfu_setup_device_dma_cb()
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libvfio-user.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h index 1a336374..89e1c85 100644 --- a/include/libvfio-user.h +++ b/include/libvfio-user.h @@ -287,7 +287,9 @@ typedef void (vfu_map_dma_cb_t) (void *pvt, uint64_t iova, uint64_t len); typedef int (vfu_unmap_dma_cb_t) (void *pvt, uint64_t iova, uint64_t len); /** - * Setup device DMA map/unmap callbacks. + * Setup device DMA map/unmap callbacks. This will also enable bookkeeping of + * DMA regions received from client, otherwise they will be just acknowledged. + * * @vfu_ctx: the libvfio-user context * @map_dma: DMA region map callback (optional) * @unmap_dma: DMA region unmap callback (optional) |