From: Sean Christopherson <sean.j.christopherson@intel.com>
To: "Paolo Bonzini" <pbonzini@redhat.com>,
"Radim Krčmář" <rkrcmar@redhat.com>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>,
Wanpeng Li <wanpengli@tencent.com>,
Jim Mattson <jmattson@google.com>, Joerg Roedel <joro@8bytes.org>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] KVM: x86: Refactor MSR related helpers
Date: Thu, 5 Sep 2019 14:22:53 -0700 [thread overview]
Message-ID: <20190905212255.26549-1-sean.j.christopherson@intel.com> (raw)
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(-)
--
2.22.0
next reply other threads:[~2019-09-05 21:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-05 21:22 Sean Christopherson [this message]
2019-09-05 21:22 ` [PATCH 1/2] KVM: x86: Refactor up kvm_{g,s}et_msr() to simplify callers Sean Christopherson
2019-09-05 21:22 ` [PATCH 2/2] KVM: x86: Add kvm_emulate_{rd,wr}msr() to consolidate VXM/SVM code Sean Christopherson
2019-09-10 17:18 ` [PATCH 0/2] KVM: x86: Refactor MSR related helpers Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190905212255.26549-1-sean.j.christopherson@intel.com \
--to=sean.j.christopherson@intel.com \
--cc=jmattson@google.com \
--cc=joro@8bytes.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=vkuznets@redhat.com \
--cc=wanpengli@tencent.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).