Skip to content

Target-specific unit test support, add unit tests for target-i386/cpu.c code

Eduardo Habkost qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 4 repliesIn review
  2. v46 patches 0 repliesSuperseded
  3. v37 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches5 repliesSuperseded
v1 RFC10 patches2 repliesSuperseded

Changes in v5 from the cover letter

* Rewrite fake kvm_arch_get_supported_cpuid() code
* Add new test to ensure KVM defaults won't override explicit command-line options

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tests: Support target-specific unit teststests/Makefile+23 -80 replies
2/7tests: Make test-x86-cpuid target-specifictests/Makefile+3 -10 replies
3/7tests: Add unit test for X86CPU codetests/.gitignore tests/Makefile tests/test-x86-cpu.c +2 more+264 -10 replies
4/7target-i386: Isolate enabled-by-default features to a separate arraytarget-i386/cpu.c+8 -40 replies
5/7tests: test-x86-cpu: Add TCG feature bit initialization testtests/test-x86-cpu.c+25 -00 replies
6/7tests: test-x86-cpu: Add KVM feature bit initialization testtests/test-x86-cpu.c+84 -00 replies
7/7tests: test-x86-cpu: Ensure that -cpu override KVM-specific defaultstests/test-x86-cpu.c+31 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH for-2.4 v5 0/7] Target-specific unit test support, add unit tests for target-i386/cpu.c code

Changes v4 -> v5:
* Rewrite fake kvm_arch_get_supported_cpuid() code
* Add new test to ensure KVM defaults won't override explicit command-line options

Changes v3 -> v4:
* Move target_words_bigendian() prototype back inside tests/x86-stub.c.

Changes v2 -> v3:
* Extra KVM "host" CPU model test cases
* Move target_words_bigendian() prototype to exec-all.h

Changes v1 -> v2:
* Make dependency list of test binary much simpler, now that cpus.o was removed.

Eduardo Habkost (7):
tests: Support target-specific unit tests
tests: Make test-x86-cpuid target-specific
tests: Add unit test for X86CPU code
target-i386: Isolate enabled-by-default features to a separate array
tests: test-x86-cpu: Add TCG feature bit initialization test
tests: test-x86-cpu: Add KVM feature bit initialization test
tests: test-x86-cpu: Ensure that -cpu override KVM-specific defaults

 target-i386/cpu.c    |  12 ++-
 tests/.gitignore     |   1 +
 tests/Makefile       |  49 +++++++++---
 tests/test-x86-cpu.c | 208 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/vl-stub.c      |  15 ++++
 tests/x86-stub.c     | 165 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 437 insertions(+), 13 deletions(-)
 create mode 100644 tests/test-x86-cpu.c
 create mode 100644 tests/vl-stub.c
 create mode 100644 tests/x86-stub.c
Signature · 1 line
2.1.0