diff options
| author | Kirti Wankhede | 2020-10-26 10:36:11 +0100 |
|---|---|---|
| committer | Alex Williamson | 2020-11-01 20:30:50 +0100 |
| commit | 0f7a903ba3f0f8dfb347fb15b783aade4833826e (patch) | |
| tree | cf409fc33c43399717c237f376ae6871b0178168 /include/hw | |
| parent | Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (diff) | |
| download | qemu-0f7a903ba3f0f8dfb347fb15b783aade4833826e.tar.gz qemu-0f7a903ba3f0f8dfb347fb15b783aade4833826e.tar.xz qemu-0f7a903ba3f0f8dfb347fb15b783aade4833826e.zip | |
vfio: Add function to unmap VFIO region
This function will be used for migration region.
Migration region is mmaped when migration starts and will be unmapped when
migration is complete.
Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Neo Jia <cjia@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/vfio/vfio-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index c78f3ff559..dc95f527b5 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -171,6 +171,7 @@ int vfio_region_setup(Object *obj, VFIODevice *vbasedev, VFIORegion *region, int index, const char *name); int vfio_region_mmap(VFIORegion *region); void vfio_region_mmaps_set_enabled(VFIORegion *region, bool enabled); +void vfio_region_unmap(VFIORegion *region); void vfio_region_exit(VFIORegion *region); void vfio_region_finalize(VFIORegion *region); void vfio_reset_handler(void *opaque); |
