Skip to content

tests/intel/xe_sriov_vfio: Add basic VFIO coverage

Marcin Bernatowicz igt-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v14 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Keep as a single load/unload subtest skipping when module already loaded (Lukasz)
- Split bound-driver assertion helper and remove redundant pre-bind unbind (Lukasz)
- Simplify restore_xe_vfio_module() logic (Lukasz)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/intel/xe_sriov_vfio: Add VFIO module load/unload subtesttests/intel/xe_sriov_vfio.c tests/meson.build+76 -01 reply
2/4tests/intel/xe_sriov_vfio: Add dynamic bind-unbind-vfs subtesttests/intel/xe_sriov_vfio.c+139 -01 reply
3/4tests/intel/xe_sriov_vfio: Add open-basic subtesttests/intel/xe_sriov_vfio.c+136 -01 reply
4/4tests/intel/xe_sriov_vfio: Add region-info subtesttests/intel/xe_sriov_vfio.c+85 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchLukasz Laguna
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 i-g-t 0/4] tests/intel/xe_sriov_vfio: Add basic VFIO coverage

Add xe_sriov_vfio test covering basic xe-vfio-pci module handling and VFIO smoke-test paths for SR-IOV VFs.

The first patch adds standalone module load/unload subtest. The second adds a dynamic bind-unbind-vfs subtest that enables VFs and binds each of them to xe-vfio-pci through driver_override. The remaining patches add basic VFIO coverage by opening the VFIO group and querying VFIO region information for a VF bound to xe-vfio-pci.

v2:
- Keep as a single load/unload subtest skipping when module already loaded (Lukasz)
- Split bound-driver assertion helper and remove redundant pre-bind unbind (Lukasz)
- Simplify restore_xe_vfio_module() logic (Lukasz)

Marcin Bernatowicz (4):
tests/intel/xe_sriov_vfio: Add VFIO module load/unload subtest tests/intel/xe_sriov_vfio: Add dynamic bind-unbind-vfs subtest tests/intel/xe_sriov_vfio: Add open-basic subtest tests/intel/xe_sriov_vfio: Add region-info subtest

 tests/intel/xe_sriov_vfio.c | 435 ++++++++++++++++++++++++++++++++++++
 tests/meson.build           |   1 +
 2 files changed, 436 insertions(+)
 create mode 100644 tests/intel/xe_sriov_vfio.c
Signature · 1 line
2.43.0