mbox series

[v4,0/3] x86 cpu test refactoring

Message ID 20240610155303.7933-1-anisinha@redhat.com
Headers show
Series x86 cpu test refactoring | expand

Message

Ani Sinha June 10, 2024, 3:52 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_model() api
  tests/qtest/x86: check for availability of older cpu models before
    running tests

 tests/qtest/libqtest.c              |  83 ++++++++++++++
 tests/qtest/libqtest.h              |   8 ++
 tests/qtest/numa-test.c             |   3 +-
 tests/qtest/test-x86-cpuid-compat.c | 170 ++++++++++++++++++----------
 4 files changed, 201 insertions(+), 63 deletions(-)