Commit 3258b093 authored by Longfang Liu's avatar Longfang Liu Committed by JangShui Yang
Browse files

migration: modify dfx error type without VM driver

driver inclusion
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/IB9H0P


CVE: NA

----------------------------------------------------------------------

In the live migration scenario, when the ACC driver is not insmod
to the VM, the command to test the mailbox operation will detect
that the device has no driver loaded. However, the error reported
is the same as the abnormal parameter when testing dfx, and the
error scenario cannot be distinguished.
Therefore, this error type needs to be modified.

Signed-off-by: default avatarLongfang Liu <liulongfang@huawei.com>
Signed-off-by: default avatarJiangShui Yang <yangjiangshui@h-partners.com>
parent 3cbc9908
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1523,7 +1523,7 @@ static ssize_t acc_vf_debug_write(struct file *filp, const char __user *buffer,
	case MB_TEST:
		ret = acc_vf_debug_test(hisi_acc_vdev);
		if (ret)
			return -EINVAL;
			return -EAGAIN;
		break;
	case MIG_DATA_DUMP:
		acc_vf_dev_data_dump(hisi_acc_vdev);