hisi_acc_vfio_pci: Move the dev compatibility tests for early check
authorShameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Wed, 23 Nov 2022 11:32:35 +0000 (11:32 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 6 Dec 2022 19:37:11 +0000 (12:37 -0700)
commit190125adcad4c5850fd74ecd697e20a446b74ed8
treee54fba9dd32e924039fd94a07ccb1ecc2a851ef5
parentd9a871e4a143047d1d84a606772af319f11516f9
hisi_acc_vfio_pci: Move the dev compatibility tests for early check

Instead of waiting till data transfer is complete to perform dev
compatibility, do it as soon as we have enough data to perform the
check. This will be useful when we enable the support for PRE_COPY.

Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Link: https://lore.kernel.org/r/20221123113236.896-4-shameerali.kolothum.thodi@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.h