From 47a6fdbb8b3e459ba4f7815269bae0abf95d29a6 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Wed, 17 Feb 2021 13:15:35 +0000 Subject: add unit tests for handle dirty pages w/o DMA (#348) Signed-off-by: Thanos Makatos Reviewed-by: Swapnil Ingle --- test/mocks.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/mocks.h') 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 +#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: */ -- cgit v1.1