nvmf/vfio-user: briefly explain live migration

Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Change-Id: I08d3aa90ec4f3e29bece820919bd39d20c74c6cf
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11745
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: John Levon <levon@movementarian.org>
This commit is contained in:
Thanos Makatos 2022-02-25 05:56:36 -05:00 committed by Tomasz Zawadzki
parent 50a4875255
commit caadae6c10

View File

@ -70,6 +70,16 @@ enum nvmf_vfio_user_req_state {
VFIO_USER_REQUEST_STATE_EXECUTING,
};
/*
* Support for live migration in NVMf/vfio-user: live migration is implemented
* by stopping the NVMf subsystem when the device is instructed to enter the
* stop-and-copy state and then trivially, and most importantly safely,
* collecting migration state and providing it to the vfio-user client. We
* don't provide any migration state at the pre-copy state as that's too
* complicated to do, we might support this in the future.
*/
/* NVMe device state representation */
struct nvme_migr_sq_state {
uint16_t sqid;