Skip to contentSkip to conversation

xen: fix build failure if using perfc=y

PATCH Superseded Dario Faggioli 3 participants 3 messages Feb 19, 2015 – Feb 20, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

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
index 3ac7b45..db987d1 100644
@@ -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__ */
Reviewed-by on v1 1/1
#1 lore raw
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
Cc Paul Durrant <[email protected]>
CC Jan Beulich <[email protected]>
Cc 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
index 3ac7b45..db987d1 100644
@@ -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__ */
#2 lore raw
In reply to Dario Faggioli

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