KVM: PMU: add proper support for fixed counter 2
authorGleb Natapov <gleb@redhat.com>
Sun, 26 Feb 2012 14:55:42 +0000 (16:55 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 8 Mar 2012 12:13:34 +0000 (14:13 +0200)
commit62079d8a431287a4da81db64e002c71f0e06ca83
tree774d3dc7cebfc938863b47d0048ad3c79c953d21
parentfac3368310765ade6bbdf07c9acdb04210e8b5b0
KVM: PMU: add proper support for fixed counter 2

Currently pmu emulation emulates fixed counter 2 as bus cycles
architectural counter, but since commit 9c1497ea591b25d perf has
pseudo encoding for it. Use it.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/pmu.c