diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2021-06-09 20:59:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 20:59:54 +0100 |
commit | b665c3982c1efe2bb896fc8b556d24bcf996435a (patch) | |
tree | 250a7c901b0dd291df30cdae3ebb4cbb85ce6d25 /test/unit-tests.c | |
parent | 970d9b3e2edc656ef8e9a68b6d83cdb891c58455 (diff) | |
download | libvfio-user-b665c3982c1efe2bb896fc8b556d24bcf996435a.zip libvfio-user-b665c3982c1efe2bb896fc8b556d24bcf996435a.tar.gz libvfio-user-b665c3982c1efe2bb896fc8b556d24bcf996435a.tar.bz2 |
clear dirty pages bitmap after getting dirty pages but keep mapped segments dirty (#551)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'test/unit-tests.c')
-rw-r--r-- | test/unit-tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c index 9945bac..8a41a76 100644 --- a/test/unit-tests.c +++ b/test/unit-tests.c @@ -407,7 +407,7 @@ test_dma_addr_to_sg(void **state UNUSED) assert_int_equal(0x2000 - (unsigned long long)r->info.iova.iov_base, sg.offset); assert_int_equal(0x400, sg.length); - assert_true(sg.mappable); + assert_true(vfu_sg_is_mappable(&vfu_ctx, &sg)); errno = 0; r->info.prot = PROT_WRITE; |