All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v4 0/9] x86/access: CR0.WP=0/1 r/o tests
@ 2023-04-04 16:53 Sean Christopherson
  2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 1/9] x86: Use existing CR0.WP / CR4.SMEP bit definitions Sean Christopherson
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Sean Christopherson @ 2023-04-04 16:53 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: kvm, Mathias Krause, Sean Christopherson

Mathias' series to add explicit CR0.WP toggling tests, along with related
cleanups from me to allow enabling forced emulation for the "core" of the
access test.

The potentially controversial change is to make the extra-slow variants,
including forced emulation, nodefault, i.e. so called "manual" testcases.
Using nodefault is the most elegant solution I could find, e.g. makes it
relatively simple to run all tests on bare metal without triggering a pile
of timeouts when running in a VM.

v4:
 - Make FEP manual-only, but included in the core loop.
 - Mark the extra-slow (4+ minutes each in a VM) VPID-based variants
   manual-only
 - Use the standard reporting machinery so that SKIPs show up
   correctly.

v3:
 - https://lore.kernel.org/all/20230403105618.41118-1-minipli@grsecurity.net 
 - Rewrite changelogs.
 - Use helper for guts of CR0.WP test.

v2: https://lore.kernel.org/kvm/20230331135709.132713-1-minipli@grsecurity.net

Mathias Krause (4):
  x86: Use existing CR0.WP / CR4.SMEP bit definitions
  x86/access: CR0.WP toggling write to r/o data test
  x86/access: Add forced emulation support
  x86/access: Try forced emulation for CR0.WP test as well

Sean Christopherson (5):
  x86/access: Replace spaces with tabs in access_test.c
  x86/access: Use standard pass/fail reporting machinery
  x86: Drop VPID invl tests from nested reduced MAXPHYADDR access
    testcase
  x86: Mark the VPID invalidation nested VMX access tests nodefault
  nVMX: Add forced emulation variant of #PF access test

 x86/access.c      | 114 +++++++++++++++++++++++++++++++++++++++-------
 x86/access.h      |   2 +-
 x86/access_test.c |  28 ++++++------
 x86/pks.c         |   5 +-
 x86/pku.c         |   5 +-
 x86/unittests.cfg |  20 ++++++--
 x86/vmx_tests.c   |  27 ++++++++---
 7 files changed, 154 insertions(+), 47 deletions(-)


base-commit: 5b5d27da2973b20ec29b18df4d749fb2190458af
-- 
2.40.0.348.gf938b09366-goog


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

end of thread, other threads:[~2023-04-05 19:42 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-04 16:53 [kvm-unit-tests PATCH v4 0/9] x86/access: CR0.WP=0/1 r/o tests Sean Christopherson
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 1/9] x86: Use existing CR0.WP / CR4.SMEP bit definitions Sean Christopherson
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 2/9] x86/access: CR0.WP toggling write to r/o data test Sean Christopherson
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 3/9] x86/access: Replace spaces with tabs in access_test.c Sean Christopherson
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 4/9] x86/access: Use standard pass/fail reporting machinery Sean Christopherson
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 5/9] x86/access: Add forced emulation support Sean Christopherson
2023-04-04 18:49   ` Sean Christopherson
2023-04-04 23:43     ` Sean Christopherson
2023-04-05 11:29   ` Mathias Krause
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 6/9] x86/access: Try forced emulation for CR0.WP test as well Sean Christopherson
2023-04-05 11:48   ` Mathias Krause
2023-04-05 14:29     ` Sean Christopherson
2023-04-05 15:41       ` Mathias Krause
2023-04-05 19:41         ` Sean Christopherson
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 7/9] x86: Drop VPID invl tests from nested reduced MAXPHYADDR access testcase Sean Christopherson
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 8/9] x86: Mark the VPID invalidation nested VMX access tests nodefault Sean Christopherson
2023-04-04 16:53 ` [kvm-unit-tests PATCH v4 9/9] nVMX: Add forced emulation variant of #PF access test Sean Christopherson
2023-04-04 19:45   ` Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.