]> git.baikalelectronics.ru Git - kernel.git/commit
hisi_acc_vfio_pci: Fixes error return code issue
authorLongfang Liu <liulongfang@huawei.com>
Mon, 26 Sep 2022 09:33:28 +0000 (17:33 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 27 Sep 2022 15:30:31 +0000 (09:30 -0600)
commit7d597da64c2c93ff2121522a95d7be6e3cc143c6
treed4ccc14c4ed8e290d969f80321750e5237c90730
parent531ec161b757cd5258c6318dab5cb36be1ecc724
hisi_acc_vfio_pci: Fixes error return code issue

During the process of compatibility and matching of live migration
device information, if the isolation status of the two devices is
inconsistent, the live migration needs to be exited.

The current driver does not return the error code correctly and
needs to be fixed.

Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Link: https://lore.kernel.org/r/20220926093332.28824-2-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c