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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/20250529215713.3802116-1-seanjc@xxxxxxxxxx

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
-- 
2.50.0.rc0.604.gd4ff7b7c86-goog





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux