From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jian Zhou Subject: Re: [PATCH v2 0/4] KVM: VMX: enable LBR virtualization Date: Mon, 9 Nov 2015 09:33:40 +0800 Message-ID: <563FF7F4.6050909@huawei.com> References: <1445591718-5720-1-git-send-email-jianjay.zhou@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , To: , Paolo Bonzini Return-path: Received: from szxga01-in.huawei.com ([58.251.152.64]:59232 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752029AbbKIBeQ (ORCPT ); Sun, 8 Nov 2015 20:34:16 -0500 In-Reply-To: <1445591718-5720-1-git-send-email-jianjay.zhou@huawei.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Paolo, May I ask that any suggestion about the version 2 of VMX LBRV? This version is updated following your advices in version 1. BTW the kvm-unit-test for this feature has sent too, and I have tested the CPUs emulated by QEMU. Thanks, Jian On 2015/10/23 17: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(-) > > -- > 1.7.12.4 >