|
Ran
|
Jobs
1
|
Files
9
|
Run time
1min
|
Badge
README BADGES
|
github
Update vfio-manage to choose best VFIO driver when binding devices Rather than always binding GPUs to the vfio-pci driver, this commit introduces logic to see if the running kernel has a VFIO variant driver available that is a better match for the device. We read the mod.alias file for a given device, then we look through /lib/modules/${kernel_version}/modules.alias for the vfio_pci alias that matches with the least number of wildcard ('*') fields. The code introduced in this commit is inspired by: https://gitlab.com/libvirt/libvirt/-/commit/82e2fac29 Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
90 of 221 new or added lines in 4 files covered. (40.72%)
3 existing lines in 1 file now uncovered.90 of 1303 relevant lines covered (6.91%)
0.07 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 4 |
0.0 |
0.0% | cmd/vfio-manage/bind.go |
| 4 |
0.0 |
0.0% | cmd/vfio-manage/unbind.go |
| 40 |
69.23 |
internal/nvpci/modalias.go | |
| 83 |
0.0 |
0.0% | internal/nvpci/nvpci.go |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 3 |
0.0 |
0.0% | internal/nvpci/nvpci.go |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 19655516443.1 | 9 |
6.91 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|