Improve test parity between SVM and VMX
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest10 patches 1 replyIn review
- v210 patches 1 replySuperseded
- v19 patches 1 replySuperseded
Changes in v3 from the cover letter
- Open code assembly instructions in svm_ud_test as per Sean.
- Removed unnecessary separate config for svm_ud_test as per Sean.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | x86/svm: Fix virq_inject SVM test failurex86/ | +3 | 0 replies | |
| 2/10 | x86/nSVM: Add test for NPT A/D bitsx86/ | +178 | 0 replies | |
| 3/10 | x86/svm: Add tests for APIC passthroughx86/ | +175 | 0 replies | |
| 4/10 | x86/nSVM: Add tests for instruction interruptslib/ x86/ x86/ +3 more | +244 | 0 replies | |
| 5/10 | x86/svm: Add tests for PF exception testingx86/ x86/ x86/ +1 more | +106 | 0 replies | |
| 6/10 | x86/svm: Extend NPT test coverage for different page table levelslib/ lib/ x86/ +4 more | +333 | 0 replies | |
| 7/10 | x86/svm: Add NPT ignored bits testx86/ | +30 | 0 replies | |
| 8/10 | x86/svm: Add testing for NPT permissions on guest page tablesx86/ | +221 | 0 replies | |
| 9/10 | x86/svm: Add event injection check testslib/ x86/ x86/ | +137 | 0 replies | |
| 10/10 | x86/svm: Add test for #UD when EFER.SVME=0x86/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [kvm-unit-tests PATCH v3 00/10] Improve test parity between SVM and VMX
This series introduces numerous tests for features that VMX testing covers but current SVM testing lacks.
I went through all VMX tests and identified which ones could have an equivalent test written for SVM.
This series also includes some canonicalization and consistency check tests as defined by the AMD APM.
v2 -> v3:
- Open code assembly instructions in svm_ud_test as per Sean.
- Removed unnecessary separate config for svm_ud_test as per Sean.
v2: https://lore.kernel.org/all/[email protected]/
v1 -> v2:
- Renamed check_npt_ad_pte() to found_bad_npt_ad().
- Renamed test_event_injection() to svm_event_injection() and removed the test from the svm suite to run separately.
- For the svm_event_injection test, injecting the CP vector now relies on shadow stack capabilities as suggested by Yosry.
- Added a new test for verifying that certain instructions generate a #UD when EFER.SVME=0. This is a regression test in response to a fix that is currently under review [1]
[1] https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
Kevin Cheng (10):
x86/svm: Fix virq_inject SVM test failure
x86/nSVM: Add test for NPT A/D bits
x86/svm: Add tests for APIC passthrough
x86/nSVM: Add tests for instruction interrupts x86/svm: Add tests for PF exception testing
x86/svm: Extend NPT test coverage for different page table levels x86/svm: Add NPT ignored bits test
x86/svm: Add testing for NPT permissions on guest page tables x86/svm: Add event injection check tests
x86/svm: Add test for #UD when EFER.SVME=0
lib/x86/processor.h | 11 + lib/x86/vm.c | 2 +- lib/x86/vm.h | 2 + x86/Makefile.common | 2 + x86/access.c | 7 - x86/access.h | 11 + x86/svm.c | 16 +- x86/svm.h | 9 + x86/svm_npt.c | 801 ++++++++++++++++++++++++++++++++++++++++---- x86/svm_tests.c | 664 ++++++++++++++++++++++++++++++++---- x86/unittests.cfg | 54 ++- x86/vmx_tests.c | 5 - 12 files changed, 1440 insertions(+), 144 deletions(-)
--
2.53.0.851.ga537e3e6e9-goog