From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752730AbbJWIux (ORCPT ); Fri, 23 Oct 2015 04:50:53 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:50280 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752645AbbJWIuW (ORCPT ); Fri, 23 Oct 2015 04:50:22 -0400 From: Jian Zhou To: , , , , , , , CC: , , , , Jian Zhou Subject: [PATCH v2 0/4] KVM: VMX: enable LBR virtualization Date: Fri, 23 Oct 2015 16:46:59 +0800 Message-ID: <1445590023-2012-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 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. (3) add a parameter of kvm_intel module to permanently disable LBRV (4) 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