[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [SVM] Add perfcounter svmexits array with correct size creation.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 078c08dc4b0a8c49943f954bf9dcbd62df203d79
# Parent  dc5f894d6834bea9f0f209133c43b62468d2cf20
[SVM] Add perfcounter svmexits array with correct size creation.

Signed-off-by: Tom Woller <thomas.woller@xxxxxxx>
---
 xen/arch/x86/hvm/svm/svm.c   |    2 +-
 xen/include/xen/perfc_defn.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -r dc5f894d6834 -r 078c08dc4b0a xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c        Fri Jul 14 14:00:55 2006 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c        Fri Jul 14 14:01:25 2006 +0100
@@ -2710,7 +2710,7 @@ asmlinkage void svm_vmexit_handler(struc
         domain_crash_synchronous();
     }
 
-    perfc_incra(vmexits, exit_reason);
+    perfc_incra(svmexits, exit_reason);
     eip = vmcb->rip;
 
 #ifdef SVM_EXTRA_DEBUG
diff -r dc5f894d6834 -r 078c08dc4b0a xen/include/xen/perfc_defn.h
--- a/xen/include/xen/perfc_defn.h      Fri Jul 14 14:00:55 2006 +0100
+++ b/xen/include/xen/perfc_defn.h      Fri Jul 14 14:01:25 2006 +0100
@@ -30,6 +30,8 @@ PERFCOUNTER_ARRAY(exceptions,           
 #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)
+#define SVM_PERF_EXIT_REASON_SIZE (1+136)
+PERFCOUNTER_ARRAY(svmexits,             "SVMexits", SVM_PERF_EXIT_REASON_SIZE)
 
 PERFCOUNTER_CPU(seg_fixups,             "segmentation fixups")
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.