]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hisi_acc_vfio_pci: create subfunction for data reading
authorLongfang Liu <liulongfang@huawei.com>
Tue, 12 Nov 2024 07:33:20 +0000 (15:33 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 12 Nov 2024 21:23:10 +0000 (14:23 -0700)
commit19629206894f1265d9148be475d8665c58596ab3
tree9dd3b186571d8c7512c5837ca725264c54a4a95b
parentece8a2c77b881a379d24fee4656195d809161867
hisi_acc_vfio_pci: create subfunction for data reading

This patch generates the code for the operation of reading data from
the device into a sub-function.
Then, it can be called during the device status data saving phase of
the live migration process and the device status data reading function
in debugfs.
Thereby reducing the redundant code of the driver.

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