From: Avi Kivity Subject: [PATCH kvm-unit-tests 0/4] PMU tests Date: Mon, 13 Jun 2011 15:28:43 +0300 Message-ID: <1307968127-22440-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:61707 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752460Ab1FMM2v (ORCPT ); Mon, 13 Jun 2011 08:28:51 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5DCSpkY017006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 13 Jun 2011 08:28:51 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p5DCSo4W007567 for ; Mon, 13 Jun 2011 08:28:50 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Following is a simple unit test for the PMU emulation. Avi Kivity (4): Build tests with optimization enabled startup: prepare CPU for floating point operation Add rdpmc instruction accessor Add PMU test Makefile | 2 +- config-x86-common.mak | 4 ++- lib/x86/processor.h | 8 ++++++ lib/x86/smp.c | 9 +++++++ x86/cstart.S | 2 + x86/cstart64.S | 2 + x86/pmu.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 x86/pmu.c -- 1.7.5.3