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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html