Currently, a lot of code in buildin-kvm.c are x86 specific.
In accordance with the proposal of David Ahern, we moved the code under
#ifdefs from buildin-kvm.c into tools/perf/arch/*/kvm-stat.c. Architecture
specific constants were added in arch/*/include/uapi/perf-kvm.h. Also,
generic perf kvm stat structures were moved into the new file util/kvm-stat.h.
So, patches 1-3 reduce architecture dependency of buildin-kvm.c.
Patch 4 implements s390 specific functions. Since some events on s390
can have tree-like structure, the patch also adds functions to handle
these events in generic code.
The patch set based on linux-3.16-rc1 including patches in
"perf kvm: refactoring and small changes".
Link to the "perf kvm: refactoring and small changes" patch series:
https://lkml.org/lkml/2014/7/3/461
Link to the previous thread: https://lkml.org/lkml/2014/4/25/331