aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-04-07 10:57:11 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-04-07 10:57:11 +0100
commit104dbd4fd23e826babc7d99c84fad2224ee8e664 (patch)
tree427cf5861f05dbf7a27dc42715ba42dd060d4b91
parentaf74e3a15a83c45a9105c550a5e8ec0440896c50 (diff)
downloadxen-104dbd4fd23e826babc7d99c84fad2224ee8e664.tar.gz
xen-104dbd4fd23e826babc7d99c84fad2224ee8e664.tar.bz2
xen-104dbd4fd23e826babc7d99c84fad2224ee8e664.zip
xentrace: Trace CR accesses in hvm emulator.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
-rw-r--r--xen/arch/x86/hvm/emulate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c
index 6fbce84e90..2166e88a34 100644
--- a/xen/arch/x86/hvm/emulate.c
+++ b/xen/arch/x86/hvm/emulate.c
@@ -18,6 +18,7 @@
#include <asm/event.h>
#include <asm/hvm/emulate.h>
#include <asm/hvm/hvm.h>
+#include <asm/hvm/trace.h>
#include <asm/hvm/support.h>
#define HVMTRACE_IO_ASSIST_WRITE 0x200
@@ -749,6 +750,7 @@ static int hvmemul_read_cr(
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 @@ static int hvmemul_write_cr(
unsigned long val,
struct x86_emulate_ctxt *ctxt)
{
+ HVMTRACE_LONG_2D(CR_WRITE, reg, TRC_PAR_LONG(val));
switch ( reg )
{
case 0: