Combined GMET and MBEC tests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | move PFERR_* constants to liblib/ x86/ | +7 | 0 replies | |
| 2/9 | add definitions for nested_ctlx86/ x86/ | +4 | 0 replies | |
| 3/9 | svm: add basic GMET testsMakefile lib/ x86/ +2 more | +101 | 2 replies | |
| 4/9 | x86/vmx: update EPT installation to use EPT_PRESENT flagx86/ x86/ x86/ | +20 | 0 replies | |
| 5/9 | x86/vmx: diagnose unexpected EPT violationslib/ x86/ x86/ | +44 | 0 replies | |
| 6/9 | x86/vmx: add mode-based execute control test for Skylake and abovex86/ x86/ x86/ | +81 | 1 reply | |
| 7/9 | x86/vmx: add user execution operation to EPT access testsx86/ | +47 | 0 replies | |
| 8/9 | x86/vmx: run EPT tests with MBEC enabled when availablex86/ x86/ x86/ | +94 | 4 replies | |
| 9/9 | x86/vmx: add EPT tests covering XU permissionx86/ | +120 | 1 reply |
Reviews trailers per patch
None of the 9 patches has a Reviewed-by or Acked-by.
| Patch | Jon Kohler |
|---|---|
| 1/9 | |
| 2/9 | |
| 3/9 | |
| 4/9 | |
| 5/9 | |
| 6/9 | Co-authored-by |
| 7/9 | Co-authored-by |
| 8/9 | Co-authored-by |
| 9/9 | Co-authored-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH kvm-unit-tests 0/9] Combined GMET and MBEC tests
This adds new tests for both GMET and MBEC.
The code for MBEC is roughly based on the previous submission at
https://lore.kernel.org/kvm/[email protected]/,
though with pretty heavy reorganization and fixing work on top.
The existing EPT tests now test execution on both supervisor and user-mode pages, with different expected outcomes depending on whether MBEC is enabled or not; on top of this, the last patch adds tests for XU=1 and XS=XU=1.
For simplicity, the tests always enable MBEC when available. A new block in unittests.cfg ensures that both non-MBEC and MBEC is covered.
I will shortly send a new version of the patches that passes the tests.
Paolo
Jon Kohler (1):
x86/vmx: update EPT installation to use EPT_PRESENT flag
Paolo Bonzini (8):
move PFERR_* constants to lib
add definitions for nested_ctl
svm: add basic GMET tests
x86/vmx: diagnose unexpected EPT violations
x86/vmx: add mode-based execute control test for Skylake and above x86/vmx: add user execution operation to EPT access tests x86/vmx: run EPT tests with MBEC enabled when available x86/vmx: add EPT tests covering XU permission
Makefile | 2 +- lib/util.h | 10 +- lib/x86/asm/page.h | 7 + lib/x86/processor.h | 1 + x86/access.c | 7 - x86/svm.c | 19 +- x86/svm.h | 4 + x86/svm_npt.c | 83 ++++++++- x86/unittests.cfg | 21 ++- x86/vmx.c | 3 +- x86/vmx.h | 32 ++-- x86/vmx_tests.c | 414 +++++++++++++++++++++++++++++++++++++------- 12 files changed, 513 insertions(+), 90 deletions(-)
Signature · 1 line
2.52.0