vfio: UAPI for migration interface for device state
authorKirti Wankhede <kwankhede@nvidia.com>
Thu, 28 May 2020 20:30:47 +0000 (02:00 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 May 2020 21:53:20 +0000 (15:53 -0600)
commita8a24f3f6e38103b77cf399c38eb54e1219d00d6
treedbe5f16fd7ee17b5e5f9c075517825cca1049fda
parentcd34b82e6ef09aaf789eb9c040e3d0f92d28c969
vfio: UAPI for migration interface for device state

- Defined MIGRATION region type and sub-type.

- Defined vfio_device_migration_info structure which will be placed at the
  0th offset of migration region to get/set VFIO device related
  information. Defined members of structure and usage on read/write access.

- Defined device states and state transition details.

- Defined sequence to be followed while saving and resuming VFIO device.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Neo Jia <cjia@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
include/uapi/linux/vfio.h