ia64/xen-unstable

changeset 19515:1ff30ca70186

xentrace: Trace CR accesses in hvm emulator.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 07 10:57:11 2009 +0100 (2009-04-07)
parents 3881da2d25ec
children ac21e640cc83
files xen/arch/x86/hvm/emulate.c
line diff
     1.1 --- a/xen/arch/x86/hvm/emulate.c	Tue Apr 07 10:43:27 2009 +0100
     1.2 +++ b/xen/arch/x86/hvm/emulate.c	Tue Apr 07 10:57:11 2009 +0100
     1.3 @@ -18,6 +18,7 @@
     1.4  #include <asm/event.h>
     1.5  #include <asm/hvm/emulate.h>
     1.6  #include <asm/hvm/hvm.h>
     1.7 +#include <asm/hvm/trace.h>
     1.8  #include <asm/hvm/support.h>
     1.9  
    1.10  #define HVMTRACE_IO_ASSIST_WRITE 0x200
    1.11 @@ -749,6 +750,7 @@ static int hvmemul_read_cr(
    1.12      case 3:
    1.13      case 4:
    1.14          *val = current->arch.hvm_vcpu.guest_cr[reg];
    1.15 +        HVMTRACE_LONG_2D(CR_READ, reg, TRC_PAR_LONG(*val));
    1.16          return X86EMUL_OKAY;
    1.17      default:
    1.18          break;
    1.19 @@ -762,6 +764,7 @@ static int hvmemul_write_cr(
    1.20      unsigned long val,
    1.21      struct x86_emulate_ctxt *ctxt)
    1.22  {
    1.23 +    HVMTRACE_LONG_2D(CR_WRITE, reg, TRC_PAR_LONG(val));
    1.24      switch ( reg )
    1.25      {
    1.26      case 0: