mbox series

[v2,0/3] x86 cpu test refactoring

Message ID 20240605141316.91955-1-anisinha@redhat.com (mailing list archive)
Headers show
Series x86 cpu test refactoring | expand

Message

Ani Sinha June 5, 2024, 2:13 p.m. UTC
Add a new library api to check for the support of a specific cpu type.
Used the new api to check support for some older x86 cpu models before
running the tests.

CC: thuth@redhat.com
CC: imammedo@redhat.com
CC: qemu-devel@nongnu.org
CC: pbonzini@redhat.com
CC: lvivier@redhat.com
CC: mst@redhat.com

Ani Sinha (3):
  qtest/x86/numa-test: do not use the obsolete 'pentium' cpu
  tests/qtest/libqtest: add qtest_has_cpu() api
  tests/qtest/x86: check for availability of older cpu models before
    running tests

 tests/qtest/libqtest.c              |  84 +++++++++++++++
 tests/qtest/libqtest.h              |   8 ++
 tests/qtest/numa-test.c             |   3 +-
 tests/qtest/test-x86-cpuid-compat.c | 159 +++++++++++++++++-----------
 4 files changed, 192 insertions(+), 62 deletions(-)