Skip to content

x86/svm: Make nSVM MSR test useful

Sean Christopherson kvm 2 versions – Applied

Status from this message: Applied to kvm-x86 next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 3 repliesApplied
  2. v12 patches 0 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8x86: nSVM: Actually report missed MSR intercepts as failuresx86/svm_tests.c+27 -490 replies
2/8x86: nSVM: Test MSRs just outside the ranges of the MSR Permissions Mapx86/svm_tests.c+9 -60 replies
3/8x86: nSVM: Clean up variable types and names in test_msr_intercept()x86/svm_tests.c+21 -220 replies
4/8x86: Expand the suite of bitops to cover all set/clear operationslib/x86/asm/bitops.h lib/x86/processor.h+81 -171 reply
5/8x86: nVMX: Use set_bit() instead of test_and_set_bit() when return is ignoredx86/vmx_tests.c+2 -21 reply
6/8x86: nSVM: Set MSRPM bit on-demand when testing interceptionx86/svm_tests.c+96 -80 replies
7/8x86: nSVM: Verify disabling {RD,WR}MSR interception behaves as expectedx86/svm_tests.c+54 -10 replies
8/8x86: nSVM: Verify L1 and L2 see same MSR value when interception is disabledx86/svm_tests.c+12 -10 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchDapeng Mi
1/8
2/8
3/8
4/8R-b
5/8R-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [kvm-unit-tests PATCH v2 0/8] x86/svm: Make nSVM MSR test useful

Fix the nSVM MSR interception test to actually detect failures, and expand its coverage to test:

- Out-of-range MSRs
- With all other bits in the MSPRM clear
- {RD,WR}MSR with interception *disabled*
- That L1 and L2 see the same value for RDMSR when interception is disabled

v1: https://lore.kernel.org/all/[email protected]

Sean Christopherson (8):
x86: nSVM: Actually report missed MSR intercepts as failures
x86: nSVM: Test MSRs just outside the ranges of the MSR Permissions
Map
x86: nSVM: Clean up variable types and names in test_msr_intercept()
x86: Expand the suite of bitops to cover all set/clear operations
x86: nVMX: Use set_bit() instead of test_and_set_bit() when return is
ignored
x86: nSVM: Set MSRPM bit on-demand when testing interception
x86: nSVM: Verify disabling {RD,WR}MSR interception behaves as
expected
x86: nSVM: Verify L1 and L2 see same MSR value when interception is
disabled

 lib/x86/asm/bitops.h |  86 +++++++++++++++-
 lib/x86/processor.h  |  12 ---
 x86/svm_tests.c      | 240 +++++++++++++++++++++++++++++++++----------
 x86/vmx_tests.c      |   4 +-
 4 files changed, 269 insertions(+), 73 deletions(-)

base-commit: 72d110d8286baf1b355301cc8c8bdb42be2663fb

Signature · 1 line
2.50.0.rc0.604.gd4ff7b7c86-goog