aboutsummaryrefslogtreecommitdiff
path: root/test/mocks.h
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2021-03-04 16:23:45 +0000
committerGitHub <noreply@github.com>2021-03-04 16:23:45 +0000
commita8242d117118d5191dad69a96e28a21d66fe8b50 (patch)
tree0e68a9f63e7bdb7933a732f90edaed2ca9e9b16c /test/mocks.h
parentb0cebe8340579c0a31b95af1e07bb7d214ac79c8 (diff)
downloadlibvfio-user-a8242d117118d5191dad69a96e28a21d66fe8b50.zip
libvfio-user-a8242d117118d5191dad69a96e28a21d66fe8b50.tar.gz
libvfio-user-a8242d117118d5191dad69a96e28a21d66fe8b50.tar.bz2
don't munmap(2) unmapped DMA region (#384)
Plus always notify user when DMA region is removed. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'test/mocks.h')
-rw-r--r--test/mocks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/mocks.h b/test/mocks.h
index 0c3d909..1bc6983 100644
--- a/test/mocks.h
+++ b/test/mocks.h
@@ -83,4 +83,7 @@ __real_device_is_stopped_and_copying(struct migration *migration);
bool
__real_should_exec_command(vfu_ctx_t *vfu_ctx, uint16_t cmd);
+int
+mock_unmap_dma(vfu_ctx_t *vfu_ctx, uint64_t iova, uint64_t len);
+
/* ex: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: */