WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86, svm: Adds nested paging performance

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86, svm: Adds nested paging performance counter to svmexit
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Nov 2007 04:20:30 -0800
Delivery-date: Fri, 09 Nov 2007 04:23:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86, svm: Adds nested paging performance counter to svmexit, Xen patchbot-unstable <=