From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH V2 0/5] KVM vPMU support for AMD Date: Thu, 9 Apr 2015 21:05:14 +0200 Message-ID: <20150409190514.GB9729@potion.brq.redhat.com> References: <1428509905-32352-1-git-send-email-wei@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, pbonzini@redhat.com, gleb@kernel.org To: Wei Huang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46507 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbbDITFU (ORCPT ); Thu, 9 Apr 2015 15:05:20 -0400 Content-Disposition: inline In-Reply-To: <1428509905-32352-1-git-send-email-wei@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 2015-04-08 12:18-0400, Wei Huang: > Currently KVM only supports vPMU for Intel platforms. This patch set > enable vPMU support for AMD platform by creating a common PMU > interface for x86. The PMU calls from guest VMs are dispatched > to corresponding functions defined in arch specific files. > > V2: > * Create a generic pmu.c file which is shared by Intel and AMD CPUs; > * pmu.c code becomes part of kvm.ko module. Similarly pmu_intel.c and > pmu_amd.c are linked to kvm-intel.ko and kvm-amd.ko respectively; > * Re-define kvm_pmu_ops function pointers. Per Radim Krcmar's comments, > a large portion of Intel vPMU code are now consolidated and moved to > pmu.c; > * Polish pmu_amd.c code to comply with new definition of kvm_pmu_ops; It doesn't apply on top of current kvm queue, I'll have cosmetic change requests that would go well with a rebase.