aboutsummaryrefslogtreecommitdiff
path: root/samples/gpio-pci-idio-16.c
diff options
context:
space:
mode:
authorswapnili <swapnil.ingle@nutanix.com>2020-11-30 16:45:35 +0100
committerGitHub <noreply@github.com>2020-11-30 16:45:35 +0100
commit9d0224ae1c4c6c43e7dee048b71a499c857bc85f (patch)
treeaf82f3c83a6ca80da30fc8d18274f7a178d61a26 /samples/gpio-pci-idio-16.c
parenta3ba81765daeffaaa2e9e59d49d49ae4438b1b59 (diff)
downloadlibvfio-user-9d0224ae1c4c6c43e7dee048b71a499c857bc85f.zip
libvfio-user-9d0224ae1c4c6c43e7dee048b71a499c857bc85f.tar.gz
libvfio-user-9d0224ae1c4c6c43e7dee048b71a499c857bc85f.tar.bz2
Update API's to accept sparse mmap areas as array and its count (#134)
* Pass region mmap areas as array * Pass migration sparse mmap areas as array * Move struct vfu_sparse_mmap_areas to lib/priv.h Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples/gpio-pci-idio-16.c')
-rw-r--r--samples/gpio-pci-idio-16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c
index aabcf75..86d5177 100644
--- a/samples/gpio-pci-idio-16.c
+++ b/samples/gpio-pci-idio-16.c
@@ -120,7 +120,7 @@ main(int argc, char *argv[])
}
ret = vfu_setup_region(vfu_ctx, VFU_PCI_DEV_BAR2_REGION_IDX, 0x100,
- &bar2_access, VFU_REG_FLAG_RW, NULL, NULL);
+ &bar2_access, VFU_REG_FLAG_RW, NULL, 0, NULL);
if (ret < 0) {
fprintf(stderr, "failed to setup region\n");
goto out;