diff options
author | Longfang Liu <liulongfang@huawei.com> | 2024-11-12 08:33:20 +0100 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2024-11-12 22:23:10 +0100 |
commit | 19629206894f1265d9148be475d8665c58596ab3 (patch) | |
tree | 9dd3b186571d8c7512c5837ca725264c54a4a95b /drivers/vfio/vfio.h | |
parent | hisi_acc_vfio_pci: extract public functions for container_of (diff) | |
download | linux-19629206894f1265d9148be475d8665c58596ab3.tar.xz linux-19629206894f1265d9148be475d8665c58596ab3.zip |
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>
Diffstat (limited to 'drivers/vfio/vfio.h')
0 files changed, 0 insertions, 0 deletions