direct-io.hg

changeset 10707:078c08dc4b0a

[SVM] Add perfcounter svmexits array with correct size creation.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jul 14 14:01:25 2006 +0100 (2006-07-14)
parents dc5f894d6834
children 34ba512b2d64
files xen/arch/x86/hvm/svm/svm.c xen/include/xen/perfc_defn.h
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Fri Jul 14 14:00:55 2006 +0100
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Fri Jul 14 14:01:25 2006 +0100
     1.3 @@ -2710,7 +2710,7 @@ asmlinkage void svm_vmexit_handler(struc
     1.4          domain_crash_synchronous();
     1.5      }
     1.6  
     1.7 -    perfc_incra(vmexits, exit_reason);
     1.8 +    perfc_incra(svmexits, exit_reason);
     1.9      eip = vmcb->rip;
    1.10  
    1.11  #ifdef SVM_EXTRA_DEBUG
     2.1 --- a/xen/include/xen/perfc_defn.h	Fri Jul 14 14:00:55 2006 +0100
     2.2 +++ b/xen/include/xen/perfc_defn.h	Fri Jul 14 14:01:25 2006 +0100
     2.3 @@ -30,6 +30,8 @@ PERFCOUNTER_ARRAY(exceptions,           
     2.4  #define VMX_PERF_VECTOR_SIZE 0x20
     2.5  PERFCOUNTER_ARRAY(vmexits,              "vmexits", VMX_PERF_EXIT_REASON_SIZE)
     2.6  PERFCOUNTER_ARRAY(cause_vector,         "cause vector", VMX_PERF_VECTOR_SIZE)
     2.7 +#define SVM_PERF_EXIT_REASON_SIZE (1+136)
     2.8 +PERFCOUNTER_ARRAY(svmexits,             "SVMexits", SVM_PERF_EXIT_REASON_SIZE)
     2.9  
    2.10  PERFCOUNTER_CPU(seg_fixups,             "segmentation fixups")
    2.11