From: "Jan Beulich" Subject: Re: [PATCH v4 13/17] x86/hvm: remove HVMIO_dispatched I/O state Date: Wed, 24 Jun 2015 16:52:52 +0100 Message-ID: <558AEE740200007800089123@mail.emea.novell.com> References: <1435145089-21999-1-git-send-email-paul.durrant@citrix.com> <1435145089-21999-14-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 1Z7myw-0003yg-09 for xen-devel@lists.xenproject.org; Wed, 24 Jun 2015 15:52:58 +0000 In-Reply-To: <1435145089-21999-14-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: Andrew Cooper , Keir Fraser , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 24.06.15 at 13:24, wrote: > --- a/xen/arch/x86/hvm/emulate.c > +++ b/xen/arch/x86/hvm/emulate.c > @@ -138,20 +138,14 @@ static int hvmemul_do_io( > if ( data_is_addr || dir == IOREQ_WRITE ) > return X86EMUL_UNHANDLEABLE; > goto finish_access; > - case HVMIO_dispatched: > - /* May have to wait for previous cycle of a multi-write to complete. */ > - if ( is_mmio && !data_is_addr && (dir == IOREQ_WRITE) && > - (addr == (vio->mmio_large_write_pa + > - vio->mmio_large_write_bytes)) ) > - return X86EMUL_RETRY; > - /* fallthrough */ The description is plausible, and the rest of the patch looks plausible too, but I can't seem to follow why the above can go away without any replacement (or what the replacement would be). Could you clarify that, please? Jan