VMX framework enhancements and new tests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest32 patches 19 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | x86: add test filter to vmx.flat.x86/ | +37 | 0 replies | |
| 2/32 | x86: add config for each vmx unit test casex86/ x86/ | +87 | 0 replies | |
| 3/32 | x86: move basic vmx tests into separate test casesx86/ x86/ | +84 | 0 replies | |
| 4/32 | x86: add missing vmx test cases to unittests.cfgx86/ | +24 | 0 replies | |
| 5/32 | lib: better test name filteringlib/ lib/ x86/ | +70 | 0 replies | |
| 6/32 | x86: vmx: filter exit_monitor_from_l2_test from full vmx testx86/ | +1 | 1 reply | |
| 7/32 | x86: test exit while vmcs02 is loadedx86/ | +14 | 0 replies | |
| 8/32 | x86: Adding gtest to check correct instruction error is returnedx86/ x86/ | +34 | 0 replies | |
| 9/32 | x86: basic vmwrite/vmread testx86/ x86/ x86/ | +275 | 0 replies | |
| 10/32 | x86: vmcs lifecycle testx86/ x86/ | +66 | 0 replies | |
| 11/32 | x86: test VMCS in memory after VMCLEARx86/ | +37 | 0 replies | |
| 12/32 | x86: test VMPTRLD does not drop VMWRITEsx86/ | +6 | 0 replies | |
| 13/32 | x86: don't special case vmx null testx86/ x86/ x86/ | +11 | 0 replies | |
| 14/32 | x86: factor out vmx_enter_guestx86/ | +41 | 0 replies | |
| 15/32 | x86: binstr utility functionlib/ lib/ | +37 | 0 replies | |
| 16/32 | x86: vmx exit reason descriptionsx86/ x86/ | +79 | 0 replies | |
| 17/32 | x86: v2 vmx test frameworkx86/ x86/ x86/ +1 more | +343 | 0 replies | |
| 18/32 | lib: provide stdio.hlib/ | +4 | 3 replies | |
| 19/32 | lib: added assert_msg macrolib/ | +10 | 1 reply | |
| 20/32 | lib: fix *printf return valuelib/ | +0 | 1 reply | |
| 21/32 | lib: printf-style report prefixeslib/ lib/ | +34 | 4 replies | |
| 22/32 | lib: add newline to assert_msglib/ | +1 | 2 replies | |
| 23/32 | lib: x86: store free pages in ascending orderlib/ | +22 | 0 replies | |
| 24/32 | lib: x86: multi-page allocatorlib/ lib/ | +58 | 0 replies | |
| 25/32 | x86: ept assertionsx86/ x86/ | +13 | 1 reply | |
| 26/32 | x86: setup_ept code motionx86/ | +8 | 0 replies | |
| 27/32 | x86: 2GiB RAM for vmx testsx86/ | +1 | 2 replies | |
| 28/32 | x86: ept capability utilitiesx86/ x86/ x86/ | +38 | 0 replies | |
| 29/32 | lib: x86: page table utilitieslib/ lib/ | +108 | 0 replies | |
| 30/32 | x86: ept access testslib/ x86/ x86/ +1 more | +962 | 0 replies | |
| 31/32 | x86: force ept 2m testx86/ x86/ | +19 | 0 replies | |
| 32/32 | lib: add report_passlib/ lib/ x86/ | +11 | 0 replies |
Reviews trailers per patch
3 of 32 patches have a Reviewed-by or Acked-by.
| Patch | Andrew Jones |
|---|---|
| 1/32 | |
| 2/32 | |
| 3/32 | |
| 4/32 | |
| 5/32 | |
| 6/32 | |
| 7/32 | |
| 8/32 | |
| 9/32 | |
| 10/32 | |
| 11/32 | |
| 12/32 | |
| 13/32 | |
| 14/32 | |
| 15/32 | |
| 16/32 | |
| 17/32 | |
| 18/32 | |
| 19/32 | R-b |
| 20/32 | R-b |
| 21/32 | R-b |
| 22/32 | |
| 23/32 | |
| 24/32 | |
| 25/32 | |
| 26/32 | |
| 27/32 | |
| 28/32 | |
| 29/32 | |
| 30/32 | |
| 31/32 | |
| 32/32 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [kvm-unit-tests PATCH 00/32] VMX framework enhancements and new tests
Patches 1-6 split out the VMX tests into their own unit tests.
Patches 7-12 add new VMX unit tests.
Patches 13-17 implement a new VMX test framework ("v2"). Instead of registering a main function and an exit handler, entering and exiting guest mode is accomplished by calling a function, enter_guest().
Patches 18-22 add some assert and printf enhancements to lib/.
Patches 23-32 add EPT access tests, using the v2 framework.
4 of the EPT access tests reveal KVM bugs (4.11-rc6, on a Haswell CPU):
vmx_ept_access_test_execute_only vmx_ept_access_test_paddr_not_present_ad_disabled vmx_ept_access_test_paddr_read_only_ad_disabled vmx_ept_access_test_paddr_read_execute_ad_disabled
The rest of the new tests in this series pass.
David Matlack (8):
x86: move basic vmx tests into separate test cases
x86: add missing vmx test cases to unittests.cfg
x86: vmx: filter exit_monitor_from_l2_test from full vmx test
x86: basic vmwrite/vmread test
x86: vmcs lifecycle test
x86: test VMCS in memory after VMCLEAR
x86: test VMPTRLD does not drop VMWRITEs
lib: add report_pass
GanShun (1):
x86: Adding gtest to check correct instruction error is returned
Peter Feiner (23):
x86: add test filter to vmx.flat.
x86: add config for each vmx unit test case
lib: better test name filtering
x86: test exit while vmcs02 is loaded
x86: don't special case vmx null test
x86: factor out vmx_enter_guest
x86: binstr utility function
x86: vmx exit reason descriptions
x86: v2 vmx test framework
lib: provide stdio.h
lib: added assert_msg macro
lib: fix *printf return value
lib: printf-style report prefixes
lib: add newline to assert_msg
lib: x86: store free pages in ascending order
lib: x86: multi-page allocator
x86: ept assertions
x86: setup_ept code motion
x86: 2GiB RAM for vmx tests
x86: ept capability utilities
lib: x86: page table utilities
x86: ept access tests
x86: force ept 2m test
lib/libcflat.h | 21 ++ lib/printf.c | 31 +- lib/report.c | 45 ++- lib/stdio.h | 4 + lib/string.c | 41 +++ lib/x86/asm/page.h | 2 + lib/x86/vm.c | 183 ++++++++-- lib/x86/vm.h | 28 ++ x86/unittests.cfg | 291 +++++++++++++++- x86/vmx.c | 833 +++++++++++++++++++++++++++++++++++++++----- x86/vmx.h | 151 +++++++- x86/vmx_tests.c | 989 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 12 files changed, 2493 insertions(+), 126 deletions(-) create mode 100644 lib/stdio.h
Signature · 1 line
2.12.2.816.g2cccc81164-goog