Skip to content

KVM: x86: Refactor MSR related helpers

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Refactor up kvm_{g,s}et_msr() to simplify callersarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm.c arch/x86/kvm/vmx/nested.c +2 more+61 -810 replies
2/2KVM: x86: Add kvm_emulate_{rd,wr}msr() to consolidate VXM/SVM codearch/x86/include/asm/kvm_host.h arch/x86/kvm/svm.c arch/x86/kvm/vmx/vmx.c +1 more+41 -540 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] KVM: x86: Refactor MSR related helpers

Refactor x86's MSR accessors to reduce the amount of boilerplate code required to get/set an MSR, and consolidate the RDMSR/WRMSR emulation for VMX and SVM since the code is functionally identical.

Sean Christopherson (2):
KVM: x86: Refactor up kvm_{g,s}et_msr() to simplify callers
KVM: x86: Add kvm_emulate_{rd,wr}msr() to consolidate VXM/SVM code

 arch/x86/include/asm/kvm_host.h |   6 +-
 arch/x86/kvm/svm.c              |  34 +-------
 arch/x86/kvm/vmx/nested.c       |  22 ++---
 arch/x86/kvm/vmx/vmx.c          |  33 +-------
 arch/x86/kvm/x86.c              | 138 ++++++++++++++++++++------------
 5 files changed, 100 insertions(+), 133 deletions(-)
Signature · 1 line
2.22.0