aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSwapnil Ingle <swapnil.ingle@nutanix.com>2021-05-14 12:05:55 +0200
committerGitHub <noreply@github.com>2021-05-14 12:05:55 +0200
commitc174ca8539a47ea3b87b1d4015a0b9f21c738dad (patch)
treecc0160741f05c8e9795def8ac84deb3aa0863c35 /include
parent4929d0a29187d4c71e9034da692b5335c57cc91d (diff)
downloadlibvfio-user-c174ca8539a47ea3b87b1d4015a0b9f21c738dad.zip
libvfio-user-c174ca8539a47ea3b87b1d4015a0b9f21c738dad.tar.gz
libvfio-user-c174ca8539a47ea3b87b1d4015a0b9f21c738dad.tar.bz2
dma: Use correct len type (#479)
* dma: Use correct len type vfio_iommu_type1_dirty_bitmap_get.size is of type __u64 dma_controller_dirty_page_get() receives it as int, instead it should be u64 Also added UT to test overflow of length passed to dma_controller_dirty_page_get Fixes: #477 Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvfio-user.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index 28933a5..371daaf 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -66,7 +66,7 @@ typedef void *vfu_dma_addr_t;
typedef struct {
vfu_dma_addr_t dma_addr;
int region;
- int length;
+ uint64_t length;
uint64_t offset;
bool mappable;
} dma_sg_t;