From a8242d117118d5191dad69a96e28a21d66fe8b50 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Thu, 4 Mar 2021 16:23:45 +0000 Subject: don't munmap(2) unmapped DMA region (#384) Plus always notify user when DMA region is removed. Signed-off-by: Thanos Makatos Reviewed-by: John Levon --- test/mocks.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/mocks.h') 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: */ -- cgit v1.1