ia64/xen-unstable

changeset 16305:3582a7a52c10

x86, svm: Adds nested paging performance counter to svmexit
PERFCOUNTER_ARRAY while keeping array compacted.
Signed-off-by: Stephen Wilson <stephen.wilson@amd.com>
author Keir Fraser <keir@xensource.com>
date Fri Nov 02 09:30:51 2007 +0000 (2007-11-02)
parents b41333afc9cc
children 4c1b7e48f791
files xen/arch/x86/hvm/svm/svm.c xen/include/asm-x86/perfc_defn.h
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Fri Nov 02 09:16:57 2007 +0000
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Fri Nov 02 09:30:51 2007 +0000
     1.3 @@ -2286,6 +2286,7 @@ asmlinkage void svm_vmexit_handler(struc
     1.4          break;
     1.5  
     1.6      case VMEXIT_NPF:
     1.7 +        perfc_incra(svmexits, VMEXIT_NPF_PERFC);
     1.8          regs->error_code = vmcb->exitinfo1;
     1.9          svm_do_nested_pgfault(vmcb->exitinfo2, regs);
    1.10          break;
     2.1 --- a/xen/include/asm-x86/perfc_defn.h	Fri Nov 02 09:16:57 2007 +0000
     2.2 +++ b/xen/include/asm-x86/perfc_defn.h	Fri Nov 02 09:30:51 2007 +0000
     2.3 @@ -9,7 +9,8 @@ PERFCOUNTER_ARRAY(exceptions,           
     2.4  PERFCOUNTER_ARRAY(vmexits,              "vmexits", VMX_PERF_EXIT_REASON_SIZE)
     2.5  PERFCOUNTER_ARRAY(cause_vector,         "cause vector", VMX_PERF_VECTOR_SIZE)
     2.6  
     2.7 -#define SVM_PERF_EXIT_REASON_SIZE (1+136)
     2.8 +#define VMEXIT_NPF_PERFC 137
     2.9 +#define SVM_PERF_EXIT_REASON_SIZE (1+137)
    2.10  PERFCOUNTER_ARRAY(svmexits,             "SVMexits", SVM_PERF_EXIT_REASON_SIZE)
    2.11  
    2.12  PERFCOUNTER(seg_fixups,             "segmentation fixups")