vfio: Add function to unmap VFIO region
authorKirti Wankhede <kwankhede@nvidia.com>
Mon, 26 Oct 2020 09:36:11 +0000 (15:06 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Sun, 1 Nov 2020 19:30:50 +0000 (12:30 -0700)
commit0f7a903ba3f0f8dfb347fb15b783aade4833826e
treecf409fc33c43399717c237f376ae6871b0178168
parent700d20b49e303549b32d3a7a3efbfcee8c7a4f6c
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>
hw/vfio/common.c
hw/vfio/trace-events
include/hw/vfio/vfio-common.h