Skip to content

MSR_IA32_ARCH_CAPABILITIES cleanups

Chao Gao kvm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesIn review
  2. v11 patch 18 repliesSuperseded

Changes in v2 from the cover letter

1. toggle ARCH_CAP_SKIP_VMENTRY_L1DFLUSH bit when l1tf mitigation state is changed by module param. [Xiaoyao, Sean]
2. add more cleanups (patch 2/3)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Track supported ARCH_CAPABILITIES in kvm_capsarch/x86/kvm/vmx/vmx.c arch/x86/kvm/x86.c arch/x86/kvm/x86.h+28 -54 replies
2/3KVM: x86: Correct the name for skipping VMENTER l1d flusharch/x86/kvm/x86.c+1 -11 reply
3/3x86/cpu, KVM: Use helper function to read MSR_IA32_ARCH_CAPABILITIESarch/x86/kernel/cpu/common.c arch/x86/kvm/vmx/vmx.c arch/x86/kvm/x86.c+7 -201 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchXiaoyao Li
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] MSR_IA32_ARCH_CAPABILITIES cleanups

Do some cleanups about MSR_IA32_ARCH_CAPABILITIES in KVM e.g, fix stale comments, elimite open-coded MSR reads, track features that can be exposed to guests to avoid computing them runtime. They are found when reading the code.

No functional change intented.

Changes from v1 -> v2:
1. toggle ARCH_CAP_SKIP_VMENTRY_L1DFLUSH bit when l1tf mitigation state is changed by module param. [Xiaoyao, Sean]
2. add more cleanups (patch 2/3)

Chao Gao (3):
KVM: x86: Track supported ARCH_CAPABILITIES in kvm_caps
KVM: x86: Correct the name for skipping VMENTER l1d flush x86/cpu, KVM: Use helper function to read MSR_IA32_ARCH_CAPABILITIES

 arch/x86/kernel/cpu/common.c |  1 +
 arch/x86/kvm/vmx/vmx.c       | 44 +++++++++++++++++++++++-------------
 arch/x86/kvm/x86.c           | 16 +++++--------
 arch/x86/kvm/x86.h           |  1 +
 4 files changed, 36 insertions(+), 26 deletions(-)

base-commit: b9846a698c9aff4eb2214a06ac83638ad098f33f

Signature · 1 line
2.40.0