From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH V3 0/4] KVM vPMU support for AMD CPUs Date: Tue, 21 Apr 2015 18:38:01 +0200 Message-ID: <20150421163800.GC15969@potion.brq.redhat.com> References: <1429338232-11938-1-git-send-email-wei@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, gleb@kernel.org, pbonzini@redhat.com, joro@8bytes.org To: Wei Huang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39277 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932444AbbDUQiN (ORCPT ); Tue, 21 Apr 2015 12:38:13 -0400 Content-Disposition: inline In-Reply-To: <1429338232-11938-1-git-send-email-wei@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 2015-04-18 02:23-0400, Wei Huang: > Currently KVM only supports vPMU for Intel CPUs. This patchset enables > KVM vPMU support for AMD platform by creating a common PMU interface for > x86. By refractoring, PMU related MSR accesses from guest VMs are dispatched > to corresponding functions defined in arch specific files. > > V3: > * Rebase the code to the latest of KVM tree (queue branch); > * Branch out the Intel specific code from pmu.c to pmu_intel.c, in order > to reflect the change history more accurately; > * Name the parameters/variables more consistently (use msr, idx, > pmc_idx) across files; > * Fix issues (whitespaces, macro names, ...) based on Radim's V2 comments; > * Fix the MSR_K7_PERFCTRn and MSR_K7_EVNTSELn access code (in patch 4); Looks ok, thanks. I only have petty comments about naming and stuff and ideas leading to less code duplication ... I'll just smoke test it and give the proper tag tomorrow.