Searched refs:mig_state (Results 1 – 5 of 5) sorted by relevance
413 if (mvdev->mig_state != VFIO_DEVICE_STATE_PRE_COPY && in mlx5vf_precopy_ioctl()414 mvdev->mig_state != VFIO_DEVICE_STATE_PRE_COPY_P2P) { in mlx5vf_precopy_ioctl()424 if (mvdev->mig_state == VFIO_DEVICE_STATE_PRE_COPY) { in mlx5vf_precopy_ioctl()1032 u32 cur = mvdev->mig_state; in mlx5vf_pci_step_device_state_locked()1151 mvdev->mig_state = VFIO_DEVICE_STATE_RUNNING; in mlx5vf_state_mutex_unlock()1170 while (new_state != mvdev->mig_state) { in mlx5vf_pci_set_device_state()1171 ret = vfio_mig_get_next_state(vdev, mvdev->mig_state, in mlx5vf_pci_set_device_state()1180 mvdev->mig_state = next_state; in mlx5vf_pci_set_device_state()1181 if (WARN_ON(res && new_state != mvdev->mig_state)) { in mlx5vf_pci_set_device_state()1215 *curr_state = mvdev->mig_state; in mlx5vf_pci_get_device_state()[all …]
170 enum vfio_device_mig_state mig_state; member
646 hisi_acc_vdev->mig_state = VFIO_DEVICE_STATE_RUNNING; in hisi_acc_vf_state_mutex_unlock()788 if (hisi_acc_vdev->mig_state != VFIO_DEVICE_STATE_PRE_COPY) { in hisi_acc_vf_precopy_ioctl()957 u32 cur = hisi_acc_vdev->mig_state; in hisi_acc_vf_set_device_state()1055 while (new_state != hisi_acc_vdev->mig_state) { in hisi_acc_vfio_pci_set_device_state()1057 hisi_acc_vdev->mig_state, in hisi_acc_vfio_pci_set_device_state()1067 hisi_acc_vdev->mig_state = next_state; in hisi_acc_vfio_pci_set_device_state()1068 if (WARN_ON(res && new_state != hisi_acc_vdev->mig_state)) { in hisi_acc_vfio_pci_set_device_state()1094 *curr_state = hisi_acc_vdev->mig_state; in hisi_acc_vfio_pci_get_device_state()1322 hisi_acc_vdev->mig_state = VFIO_DEVICE_STATE_RUNNING; in hisi_acc_vfio_pci_open_device()
105 enum vfio_device_mig_state mig_state; member
149 struct vfio_device_feature_mig_state *mig_state = in vfio_migration_set_state() local166 mig_state->device_state = new_state; in vfio_migration_set_state()183 mig_state->device_state = recover_state; in vfio_migration_set_state()203 if (mig_state->data_fd != -1) { in vfio_migration_set_state()210 close(mig_state->data_fd); in vfio_migration_set_state()215 migration->data_fd = mig_state->data_fd; in vfio_migration_set_state()