From: Paul Durrant Subject: [PATCH v3 03/18] x86/hvm: remove extraneous parameter from hvmtrace_io_assist() Date: Tue, 23 Jun 2015 11:39:42 +0100 Message-ID: <1435055997-30017-4-git-send-email-paul.durrant@citrix.com> References: <1435055997-30017-1-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z7Lcb-00013h-KE for xen-devel@lists.xenproject.org; Tue, 23 Jun 2015 10:40:05 +0000 In-Reply-To: <1435055997-30017-1-git-send-email-paul.durrant@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , Paul Durrant , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org The is_mmio parameter can be inferred from the ioreq type. Signed-off-by: Paul Durrant Cc: Keir Fraser Cc: Jan Beulich Cc: Andrew Cooper --- 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 b412302..935eab3 100644 --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x86/hvm/emulate.c @@ -23,8 +23,9 @@ #include #include -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]; @@ -139,7 +140,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); } if ( is_mmio ) @@ -200,7 +201,7 @@ static int hvmemul_do_io( finish_access: if ( dir == IOREQ_READ ) { - hvmtrace_io_assist(is_mmio, &p); + hvmtrace_io_assist(&p); if ( !data_is_addr ) memcpy(p_data, &vio->io_data, size); -- 1.7.10.4