From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Huang Subject: [kvm-unit-tests RFC 0/3] x86/pmu: Add AMD vPMU testing code Date: Thu, 3 Aug 2017 23:24:27 -0500 Message-ID: <1501820670-23194-1-git-send-email-wei@redhat.com> Cc: pbonzini@redhat.com, rkrcmar@redhat.com, wei@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50762 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899AbdHDEYc (ORCPT ); Fri, 4 Aug 2017 00:24:32 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1FB3F552EA for ; Fri, 4 Aug 2017 04:24:32 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: This patchset adds the PMU testing case for AMD CPU. The original pmu test code is re-named to intel_pmu. And common PMU event and counter definitions are moved to pmu.h, which is shared between intel_pmu and amd_pmc. Thanks, -Wei Wei Huang (3): pmu: move common x86 PMU definitions to pmu.h pmu: Rename pmu.c code to intel_pmu.c pmu: Create AMD PMU test code x86/Makefile.common | 3 +- x86/amd_pmu.c | 265 +++++++++++++++++++++++++++++++++ x86/intel_pmu.c | 379 +++++++++++++++++++++++++++++++++++++++++++++++ x86/pmu.c | 413 ---------------------------------------------------- x86/pmu.h | 42 ++++++ x86/unittests.cfg | 8 +- 6 files changed, 694 insertions(+), 416 deletions(-) create mode 100644 x86/amd_pmu.c create mode 100644 x86/intel_pmu.c delete mode 100644 x86/pmu.c create mode 100644 x86/pmu.h -- 2.7.5