diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2021-02-17 13:15:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 13:15:35 +0000 |
commit | 47a6fdbb8b3e459ba4f7815269bae0abf95d29a6 (patch) | |
tree | fadcb3199e69d75a29b707915612c1ba43d8fe4f /test/mocks.h | |
parent | e4e0ebde2c25f3011d20b6a2f1b1b8f510b09d9e (diff) | |
download | libvfio-user-47a6fdbb8b3e459ba4f7815269bae0abf95d29a6.zip libvfio-user-47a6fdbb8b3e459ba4f7815269bae0abf95d29a6.tar.gz libvfio-user-47a6fdbb8b3e459ba4f7815269bae0abf95d29a6.tar.bz2 |
add unit tests for handle dirty pages w/o DMA (#348)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'test/mocks.h')
-rw-r--r-- | test/mocks.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mocks.h b/test/mocks.h index 97a23b7..67a67b5 100644 --- a/test/mocks.h +++ b/test/mocks.h @@ -29,6 +29,7 @@ */ #include <stdbool.h> +#include "private.h" void unpatch_all(void); @@ -36,4 +37,9 @@ void patch(void *fn); bool is_patched(void *fn); +int +handle_dirty_pages(vfu_ctx_t *vfu_ctx, uint32_t size, + struct iovec **iovecs, size_t *nr_iovecs, + struct vfio_iommu_type1_dirty_bitmap *dirty_bitmap); + /* ex: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: */ |