Skip to content

x86/msr: Add SPEC_CTRL coverage

Sean Christopherson kvm 1 version Applied

Status from this message: Applied to kvm-x86 next, with X86_FEATURE_STIBP gating STIBP (thanks Chao!).

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86/msr: Treat PRED_CMD as support if CPU has SBPBlib/x86/processor.h x86/msr.c+3 -10 replies
2/3x86/msr: Add a testcase to verify SPEC_CTRL exists (or not) as expectedlib/x86/msr.h lib/x86/processor.h x86/msr.c+42 -62 replies
3/3x86/msr: Add an "msr64" test configuration to validate negative casesx86/unittests.cfg+7 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchChao Gao
1/3
2/3R-b
3/3

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

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/3] x86/msr: Add SPEC_CTRL coverage

Add test coverage for SPEC_CTRL, which detects the bug pointed by Chao[1] when running on hosts with V_SPEC_CTRL.

Note, this applies on top of the X86_FEATURE_XXX cleanup[2].

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

Sean Christopherson (3):
x86/msr: Treat PRED_CMD as support if CPU has SBPB x86/msr: Add a testcase to verify SPEC_CTRL exists (or not) as
expected
x86/msr: Add an "msr64" test configuration to validate negative cases

 lib/x86/msr.h       |  8 ++++++--
 lib/x86/processor.h | 10 ++++++++--
 x86/msr.c           | 34 +++++++++++++++++++++++++++++++---
 x86/unittests.cfg   |  7 +++++++
 4 files changed, 52 insertions(+), 7 deletions(-)

base-commit: a93196db8339df0c09d900f9a465820a9d932c1b

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