x86: nSVM: Add testing for routing L2 exceptions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 8 repliesIn review
- v13 patches 9 repliesSuperseded
Changes in v2 from the cover letter
1) Rebased to latest kvm-unit-tests.
2) Move 3 different exception test cases #BP, #OF and #NM exception to exception test framework.
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/kvm/[email protected]/
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | x86: nSVM: Add an exception test framework and testsx86/ | +114 | 1 reply | |
| 2/4 | x86: nSVM: Move #BP test to exception test frameworkx86/ | +2 | 0 replies | |
| 3/4 | x86: nSVM: Move #OF test to exception test frameworkx86/ | +2 | 0 replies | |
| 4/4 | x86: nSVM: Move part of #NM test to exception test frameworkx86/ | +24 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [kvm-unit-tests PATCH v2 0/4] x86: nSVM: Add testing for routing L2 exceptions
Series is inspired by vmx exception test framework series[1].
Set up a test framework that verifies an exception occurring in L2 is forwarded to the right place (L1 or L2).
Tests two conditions for each exception.
1) Exception generated in L2, is handled by L2 when L2 exception handler is registered.
2) Exception generated in L2, is handled by L1 when intercept exception bit map is set in L1.
Above tests were added to verify 8 different exceptions. #GP, #UD, #DE, #DB, #AC, #OF, #BP, #NM.
There are 4 patches in this series
1) Added test infrastructure and exception tests.
2) Move #BP test to exception test framework.
3) Move #OF test to exception test framework.
4) Move part of #NM test to exception test framework because
#NM has a test case which checks the condition for which #NM should not be generated, all the test cases under #NM test except this test case have been moved to exception test framework because of the exception test framework design.
v1->v2
1) Rebased to latest kvm-unit-tests.
2) Move 3 different exception test cases #BP, #OF and #NM exception to exception test framework.
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/kvm/[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
x86/svm_tests.c | 197 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 142 insertions(+), 55 deletions(-)
Signature · 1 line
2.34.1