Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/7] tools/vmtb: Sync VM Test Bench core with current xe SR-IOV
@ 2026-09-28  7:25 Adam Miszczak
  2026-09-28  7:25 ` [PATCH i-g-t 1/7] tools/vmtb: Introduce asynchronous VM state save/load functions Adam Miszczak
                   ` (10 more replies)
  0 siblings, 11 replies; 19+ messages in thread
From: Adam Miszczak @ 2026-09-28  7:25 UTC (permalink / raw)
  To: igt-dev; +Cc: marcin.bernatowicz, kamil.konieczny

This series brings the VM Test Bench (VMTB) core in line with the
current xe SR-IOV driver interfaces and fixes a number of robustness
issues found while running the vmm_flows test suite on recent kernels.
It also adds a few framework features required by upcoming tests.

New framework features:
- asynchronous VM snapshot save/load, enabling parallel migration of
  multiple VMs (patch 1)
- VirtualMachine.wait_for_dmesg() to block on a guest serial console
  pattern (patch 6)
- IgtExecutor 'env_vars' support, cached GemWsim results and a common
  clear_results() for both executors (patch 7)

Driver/device alignment:
- move VF VRAM quota provisioning from the obsolete debugfs lmem_quota
  to the sysfs sriov_admin profile tree and add DeviceInterface.reset()
  for PF/VF FLR (patch 3)
- align default VF scheduling with the xe KMD (16ms EQ/PT), rename
  VfSchedulingMode.INFINITE to AUTO and fix scheduler-only manual
  provisioning (patch 2)

Robustness fixes:
- consume QMP command acknowledgments and tighten query_status()/
  query_jobs() handling so the bench never acts on partial QMP
  responses (patch 1)
- fix guest timeout resolution, PCI BDF matching and physical Device
  bind()/unbind() calls (patches 3, 4)
- add EnvironmentCleaner to remove leftovers (orphaned QEMU processes,
  stale sockets, dirty SR-IOV state) from crashed or timed-out runs
  before each test setup (patch 5)

Existing vmm_flows tests (test_basic, test_migration) are updated to
follow the API changes.

Signed-off-by: Adam Miszczak <adam.miszczak@linux.intel.com>
Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>

Adam Miszczak (7):
  tools/vmtb: Introduce asynchronous VM state save/load functions
  tools/vmtb: Rework VF scheduler provisioning
  tools/vmtb: Align driver/device layer with current xe SR-IOV
    interfaces
  tools/vmtb: Fix guest timeout handling and PCI BDF matching
  tools/vmtb: Add pre-test environment cleanup
  tools/vmtb: Add VM dmesg wait support
  tools/vmtb: Extend IGT and WSIM executors

 .../configurators/vgpu_profile_config.py      |  20 ++-
 tools/vmtb/bench/drivers/driver_interface.py  |   9 +-
 tools/vmtb/bench/drivers/xe.py                |  40 +++--
 tools/vmtb/bench/exceptions.py                |  14 +-
 tools/vmtb/bench/executors/gem_wsim.py        |  38 ++++-
 tools/vmtb/bench/executors/igt.py             |  10 +-
 tools/vmtb/bench/helpers/cleanup.py           |  91 ++++++++++
 tools/vmtb/bench/machines/device_interface.py |   7 +
 tools/vmtb/bench/machines/physical/device.py  |  58 +++----
 .../machines/virtual/backends/qmp_monitor.py  |  55 +++---
 tools/vmtb/bench/machines/virtual/device.py   |   4 +
 tools/vmtb/bench/machines/virtual/vm.py       | 160 ++++++++++++++----
 tools/vmtb/vmm_flows/conftest.py              |  80 ++++++---
 tools/vmtb/vmm_flows/test_basic.py            |   2 +-
 tools/vmtb/vmm_flows/test_migration.py        |  22 ++-
 15 files changed, 445 insertions(+), 165 deletions(-)
 create mode 100644 tools/vmtb/bench/helpers/cleanup.py

-- 
2.39.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2026-10-08 13:59 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-28  7:25 [PATCH i-g-t 0/7] tools/vmtb: Sync VM Test Bench core with current xe SR-IOV Adam Miszczak
2026-09-28  7:25 ` [PATCH i-g-t 1/7] tools/vmtb: Introduce asynchronous VM state save/load functions Adam Miszczak
2026-10-08 13:53   ` Bernatowicz, Marcin
2026-09-28  7:25 ` [PATCH i-g-t 2/7] tools/vmtb: Rework VF scheduler provisioning Adam Miszczak
2026-10-08 13:54   ` Bernatowicz, Marcin
2026-09-28  7:25 ` [PATCH i-g-t 3/7] tools/vmtb: Align driver/device layer with current xe SR-IOV interfaces Adam Miszczak
2026-10-08 13:54   ` Bernatowicz, Marcin
2026-09-28  7:25 ` [PATCH i-g-t 4/7] tools/vmtb: Fix guest timeout handling and PCI BDF matching Adam Miszczak
2026-10-08 13:55   ` Bernatowicz, Marcin
2026-09-28  7:25 ` [PATCH i-g-t 5/7] tools/vmtb: Add pre-test environment cleanup Adam Miszczak
2026-10-08 13:55   ` Bernatowicz, Marcin
2026-09-28  7:25 ` [PATCH i-g-t 6/7] tools/vmtb: Add VM dmesg wait support Adam Miszczak
2026-10-08 13:56   ` Bernatowicz, Marcin
2026-09-28  7:26 ` [PATCH i-g-t 7/7] tools/vmtb: Extend IGT and WSIM executors Adam Miszczak
2026-10-08 12:59   ` Bernatowicz, Marcin
2026-09-28 20:28 ` ✓ i915.CI.BAT: success for tools/vmtb: Sync VM Test Bench core with current xe SR-IOV Patchwork
2026-09-28 20:47 ` ✓ Xe.CI.BAT: " Patchwork
2026-09-29  2:19 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-09-29  4:08 ` ✗ i915.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox