aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/emulate.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-04-24 13:46:17 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-04-24 13:46:17 +0100
commit33264198067a646d4fb6e5016e785638a5646d42 (patch)
tree338bf116ef849111078a7fdc239f8c4a2b85cee7 /xen/arch/x86/hvm/emulate.c
parent0bd0cce37e3b4fe8b512299b7d2772c19c3e119f (diff)
downloadxen-33264198067a646d4fb6e5016e785638a5646d42.tar.gz
xen-33264198067a646d4fb6e5016e785638a5646d42.tar.bz2
xen-33264198067a646d4fb6e5016e785638a5646d42.zip
xentrace: Clean up HVM I/O tracing.
Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/emulate.c')
-rw-r--r--xen/arch/x86/hvm/emulate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c
index 2166e88a34..ad5ec35a24 100644
--- a/xen/arch/x86/hvm/emulate.c
+++ b/xen/arch/x86/hvm/emulate.c
@@ -21,7 +21,6 @@
#include <asm/hvm/trace.h>
#include <asm/hvm/support.h>
-#define HVMTRACE_IO_ASSIST_WRITE 0x200
static void hvmtrace_io_assist(int is_mmio, ioreq_t *p)
{
unsigned int size, event;
@@ -30,9 +29,10 @@ static void hvmtrace_io_assist(int is_mmio, ioreq_t *p)
if ( likely(!tb_init_done) )
return;
- event = is_mmio ? TRC_HVM_MMIO_ASSIST : TRC_HVM_IO_ASSIST;
- if ( !p->dir )
- event |= HVMTRACE_IO_ASSIST_WRITE;
+ if ( is_mmio )
+ event = p->dir ? TRC_HVM_IOMEM_READ : TRC_HVM_IOMEM_WRITE;
+ else
+ event = p->dir ? TRC_HVM_IOPORT_READ : TRC_HVM_IOPORT_WRITE;
*(uint64_t *)buffer = p->addr;
size = (p->addr != (u32)p->addr) ? 8 : 4;