All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v3 0/2]  nVMX: Improve DEBUGCTL test coverage
@ 2026-05-27 15:12 Sean Christopherson
  2026-05-27 15:12 ` [kvm-unit-tests PATCH v3 1/2] nVMX: Remove the IA32_DEBUGCTLMSR access in debugctls test Sean Christopherson
  2026-05-27 15:12 ` [kvm-unit-tests PATCH v3 2/2] x86/vmx: (Re)Add a nVMX test to validate load/save of DEBUGCTL Sean Christopherson
  0 siblings, 2 replies; 7+ messages in thread
From: Sean Christopherson @ 2026-05-27 15:12 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: kvm, Xiaoyao Li, Chenyi Qiang, Sean Christopherson

Current nested debugctls test focuses on DR7 value and fakes the result of
IA32_DEBUGCTLMSR in comment. Although the test can pass because DR7 is the
only criterion to determine the result, there are some error messages
appearing in dmesg due to accessing to BTF | LBR bits in IA32_DEBUGCTLMSR
with report_ignored_msrs KVM parameter enabled.

Clean up the old test so that it focuses on DR7, then add a separate test for
DEBUGCTLMSR bits that are actually supported and can be validated during VMX
transitions.

v3:
 - Massage changelog in patch 1.  [Xiaoyao]
 - Combine all DEBUGCTL tests into one testcase. [Sean]
 - Validate all supported combinations. [Sean]
 - Independently validate LOAD/SAVE controls. [Sean]
 - Drop unnecessary configuration entry. [Sean]

v2:
 - Modify the commit message in patch 1 (Xiaoyao)
 - Add dedicated tests (for BUS_LOCK_DETECT and LBR) covering the DEBUGCTL
   reads and writes during VMX transitions (Sean)
 - Add one additional test for RTM_DEBUG bit that was not mentioned in v1.

v1: https://lore.kernel.org/kvm/20250811063035.12626-1-chenyi.qiang@intel.com


Chenyi Qiang (2):
  nVMX: Remove the IA32_DEBUGCTLMSR access in debugctls test
  x86/vmx: (Re)Add a nVMX test to validate load/save of DEBUGCTL

 lib/x86/msr.h   |   2 +
 x86/vmx_tests.c | 196 ++++++++++++++++++++++++++++++++++++++++--------
 2 files changed, 166 insertions(+), 32 deletions(-)


base-commit: 05b7715ffd4ae4ef8f0a5dea869f1543d89f936d
-- 
2.54.0.823.g6e5bcc1fc9-goog


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

end of thread, other threads:[~2026-05-28  7:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-27 15:12 [kvm-unit-tests PATCH v3 0/2] nVMX: Improve DEBUGCTL test coverage Sean Christopherson
2026-05-27 15:12 ` [kvm-unit-tests PATCH v3 1/2] nVMX: Remove the IA32_DEBUGCTLMSR access in debugctls test Sean Christopherson
2026-05-27 15:12 ` [kvm-unit-tests PATCH v3 2/2] x86/vmx: (Re)Add a nVMX test to validate load/save of DEBUGCTL Sean Christopherson
2026-05-27 15:19   ` Xiaoyao Li
2026-05-27 15:21     ` Sean Christopherson
2026-05-28  1:43   ` Chenyi Qiang
2026-05-28  7:16   ` Xiaoyao Li

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.