Home
last modified time | relevance | path

Searched refs:mig_state (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/vfio/pci/mlx5/
H A Dmain.c413 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 …]
H A Dcmd.h170 enum vfio_device_mig_state mig_state; member
/openbmc/linux/drivers/vfio/pci/hisilicon/
H A Dhisi_acc_vfio_pci.c646 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()
H A Dhisi_acc_vfio_pci.h105 enum vfio_device_mig_state mig_state; member
/openbmc/qemu/hw/vfio/
H A Dmigration.c149 struct vfio_device_feature_mig_state *mig_state = in vfio_migration_set_state() local
166 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()