Skip to content

Unify MSR intercepts in x86

Aaron Lewis kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15KVM: x86: Use non-atomic bit ops to manipulate "shadow" MSR interceptsarch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/vmx.c+8 -81 reply
2/15KVM: SVM: Use non-atomic bit ops to manipulate MSR interception bitmapsarch/x86/kvm/svm/svm.c+2 -20 replies
3/15KVM: SVM: Invert the polarity of the "shadow" MSR interception bitmapsarch/x86/kvm/svm/svm.c+11 -62 replies
4/15KVM: SVM: Track MSRPM as "unsigned long", not "u32"arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+15 -150 replies
5/15KVM: x86: SVM: Adopt VMX style MSR intercepts in SVMarch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+138 -291 reply
6/15KVM: SVM: Disable intercepts for all direct access MSRs on MSR filter changesarch/x86/kvm/svm/svm.c+11 -71 reply
7/15KVM: SVM: Delete old SVM MSR management codearch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+0 -720 replies
8/15KVM: SVM: Pass through GHCB MSR if and only if VM is SEV-ESarch/x86/kvm/svm/svm.c+4 -11 reply
9/15KVM: SVM: Drop "always" flag from list of possible passthrough MSRsarch/x86/kvm/svm/svm.c+67 -671 reply
10/15KVM: SVM: Don't "NULL terminate" the list of possible passthrough MSRsarch/x86/kvm/svm/svm.c+5 -61 reply
11/15KVM: VMX: Make list of possible passthrough MSRs "const"arch/x86/kvm/vmx/vmx.c+1 -10 replies
12/15KVM: x86: Track possible passthrough MSRs in kvm_x86_opsarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/main.c +3 more+83 -777 replies
13/15KVM: x86: Move ownership of passthrough MSR "shadow" to common x86arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +5 more+69 -870 replies
14/15KVM: x86: Hoist SVM MSR intercepts to common x86 codearch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +2 more+86 -680 replies
15/15KVM: x86: Hoist VMX MSR intercepts to common x86 codearch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +4 more+45 -640 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/15] Unify MSR intercepts in x86

The goal of this series is to unify MSR intercepts into common code between VMX and SVM.

The high level structure of this series is to:
1. Modify SVM MSR intercepts to adopt how VMX does it.
2. Hoist the newly updated SVM MSR intercept implementation to common x86 code.
3. Hoist the VMX MSR intercept implementation to common x86 code.

Aaron Lewis (8):
KVM: SVM: Invert the polarity of the "shadow" MSR interception bitmaps
KVM: SVM: Track MSRPM as "unsigned long", not "u32"
KVM: x86: SVM: Adopt VMX style MSR intercepts in SVM
KVM: SVM: Don't "NULL terminate" the list of possible passthrough MSRs
KVM: x86: Track possible passthrough MSRs in kvm_x86_ops
KVM: x86: Move ownership of passthrough MSR "shadow" to common x86
KVM: x86: Hoist SVM MSR intercepts to common x86 code
KVM: x86: Hoist VMX MSR intercepts to common x86 code

Anish Ghulati (2):
KVM: SVM: Disable intercepts for all direct access MSRs on MSR filter changes
KVM: SVM: Delete old SVM MSR management code

Sean Christopherson (5):
KVM: x86: Use non-atomic bit ops to manipulate "shadow" MSR intercepts
KVM: SVM: Use non-atomic bit ops to manipulate MSR interception bitmaps
KVM: SVM: Pass through GHCB MSR if and only if VM is SEV-ES
KVM: SVM: Drop "always" flag from list of possible passthrough MSRs
KVM: VMX: Make list of possible passthrough MSRs "const"

 arch/x86/include/asm/kvm-x86-ops.h |   5 +-
 arch/x86/include/asm/kvm_host.h    |  18 ++
 arch/x86/kvm/svm/sev.c             |  11 +-
 arch/x86/kvm/svm/svm.c             | 300 ++++++++++++-----------------
 arch/x86/kvm/svm/svm.h             |  30 +--
 arch/x86/kvm/vmx/main.c            |  30 +++
 arch/x86/kvm/vmx/vmx.c             | 144 +++-----------
 arch/x86/kvm/vmx/vmx.h             |  11 +-
 arch/x86/kvm/x86.c                 | 129 ++++++++++++-
 arch/x86/kvm/x86.h                 |   3 +
 10 files changed, 358 insertions(+), 323 deletions(-)
Signature · 1 line
2.47.0.338.g60cca15819-goog