[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 14/17] x86/hvm: remove extraneous parameter from hvmtrace_io_assist()
The is_mmio parameter can be inferred from the ioreq type. Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx> Cc: Keir Fraser <keir@xxxxxxx> Cc: Jan Beulich <jbeulich@xxxxxxxx> Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/hvm/emulate.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c index 016bc79..1eab7bd 100644 --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x86/hvm/emulate.c @@ -23,8 +23,9 @@ #include <asm/hvm/support.h> #include <asm/hvm/svm/svm.h> -static void hvmtrace_io_assist(int is_mmio, ioreq_t *p) +static void hvmtrace_io_assist(ioreq_t *p) { + bool_t is_mmio = (p->type == IOREQ_TYPE_COPY); unsigned int size, event; unsigned char buffer[12]; @@ -158,7 +159,7 @@ static int hvmemul_do_io( if ( dir == IOREQ_READ ) { - hvmtrace_io_assist(is_mmio, &p); + hvmtrace_io_assist(&p); if ( !data_is_addr ) memcpy(p_data, &p.data, size); @@ -209,7 +210,7 @@ static int hvmemul_do_io( if ( !data_is_addr ) memcpy(&p.data, p_data, size); - hvmtrace_io_assist(is_mmio, &p); + hvmtrace_io_assist(&p); } rc = hvm_io_intercept(&p); -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |