[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86, svm: Adds nested paging performance counter to svmexit
# HG changeset patch # User Keir Fraser <keir@xxxxxxxxxxxxx> # Date 1193995851 0 # Node ID 3582a7a52c103194bc5cbf9c0fac41020b87c0f2 # Parent b41333afc9cc6498bedc6c338becec7aeb165b4c x86, svm: Adds nested paging performance counter to svmexit PERFCOUNTER_ARRAY while keeping array compacted. Signed-off-by: Stephen Wilson <stephen.wilson@xxxxxxx> --- xen/arch/x86/hvm/svm/svm.c | 1 + xen/include/asm-x86/perfc_defn.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff -r b41333afc9cc -r 3582a7a52c10 xen/arch/x86/hvm/svm/svm.c --- a/xen/arch/x86/hvm/svm/svm.c Fri Nov 02 09:16:57 2007 +0000 +++ b/xen/arch/x86/hvm/svm/svm.c Fri Nov 02 09:30:51 2007 +0000 @@ -2286,6 +2286,7 @@ asmlinkage void svm_vmexit_handler(struc break; case VMEXIT_NPF: + perfc_incra(svmexits, VMEXIT_NPF_PERFC); regs->error_code = vmcb->exitinfo1; svm_do_nested_pgfault(vmcb->exitinfo2, regs); break; diff -r b41333afc9cc -r 3582a7a52c10 xen/include/asm-x86/perfc_defn.h --- a/xen/include/asm-x86/perfc_defn.h Fri Nov 02 09:16:57 2007 +0000 +++ b/xen/include/asm-x86/perfc_defn.h Fri Nov 02 09:30:51 2007 +0000 @@ -9,7 +9,8 @@ PERFCOUNTER_ARRAY(vmexits, 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) +#define VMEXIT_NPF_PERFC 137 +#define SVM_PERF_EXIT_REASON_SIZE (1+137) PERFCOUNTER_ARRAY(svmexits, "SVMexits", SVM_PERF_EXIT_REASON_SIZE) PERFCOUNTER(seg_fixups, "segmentation fixups") _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |