From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752827AbbJWJSR (ORCPT ); Fri, 23 Oct 2015 05:18:17 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:5440 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752648AbbJWJRM (ORCPT ); Fri, 23 Oct 2015 05:17:12 -0400 From: Jian Zhou To: , , , , , , , CC: , , , , Jian Zhou Subject: [PATCH v2 0/4] KVM: VMX: enable LBR virtualization Date: Fri, 23 Oct 2015 17:15:14 +0800 Message-ID: <1445591718-5720-1-git-send-email-jianjay.zhou@huawei.com> X-Mailer: git-send-email 2.6.1.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.19.14] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.5629FABC.0158,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 9965bdc85d122f9e12e19d73a3dc52af Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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