Skip to content

vmtb: Modernize SR-IOV VM Test Bench core

Adam Miszczak igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10tools/vmtb: Update QEMU parameterstools/vmtb/bench/machines/virtual/vm.py tools/vmtb/vmm_flows/conftest.py+25 -141 reply
2/10tools/vmtb: Fix DUT selection based on card indextools/vmtb/bench/machines/host.py tools/vmtb/bench/machines/physical/device.py tools/vmtb/vmm_flows/conftest.py +1 more+21 -151 reply
3/10tools/vmtb: Fix VM snapshot query handlingtools/vmtb/bench/machines/virtual/backends/qmp_monitor.py+13 -121 reply
4/10tools/vmtb: Extend IGT and WSIM abstractionstools/vmtb/bench/configurators/vmtb_config.py tools/vmtb/bench/executors/gem_wsim.py tools/vmtb/bench/executors/igt.py +3 more+78 -181 reply
5/10tools/vmtb: VF auto/fair provisioning supporttools/vmtb/bench/configurators/vgpu_profile.py tools/vmtb/bench/configurators/vgpu_profile_config.py tools/vmtb/bench/drivers/driver_interface.py +4 more+164 -701 reply
6/10tools/vmtb: Refactor driver interfacestools/vmtb/bench/drivers/driver_interface.py tools/vmtb/bench/drivers/xe.py tools/vmtb/bench/machines/physical/device.py +1 more+301 -1951 reply
7/10tools/vmtb: Introduce VirtualDevice classtools/vmtb/bench/machines/device_interface.py tools/vmtb/bench/machines/host.py tools/vmtb/bench/machines/machine_interface.py +2 more+198 -111 reply
8/10tools/vmtb: Redesign VirtualMachine classtools/vmtb/bench/machines/virtual/vm.py tools/vmtb/vmm_flows/conftest.py+116 -1431 reply
9/10tools/vmtb: Support max VFs configurationtools/vmtb/vmm_flows/conftest.py+26 -31 reply
10/10tools/vmtb: Platform enabling: PTL and BMG supporttools/vmtb/bench/configurators/pci.py tools/vmtb/vmm_flows/resources/vgpu_profiles/Bmg_g21_12.json tools/vmtb/vmm_flows/resources/vgpu_profiles/Ptl.json+154 -441 reply

Reviews trailers per patch

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

PatchMarcin Bernatowicz
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

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

Read the v1 thread

Cover letter [PATCH i-g-t 00/10] vmtb: Modernize SR-IOV VM Test Bench core

Update and refactor VMTB core implementation, align with the current Xe KMD SR-IOV state and prepare for a broader test coverage.

Introduced changes:
- refactor driver abstractions into common Driver/PF/VF interfaces, including updated sysfs/debugfs interfaces
- split VM-side abstractions into VirtualMachine, VirtualDevice and VfDriver with clearer responsibilities
- add auto/fair provisioning mode next to vGPU profile mode and align scheduling/resources handling
- support maximum VFs test config
- extend IGT/gem_wsim abstractions (object-oriented result checks, repeated execution support, resource-based wsim workload descriptors)
- adjust QEMU launch parameters (SSH forwarding, migration capability handling, disable emulated VGA)
- enable support for Panther Lake (PTL) and Battlemage (BMG) platforms with PCI Device IDs and vGPU profile resources

Cc Marcin Bernatowicz <[email protected]>
Cc Kamil Konieczny <[email protected]>

Adam Miszczak (10):
tools/vmtb: Update QEMU parameters tools/vmtb: Fix DUT selection based on card index tools/vmtb: Fix VM snapshot query handling tools/vmtb: Extend IGT and WSIM abstractions tools/vmtb: VF auto/fair provisioning support tools/vmtb: Refactor driver interfaces tools/vmtb: Introduce VirtualDevice class tools/vmtb: Redesign VirtualMachine class tools/vmtb: Support max VFs configuration tools/vmtb: Platform enabling: PTL and BMG support

 tools/vmtb/bench/configurators/pci.py         |  43 ++-
 .../vmtb/bench/configurators/vgpu_profile.py  |  37 ++-
 .../configurators/vgpu_profile_config.py      |   7 +-
 tools/vmtb/bench/configurators/vmtb_config.py |   4 +-
 tools/vmtb/bench/drivers/driver_interface.py  | 179 +++++++++---
 tools/vmtb/bench/drivers/xe.py                | 213 +++++++-------
 tools/vmtb/bench/executors/gem_wsim.py        |  45 ++-
 tools/vmtb/bench/executors/igt.py             |  36 ++-
 tools/vmtb/bench/machines/device_interface.py |  14 +-
 tools/vmtb/bench/machines/host.py             |  17 +-
 .../vmtb/bench/machines/machine_interface.py  |   6 +-
 tools/vmtb/bench/machines/physical/device.py  | 145 ++++++----
 .../machines/virtual/backends/qmp_monitor.py  |  25 +-
 tools/vmtb/bench/machines/virtual/device.py   | 179 ++++++++++++
 tools/vmtb/bench/machines/virtual/vm.py       | 263 +++++++++---------
 tools/vmtb/vmm_flows/conftest.py              | 167 ++++++++---
 .../{Flex170.json => Bmg_g21_12.json}         |  58 ++--
 .../resources/vgpu_profiles/Ptl.json          |  97 +++++++
 tools/vmtb/vmm_flows/test_basic.py            |  25 +-
 tools/vmtb/vmtb_config.json                   |   1 +
 20 files changed, 1066 insertions(+), 495 deletions(-)
 create mode 100644 tools/vmtb/bench/machines/virtual/device.py
 rename tools/vmtb/vmm_flows/resources/vgpu_profiles/{Flex170.json => Bmg_g21_12.json} (73%)
 create mode 100644 tools/vmtb/vmm_flows/resources/vgpu_profiles/Ptl.json
Signature · 1 line
2.39.1