xen: fix build failure if using perfc=y
PATCH 1/1 xen: fix build failure if using perfc=y
by providing the definition of the {w,r}rmsr_tsc_msr counters, used within Viridiam implementation.
Signed-off-by Dario Faggioli <[email protected]>
Cc Paul Durrant <[email protected]>
CC Jan Beulich <[email protected]>
Cc Andrew Cooper <[email protected]>
--- xen/include/xen/perfc_defn.h | 4 ++++ 1 file changed, 4 insertions(+)
xen/include/xen/perfc_defn.h +4 -0
@@ -53,4 +53,8 @@ PERFCOUNTER(vcpu_hot, "csched: vcpu_hot")PERFCOUNTER (need_flush_tlb_flush,"PG_need_flush tlb flushes" ) +/* Viridian counters */ +PERFCOUNTER(mshv_wrmsr_tsc_msr, "viridian: wrmsr_tsc_msr") +PERFCOUNTER (mshv_rdmsr_tsc_msr,"viridian: rdmsr_tsc_msr" ) +/*#endif*/ /* __XEN_PERFC_DEFN_H__ */
Quoted 2 lines · Dario Faggioli
by providing the definition of the {w,r}rmsr_tsc_msr counters, used within Viridiam implementation.
"Viridian"
Quoted 5 lines
Signed-off-by Dario Faggioli <[email protected]>Cc Paul Durrant <[email protected]>CC Jan Beulich <[email protected]>Cc Andrew Cooper <[email protected]>
Reviewed-by Andrew Cooper <[email protected]>
Quoted 18 lines
--- xen/include/xen/perfc_defn.h | 4 ++++ 1 file changed, 4 insertions(+)xen/include/xen/perfc_defn.h +4
-0@@ -53,4 +53,8 @@ PERFCOUNTER(vcpu_hot, "csched: vcpu_hot")PERFCOUNTER (need_flush_tlb_flush,"PG_need_flush tlb flushes" ) +/* Viridian counters */ +PERFCOUNTER(mshv_wrmsr_tsc_msr, "viridian: wrmsr_tsc_msr") +PERFCOUNTER (mshv_rdmsr_tsc_msr,"viridian: rdmsr_tsc_msr" ) +/*#endif*/ /* __XEN_PERFC_DEFN_H__ */
xen/include/xen/perfc_defn.h PERFCOUNTER(vcpu_hot, "csched: vcpu_hot") · line 58
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 19.02.15 at 18:11, <[email protected]> wrote:
xen/include/xen/perfc_defn.h +3
-0@@ -53,4 +53,8 @@ PERFCOUNTER(vcpu_hot, "csched: vcpu_hot")PERFCOUNTER (need_flush_tlb_flush,"PG_need_flush tlb flushes" ) +/* Viridian counters */ +PERFCOUNTER(mshv_wrmsr_tsc_msr, "viridian: wrmsr_tsc_msr") +PERFCOUNTER (mshv_rdmsr_tsc_msr,"viridian: rdmsr_tsc_msr" )
They belong into xen/include/asm-x86/perfc_defn.h (you'll find a large group of other mshv_* ones there).
Jan