From: Paolo Bonzini <pbonzini@redhat.com>
To: Jian Zhou <jianjay.zhou@huawei.com>,
kvm@vger.kernel.org, gleb@kernel.org, tglx@linutronix.de,
mingo@redhat.com, hpa@zytor.com, x86@kernel.org,
linux-kernel@vger.kernel.org
Cc: herongguang.he@huawei.com, zhang.zhanghailiang@huawei.com,
weidong.huang@huawei.com, peter.huangpeng@huawei.com
Subject: Re: [PATCH v2 0/4] KVM: VMX: enable LBR virtualization
Date: Wed, 11 Nov 2015 16:23:34 +0100 [thread overview]
Message-ID: <56435D76.7080402@redhat.com> (raw)
In-Reply-To: <1445591718-5720-1-git-send-email-jianjay.zhou@huawei.com>
On 23/10/2015 11:15, Jian Zhou wrote:
> Changelog in v2:
> (1) move the implementation into vmx.c
> (2) migraton is supported
> (3) add arrays in kvm_vcpu_arch struct to save/restore
> LBR MSRs at vm exit/entry time.
> (4) add a parameter of kvm_intel module to permanently
> disable LBRV
> (5) table of supported CPUs is reorgnized, LBRV
> can be enabled or not according to the guest CPUID
>
> Jian Zhou (4):
> KVM: X86: Add arrays to save/restore LBR MSRs
> KVM: X86: LBR MSRs of supported CPU types
> KVM: X86: Migration is supported
> KVM: VMX: details of LBR virtualization implementation
>
> arch/x86/include/asm/kvm_host.h | 26 ++++-
> arch/x86/include/asm/msr-index.h | 26 ++++-
> arch/x86/kvm/vmx.c | 245 +++++++++++++++++++++++++++++++++++++++
> arch/x86/kvm/x86.c | 88 ++++++++++++--
> 4 files changed, 366 insertions(+), 19 deletions(-)
Thanks, this looks better!
The reason why it took me so long to review it, is that I wanted to
understand what happens if you're running this on CPU model x but using
CPU model y for the guest. I still haven't grokked that fully, so I'll
apply your patches locally and play with them.
In the meanwhile, feel free to send v3 with: 1) the tweak I suggested to
patch 3; 2) the fix for the problem that the buildbot reported on patch 1.
Paolo
next prev parent reply other threads:[~2015-11-11 15:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 9:15 [PATCH v2 0/4] KVM: VMX: enable LBR virtualization Jian Zhou
2015-10-23 9:15 ` [PATCH v2 1/4] KVM: X86: Add arrays to save/restore LBR MSRs Jian Zhou
2015-10-23 12:14 ` kbuild test robot
2015-10-23 9:15 ` [PATCH v2 2/4] KVM: X86: LBR MSRs of supported CPU types Jian Zhou
2015-10-23 9:15 ` [PATCH v2 3/4] KVM: X86: Migration is supported Jian Zhou
2015-11-11 15:15 ` Paolo Bonzini
2015-11-12 7:06 ` Jian Zhou
2015-11-12 9:00 ` Paolo Bonzini
2015-11-12 10:39 ` Jian Zhou
2015-10-23 9:15 ` [PATCH v2 4/4] KVM: VMX: details of LBR virtualization implementation Jian Zhou
2015-11-09 1:33 ` [PATCH v2 0/4] KVM: VMX: enable LBR virtualization Jian Zhou
2015-11-09 9:06 ` Paolo Bonzini
2015-11-09 9:26 ` Jian Zhou
2015-11-11 15:23 ` Paolo Bonzini [this message]
2015-11-12 8:06 ` Jian Zhou
-- strict thread matches above, loose matches on Subject: below --
2015-10-23 8:46 Jian Zhou
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=56435D76.7080402@redhat.com \
--to=pbonzini@redhat.com \
--cc=gleb@kernel.org \
--cc=herongguang.he@huawei.com \
--cc=hpa@zytor.com \
--cc=jianjay.zhou@huawei.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peter.huangpeng@huawei.com \
--cc=tglx@linutronix.de \
--cc=weidong.huang@huawei.com \
--cc=x86@kernel.org \
--cc=zhang.zhanghailiang@huawei.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).