Skip to content

kvm-unit-tests: Various improvements for x86 tests

Jan Kiszka kvm 1 version Applied

Status from this message: Applied patches 3-13 for now. Will go back to 1 and 2 when I look at your pending KVM patches.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13VMX: Add test cases around interrupt injection and haltingx86/vmx.c x86/vmx.h x86/vmx_tests.c+148 -20 replies
2/13VMX: Extend preemption timer testsx86/vmx_tests.c+64 -200 replies
3/13apic: Remove redundant enable_apicx86/apic.c+0 -10 replies
4/13VMX: Fix return label in fault-triggering handlersx86/vmx.c+2 -22 replies
5/13lib/x86: Move exception test code into librarylib/x86/desc.c lib/x86/desc.h x86/vmx.c+35 -270 replies
6/13x2apic: Test for invalid state transitionslib/x86/apic-defs.h x86/apic.c+43 -10 replies
7/13lib/x86/apic: Consolidate over MSR_IA32_APICBASElib/x86/apic.c+3 -40 replies
8/13apic: Add test case for relocation and writing reserved bitsx86/apic.c+27 -00 replies
9/13VMX: Check unconditional I/O exitingx86/vmx_tests.c+35 -10 replies
10/13Provide common report and report_summary servicesMakefile lib/libcflat.h lib/report.c +10 more+68 -1400 replies
11/13Ignore *.elf build outputs.gitignore+1 -00 replies
12/13svm: Add missing build dependencyconfig-x86-common.mak+1 -10 replies
13/13x86: Add debug facility test caseconfig-x86-common.mak config-x86_64.mak lib/x86/desc.h +2 more+121 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/13] kvm-unit-tests: Various improvements for x86 tests

Highlights:
- improved preemption timer and interrupt injection tests (obsoletes my two patches in vmx queue)
- tests for IA32_APIC_BASE writes
- test for unconditional IO exiting (VMX)
- basic test of debug facilities (hw breakpoints etc.)

Jan Kiszka (13):
VMX: Add test cases around interrupt injection and halting
VMX: Extend preemption timer tests
apic: Remove redundant enable_apic
VMX: Fix return label in fault-triggering handlers lib/x86: Move exception test code into library
x2apic: Test for invalid state transitions lib/x86/apic: Consolidate over MSR_IA32_APICBASE
apic: Add test case for relocation and writing reserved bits
VMX: Check unconditional I/O exiting
Provide common report and report_summary services Ignore *.elf build outputs
svm: Add missing build dependency
x86: Add debug facility test case

 .gitignore            |   1 +
 Makefile              |   3 +-
 config-x86-common.mak |   4 +-
 config-x86_64.mak     |   2 +-
 lib/libcflat.h        |   4 +
 lib/report.c          |  36 +++++++
 lib/x86/apic-defs.h   |   3 +
 lib/x86/apic.c        |   7 +-
 lib/x86/desc.c        |  24 +++++
 lib/x86/desc.h        |   6 ++
 x86/apic.c            |  84 +++++++++++++---
 x86/debug.c           | 113 +++++++++++++++++++++
 x86/emulator.c        |  16 +--
 x86/eventinj.c        |  15 +--
 x86/idt_test.c        |  21 +---
 x86/msr.c             |  15 +--
 x86/pcid.c            |  14 +--
 x86/pmu.c             |  37 +++----
 x86/taskswitch2.c     |  15 +--
 x86/unittests.cfg     |   3 +
 x86/vmx.c             |  57 +++--------
 x86/vmx.h             |   4 +-
 x86/vmx_tests.c       | 264 ++++++++++++++++++++++++++++++++++++++++++++++----
 23 files changed, 548 insertions(+), 200 deletions(-)
 create mode 100644 lib/report.c
 create mode 100644 x86/debug.c
Signature · 1 line
1.8.1.1.298.ge7eed54