Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH kvm-unit-tests 0/9] Combined GMET and MBEC tests
@ 2026-03-26 14:50 Paolo Bonzini
  2026-03-26 14:50 ` [PATCH kvm-unit-tests 1/9] move PFERR_* constants to lib Paolo Bonzini
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Paolo Bonzini @ 2026-03-26 14:50 UTC (permalink / raw)
  To: kvm; +Cc: Jon Kohler, Nikunj A Dadhania, Amit Shah, Sean Christopherson

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/20251223054850.1611618-1-jon@nutanix.com/,
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(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-05-12 11:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-26 14:50 [PATCH kvm-unit-tests 0/9] Combined GMET and MBEC tests Paolo Bonzini
2026-03-26 14:50 ` [PATCH kvm-unit-tests 1/9] move PFERR_* constants to lib Paolo Bonzini
2026-03-26 14:50 ` [PATCH kvm-unit-tests 2/9] add definitions for nested_ctl Paolo Bonzini
2026-03-26 14:50 ` [PATCH kvm-unit-tests 3/9] svm: add basic GMET tests Paolo Bonzini
2026-03-27 16:03   ` Jon Kohler
2026-03-26 14:50 ` [PATCH kvm-unit-tests 4/9] x86/vmx: update EPT installation to use EPT_PRESENT flag Paolo Bonzini
2026-03-26 14:50 ` [PATCH kvm-unit-tests 5/9] x86/vmx: diagnose unexpected EPT violations Paolo Bonzini
2026-03-26 14:50 ` [PATCH kvm-unit-tests 6/9] x86/vmx: add mode-based execute control test for Skylake and above Paolo Bonzini
2026-03-27 15:57   ` Jon Kohler
2026-03-26 14:50 ` [PATCH kvm-unit-tests 7/9] x86/vmx: add user execution operation to EPT access tests Paolo Bonzini
2026-03-26 14:50 ` [PATCH kvm-unit-tests 8/9] x86/vmx: run EPT tests with MBEC enabled when available Paolo Bonzini
2026-03-26 16:13   ` Paolo Bonzini
2026-03-27 15:57     ` Jon Kohler
2026-03-27 15:57   ` Jon Kohler
2026-03-26 14:50 ` [PATCH kvm-unit-tests 9/9] x86/vmx: add EPT tests covering XU permission Paolo Bonzini
2026-03-27 15:56   ` Jon Kohler
2026-05-12 11:06 ` [PATCH kvm-unit-tests 0/9] Combined GMET and MBEC tests Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox