Skip to content

Commit 7b99417

Browse files
Longfang LiuAlex Williamson
authored andcommitted
Documentation: add debugfs description for vfio
Add an debugfs document description file to help users understand how to use the accelerator live migration driver's debugfs. Signed-off-by: Longfang Liu <liulongfang@huawei.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/r/20231106072225.28577-3-liulongfang@huawei.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent 2202844 commit 7b99417

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
What: /sys/kernel/debug/vfio
2+
Date: December 2023
3+
KernelVersion: 6.8
4+
Contact: Longfang Liu <liulongfang@huawei.com>
5+
Description: This debugfs file directory is used for debugging
6+
of vfio devices, it's a common directory for all vfio devices.
7+
Vfio core will create a device subdirectory under this
8+
directory.
9+
10+
What: /sys/kernel/debug/vfio/<device>/migration
11+
Date: December 2023
12+
KernelVersion: 6.8
13+
Contact: Longfang Liu <liulongfang@huawei.com>
14+
Description: This debugfs file directory is used for debugging
15+
of vfio devices that support live migration.
16+
The debugfs of each vfio device that supports live migration
17+
could be created under this directory.
18+
19+
What: /sys/kernel/debug/vfio/<device>/migration/state
20+
Date: December 2023
21+
KernelVersion: 6.8
22+
Contact: Longfang Liu <liulongfang@huawei.com>
23+
Description: Read the live migration status of the vfio device.
24+
The contents of the state file reflects the migration state
25+
relative to those defined in the vfio_device_mig_state enum

0 commit comments

Comments
 (0)