From: "Jan Beulich" Subject: Re: [PATCH v6 07/16] x86/hvm: unify dpci portio intercept with standard portio intercept Date: Wed, 08 Jul 2015 17:29:59 +0100 Message-ID: <559D6C27020000780008E664@mail.emea.novell.com> References: <1435940733-20856-1-git-send-email-paul.durrant@citrix.com> <1435940733-20856-8-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZCsET-0006jD-SJ for xen-devel@lists.xenproject.org; Wed, 08 Jul 2015 16:30:01 +0000 In-Reply-To: <1435940733-20856-8-git-send-email-paul.durrant@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: xen-devel@lists.xenproject.org, Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 03.07.15 at 18:25, wrote: > --- a/xen/arch/x86/hvm/intercept.c > +++ b/xen/arch/x86/hvm/intercept.c > @@ -125,10 +125,7 @@ int hvm_process_io_intercept(const struct hvm_io_handler *handler, > { > struct vcpu *curr = current; > struct hvm_vcpu_io *vio = &curr->arch.hvm_vcpu.hvm_io; > - const struct hvm_io_ops *ops = > - (p->type == IOREQ_TYPE_COPY) ? > - &mmio_ops : > - &portio_ops; > + const struct hvm_io_ops *ops = handler->ops; Ah, I see these odd many line things go away here again. In that case you may not bother fiddling with such in the earlier patch(es). But those that survive till the end of the series I'd prefer to see shortened. Jan