ia64/xen-unstable

changeset 3910:185d934d0b74

bitkeeper revision 1.1236.1.11 (421da0daKKsT7rDnkbjTI6O17x8XIQ)

[PATCH] trace-int.patch

Trace guest interrupt injections too.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>

===== arch/x86/vmx.c 1.21 vs edited =====
author arun.sharma@intel.com[kaf24]
date Thu Feb 24 09:39:38 2005 +0000 (2005-02-24)
parents 33aa4ad8f9d3
children 2d1350c497e9
files xen/arch/x86/vmx.c xen/arch/x86/vmx_io.c xen/include/asm-x86/vmx.h
line diff
     1.1 --- a/xen/arch/x86/vmx.c	Thu Feb 24 09:39:31 2005 +0000
     1.2 +++ b/xen/arch/x86/vmx.c	Thu Feb 24 09:39:38 2005 +0000
     1.3 @@ -706,9 +706,6 @@ void restore_xen_regs(struct xen_regs *r
     1.4  }
     1.5  #endif
     1.6  
     1.7 -#define TRC_VMX_VMEXIT 0x00040001
     1.8 -#define TRC_VMX_VECTOR 0x00040002
     1.9 -
    1.10  asmlinkage void vmx_vmexit_handler(struct xen_regs regs)
    1.11  {
    1.12      unsigned int exit_reason, idtv_info_field;
    1.13 @@ -813,6 +810,7 @@ asmlinkage void vmx_vmexit_handler(struc
    1.14                  __vmwrite(VM_ENTRY_INTR_INFO_FIELD, intr_fields);
    1.15                  __vmwrite(VM_ENTRY_EXCEPTION_ERROR_CODE, regs.error_code);
    1.16                  ed->arch.arch_vmx.cpu_cr2 = va;
    1.17 +                TRACE_3D(TRC_VMX_INT, ed->domain->id, TRAP_page_fault, va);
    1.18              }
    1.19              break;
    1.20          }
     2.1 --- a/xen/arch/x86/vmx_io.c	Thu Feb 24 09:39:31 2005 +0000
     2.2 +++ b/xen/arch/x86/vmx_io.c	Thu Feb 24 09:39:38 2005 +0000
     2.3 @@ -22,6 +22,7 @@
     2.4  #include <xen/mm.h>
     2.5  #include <xen/lib.h>
     2.6  #include <xen/errno.h>
     2.7 +#include <xen/trace.h>
     2.8  
     2.9  #include <asm/cpufeature.h>
    2.10  #include <asm/processor.h>
    2.11 @@ -372,6 +373,7 @@ void vmx_intr_assist(struct exec_domain 
    2.12  
    2.13      __vmwrite(GUEST_INTERRUPTIBILITY_INFO, 0);
    2.14  
    2.15 +    TRACE_2D(TRC_VMX_INT, d, highest_vector);
    2.16      if (highest_vector == vpit->vector)
    2.17          vpit->inject_point = NOW();
    2.18  
     3.1 --- a/xen/include/asm-x86/vmx.h	Thu Feb 24 09:39:31 2005 +0000
     3.2 +++ b/xen/include/asm-x86/vmx.h	Thu Feb 24 09:39:38 2005 +0000
     3.3 @@ -248,4 +248,9 @@ static inline int __vmxon (u64 addr)
     3.4          return -1;
     3.5      return 0;
     3.6  }
     3.7 +
     3.8 +#define TRC_VMX_VMEXIT 0x00040001
     3.9 +#define TRC_VMX_VECTOR 0x00040002
    3.10 +#define TRC_VMX_INT    0x00040003
    3.11 +
    3.12  #endif /* __ASM_X86_VMX_H__ */