Skip to contentSkip to conversation

perfc_defn.h - increase VMX reason size array

PATCH New Ben Thomas 1 participant 1 message Mar 9, 2006

lore
Share & tools
lore

Ben Thomas

author
#0 lore raw

PATCH 1/1 perfc_defn.h - increase VMX reason size array

If I'm reading the spec correctly, the April 2005 Intel Virtualization Technology Specification (Appendix A1) indicates that there are 44 potential exit reason codes. Based upon this, increase the size of the PERFCOUNTER_ARRAY for vmexits.

Signature · 5 lines
------------------------------------------------------------------------
Ben Thomas                                         Virtual Iron Software
[email protected]                            Tower 1, Floor 2
978-849-1214                                       900 Chelmsford Street
                                                   Lowell, MA 01851
xen/include/xen/perfc_defn.h +1 -1
diff -r 96678f701d42 xen/include/xen/perfc_defn.h
@@ -26,7 +26,7 @@ PERFCOUNTER_ARRAY(hypercalls,           
 PERFCOUNTER_ARRAY(hypercalls,           "hypercalls", NR_hypercalls)
 PERFCOUNTER_ARRAY(exceptions,           "exceptions", 32)
 
-#define VMX_PERF_EXIT_REASON_SIZE 37
+#define VMX_PERF_EXIT_REASON_SIZE 44
 #define VMX_PERF_VECTOR_SIZE 0x20
 PERFCOUNTER_ARRAY(vmexits,              "vmexits", VMX_PERF_EXIT_REASON_SIZE)
 PERFCOUNTER_ARRAY(cause_vector,         "cause vector", VMX_PERF_VECTOR_SIZE)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel