The tracepoint for emulated MMIO and I/O port reads was always before
the emulated read or write was done. This means that for reads the
register value in the trace record was always 0.
So for reads, move the tracepoint until the register value is
available.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
p->df = df;
p->data = value;
- hvmtrace_io_assist(is_mmio, p);
+ if ( dir == IOREQ_WRITE )
+ hvmtrace_io_assist(is_mmio, p);
if ( is_mmio )
{
}
finish_access:
+ if ( dir == IOREQ_READ )
+ hvmtrace_io_assist(is_mmio, p);
+
if ( p_data != NULL )
memcpy(p_data, &vio->io_data, size);