diff -r 4f99f5f5d66b xen/arch/x86/hvm/emulate.c --- a/xen/arch/x86/hvm/emulate.c Mon Apr 06 17:24:29 2009 +0100 +++ b/xen/arch/x86/hvm/emulate.c Mon Apr 06 18:07:14 2009 +0100 @@ -18,6 +18,7 @@ #include #include #include +#include #include #define HVMTRACE_IO_ASSIST_WRITE 0x200 @@ -749,6 +750,7 @@ case 3: case 4: *val = current->arch.hvm_vcpu.guest_cr[reg]; + HVMTRACE_LONG_2D(CR_READ, reg, TRC_PAR_LONG(*val)); return X86EMUL_OKAY; default: break; @@ -762,6 +764,7 @@ unsigned long val, struct x86_emulate_ctxt *ctxt) { + HVMTRACE_LONG_2D(CR_WRITE, reg, TRC_PAR_LONG(val)); switch ( reg ) { case 0: