[PATCH 0/6] qtests: Check accelerator available at runtime via QMP 'query-accels'

Philippe Mathieu-Daudé posted 6 patches 3 years, 1 month ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210311231202.1536040-1-philmd@redhat.com
There is a newer version of this series
qapi/machine.json              | 55 ++++++++++++++++++++++++++++++++++
tests/qtest/libqos/libqtest.h  |  9 ++++++
accel/accel-qmp.c              | 47 +++++++++++++++++++++++++++++
tests/qtest/arm-cpu-features.c | 35 ++++++++++++++++++----
tests/qtest/bios-tables-test.c | 13 ++++----
tests/qtest/libqtest.c         | 24 +++++++++++++++
accel/meson.build              |  2 +-
tests/qtest/meson.build        |  3 +-
8 files changed, 173 insertions(+), 15 deletions(-)
create mode 100644 accel/accel-qmp.c
[PATCH 0/6] qtests: Check accelerator available at runtime via QMP 'query-accels'
Posted by Philippe Mathieu-Daudé 3 years, 1 month ago
Hi,

This series aims at having accelerator-independent qtests
by querying a QEMU instance at runtime to check the list
of built-in accelerators.

First we add the 'query-accels' QMP command,
then we add the qtest_probe_accel() method to libqtest,
finally we use this new method to allow running
bios-tables-test and arm-cpu-features on KVM-only builds.

Please review,

Phil.

Philippe Mathieu-Daudé (6):
  accel: Introduce 'query-accels' QMP command
  tests/qtest: Add qtest_probe_accel() method
  qtest/bios-tables-test: Make test build-independent from accelerator
  qtest/arm-cpu-features: Check KVM availability at runtime
  qtest/arm-cpu-features: Check TCG availability at runtime
  tests/qtest: Do not restrict bios-tables-test to Aarch64 hosts anymore

 qapi/machine.json              | 55 ++++++++++++++++++++++++++++++++++
 tests/qtest/libqos/libqtest.h  |  9 ++++++
 accel/accel-qmp.c              | 47 +++++++++++++++++++++++++++++
 tests/qtest/arm-cpu-features.c | 35 ++++++++++++++++++----
 tests/qtest/bios-tables-test.c | 13 ++++----
 tests/qtest/libqtest.c         | 24 +++++++++++++++
 accel/meson.build              |  2 +-
 tests/qtest/meson.build        |  3 +-
 8 files changed, 173 insertions(+), 15 deletions(-)
 create mode 100644 accel/accel-qmp.c

-- 
2.26.2