ia64/xen-unstable

changeset 10183:218daa547e8a

Fix VMEXIT tracing.
Signed-off-by: Bruce Rogers <brogers@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 25 21:18:55 2006 +0100 (2006-05-25)
parents da7fe04d8e80
children 26b8e3e7430d
files xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/vmx/vmx.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Thu May 25 16:00:36 2006 +0100
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Thu May 25 21:18:55 2006 +0100
     1.3 @@ -51,13 +51,6 @@
     1.4  
     1.5  #define SVM_EXTRA_DEBUG
     1.6  
     1.7 -#ifdef TRACE_BUFFER
     1.8 -static unsigned long trace_values[NR_CPUS][4];
     1.9 -#define TRACE_VMEXIT(index,value) trace_values[current->processor][index]=value
    1.10 -#else
    1.11 -#define TRACE_VMEXIT(index,value) ((void)0)
    1.12 -#endif
    1.13 -
    1.14  /* Useful define */
    1.15  #define MAX_INST_SIZE  15
    1.16  
    1.17 @@ -817,7 +810,6 @@ static int svm_do_page_fault(unsigned lo
    1.18              return 1;
    1.19  
    1.20          handle_mmio(va, va);
    1.21 -        TRACE_VMEXIT(2,2);
    1.22          return 1;
    1.23      }
    1.24  
    1.25 @@ -843,7 +835,6 @@ static int svm_do_page_fault(unsigned lo
    1.26              return 1;
    1.27          }
    1.28  
    1.29 -        TRACE_VMEXIT (2,2);
    1.30          handle_mmio(va, gpa);
    1.31  
    1.32          return 1;
    1.33 @@ -856,8 +847,6 @@ static int svm_do_page_fault(unsigned lo
    1.34          set_bit(ARCH_SVM_VMCB_ASSIGN_ASID, &v->arch.hvm_svm.flags);
    1.35      }
    1.36  
    1.37 -    TRACE_VMEXIT (2,result);
    1.38 -
    1.39      return result;
    1.40  }
    1.41  
     2.1 --- a/xen/arch/x86/hvm/vmx/vmx.c	Thu May 25 16:00:36 2006 +0100
     2.2 +++ b/xen/arch/x86/hvm/vmx/vmx.c	Thu May 25 21:18:55 2006 +0100
     2.3 @@ -47,7 +47,7 @@
     2.4  #include <asm/hvm/vpic.h>
     2.5  #include <asm/hvm/vlapic.h>
     2.6  
     2.7 -static unsigned long trace_values[NR_CPUS][4];
     2.8 +static unsigned long trace_values[NR_CPUS][5];
     2.9  #define TRACE_VMEXIT(index,value) trace_values[smp_processor_id()][index]=value
    2.10  
    2.11  static void vmx_ctxt_switch_from(struct vcpu *v);