Skip to content

x86/vmx: unit tests for Intel MBEC

Jon Kohler kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10x86/vmx: add mode-based execute control test for Skylake and abovex86/unittests.cfg x86/vmx.h x86/vmx_tests.c+93 -00 replies
2/10x86/vmx: update EPT installation to use EPT_PRESENT flagx86/vmx.c x86/vmx.h x86/vmx_tests.c+23 -200 replies
3/10x86/vmx: add user execution operation to EPT access testsx86/vmx_tests.c+17 -00 replies
4/10x86/vmx: conditionally include EPT ignored bit 10 based on MBEC supportx86/unittests.cfg x86/vmx_tests.c+18 -20 replies
5/10x86/vmx: update EPT read write execute test for MBEC supportx86/vmx_tests.c+3 -00 replies
6/10x86/vmx: update EPT access paddr tests for MBEC supportx86/vmx_tests.c+42 -00 replies
7/10x86/vmx: update EPT access tests for MBEC support (needs help)x86/vmx_tests.c+10 -10 replies
8/10x86/vmx: update EPT supervisor execute only tests for MBEC support (needs help)x86/vmx_tests.c+8 -00 replies
9/10x86/vmx: add EPT user-only execute access test for MBEC support (needs help)x86/vmx_tests.c+45 -30 replies
10/10x86/vmx: update remaining EPT access tests for MBEC support (needs help)x86/vmx_tests.c+27 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 00/10] x86/vmx: unit tests for Intel MBEC

Expand both VMX and EPT test cases for Intel mode-based execute control (aka MBEC). Knock on wood, they are mostly functional and provide good coverage; however, I could use some assistance with the last four patches. I've added in-line code comments (as well as commit log msgs) explaining the observed issues. I suspect the problem is something to do with how KUT is allocating memory.

Knock on some more wood, anecdotally, Windows desktop and Windows server with MBEC work without any issues, so the core "does it boot" and "does it perform well" are at least sane from that perspective.

Jon Kohler (10):
x86/vmx: add mode-based execute control test for Skylake and above x86/vmx: update EPT installation to use EPT_PRESENT flag x86/vmx: add user execution operation to EPT access tests x86/vmx: conditionally include EPT ignored bit 10 based on MBEC
support
x86/vmx: update EPT read write execute test for MBEC support x86/vmx: update EPT access paddr tests for MBEC support x86/vmx: update EPT access tests for MBEC support (needs help) x86/vmx: update EPT supervisor execute only tests for MBEC support
(needs help)
x86/vmx: add EPT user-only execute access test for MBEC support (needs
help)
x86/vmx: update remaining EPT access tests for MBEC support (needs
help)

 x86/unittests.cfg |  21 +++-
 x86/vmx.c         |   3 +-
 x86/vmx.h         |  24 +++--
 x86/vmx_tests.c   | 266 ++++++++++++++++++++++++++++++++++++++++++----
 4 files changed, 286 insertions(+), 28 deletions(-)
Signature · 1 line
2.43.0