Skip to content

x86: n{VMX,SVM} exception tests

Sean Christopherson kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest9 patches 1 replyIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9nVMX: Add "nop" after setting EFLAGS.TF to guarantee single-step #DBx86/vmx_tests.c+1 -00 replies
2/9x86: Move helpers to generate misc exceptions to processor.hlib/x86/processor.h x86/vmx_tests.c+49 -490 replies
3/9nVMX: Move #OF test to generic exceptions testlib/x86/processor.h x86/vmx_tests.c+48 -540 replies
4/9nVMX: Drop one-off INT3=>#BP testx86/vmx_tests.c+0 -260 replies
5/9x86: nSVM: Add an exception test framework and testsx86/svm_tests.c+77 -00 replies
6/9x86: nSVM: Move #BP test to exception test frameworkx86/svm_tests.c+1 -210 replies
7/9x86: nSVM: Move #OF test to exception test frameworkx86/svm_tests.c+1 -490 replies
8/9x86: nSVM: Move part of #NM test to exception test frameworklib/x86/processor.h x86/svm_tests.c+26 -390 replies
9/9nVMX: Move #NM test to generic exception test frameworkx86/vmx_tests.c+8 -590 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [kvm-unit-tests PATCH v3 0/9] x86: n{VMX,SVM} exception tests

This is a continuation of Manali's series[*] to add nSVM exception routing tests. The functionality is largely the same, but instead of copy+pasting nVMX tests (and vice versa), move the helpers that generate exceptions to processor.h so that at least the gory details can be shared.

An added bonus is that by consolidating code, nVMX can do some of the same cleanups that Manali's patches do for nSVM, e.g. move more testcases to the generic framework and drop fully redundant tests.

https://lore.kernel.org/all/[email protected]

Manali Shukla (4):
x86: nSVM: Add an exception test framework and tests
x86: nSVM: Move #BP test to exception test framework
x86: nSVM: Move #OF test to exception test framework
x86: nSVM: Move part of #NM test to exception test framework

Sean Christopherson (5):
nVMX: Add "nop" after setting EFLAGS.TF to guarantee single-step #DB
x86: Move helpers to generate misc exceptions to processor.h
nVMX: Move #OF test to generic exceptions test
nVMX: Drop one-off INT3=>#BP test
nVMX: Move #NM test to generic exception test framework

 lib/x86/processor.h |  97 ++++++++++++++++++++
 x86/svm_tests.c     | 195 ++++++++++++++++++----------------------
 x86/vmx_tests.c     | 214 ++++++--------------------------------------
 3 files changed, 210 insertions(+), 296 deletions(-)

base-commit: d8a4f9e5e8d69d4ef257b40d6cd666bd2f63494e

Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog