aboutsummaryrefslogtreecommitdiff
path: root/include/libvfio-user.h
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-02 06:37:31 -0500
committerThanos <tmakatos@gmail.com>2020-12-02 11:42:36 +0000
commit96716ea7e47aedb769336730f2eee0adb99e5b85 (patch)
tree97aba2c6276e2fedbab3b5fadd42dba098bf0ce7 /include/libvfio-user.h
parent3f39bdd3928f3bb219d72d40125940b0653e9267 (diff)
downloadlibvfio-user-96716ea7e47aedb769336730f2eee0adb99e5b85.zip
libvfio-user-96716ea7e47aedb769336730f2eee0adb99e5b85.tar.gz
libvfio-user-96716ea7e47aedb769336730f2eee0adb99e5b85.tar.bz2
replace struct vfu_mmap_area with struct iovec
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include/libvfio-user.h')
-rw-r--r--include/libvfio-user.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index 781820d..9d3513b 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -69,11 +69,6 @@ typedef struct {
typedef struct vfu_ctx vfu_ctx_t;
-struct vfu_mmap_area {
- uint64_t start;
- uint64_t size;
-};
-
/**
* Prototype for memory access callback. The program MUST first map device
* memory in its own virtual address space using vfu_mmap, do any additional work
@@ -222,7 +217,7 @@ typedef struct {
typedef struct {
size_t size;
vfu_migration_callbacks_t callbacks;
- struct vfu_mmap_area *mmap_areas;
+ struct iovec *mmap_areas;
uint32_t nr_mmap_areas;
} vfu_migration_t;
@@ -350,7 +345,7 @@ enum {
* @size: size of the region
* @region_access: callback function to access region
* @flags: region flags
- * @mmap_areas: array of struct vfu_mmap_area
+ * @mmap_areas: array of memory mappable areas
* @nr_mmap_areas: size of mmap_areas
* @map: callback function to map region
*
@@ -359,7 +354,7 @@ enum {
int
vfu_setup_region(vfu_ctx_t *vfu_ctx, int region_idx, size_t size,
vfu_region_access_cb_t *region_access, int flags,
- struct vfu_mmap_area *mmap_areas, uint32_t nr_mmap_areas,
+ struct iovec *mmap_areas, uint32_t nr_mmap_areas,
vfu_map_region_cb_t *map);
/*