nVMX: Improve DEBUGCTL test coverage
Status from this message: Applied to kvm-x86 next, with a comment to explain starting at '1', and a fix
Get series with b4
b4 am [email protected]Versions newest first
Changes in v3 from the cover letter
- 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]
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | nVMX: Remove the IA32_DEBUGCTLMSR access in debugctls testx86/ | +14 | 0 replies | |
| 2/2 | x86/vmx: (Re)Add a nVMX test to validate load/save of DEBUGCTLlib/ x86/ | +152 | 4 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Xiaoyao Li |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [kvm-unit-tests PATCH v3 0/2] nVMX: Improve DEBUGCTL test coverage
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/[email protected]
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
Signature · 1 line
2.54.0.823.g6e5bcc1fc9-goog