From: "Jan Beulich" Subject: Re: [PATCH 3/5] hvmemul_do_io: If the send to the ioreq server failed do not retry. Date: Fri, 30 Jan 2015 10:23:51 +0000 Message-ID: <54CB69C7020000780005B2D0@mail.emea.novell.com> References: <1422579150-6970-1-git-send-email-dslutz@verizon.com> <1422579150-6970-4-git-send-email-dslutz@verizon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1422579150-6970-4-git-send-email-dslutz@verizon.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: Don Slutz Cc: Wei Liu , Ian Campbell , Stefano Stabellini , George Dunlap , Andrew Cooper , Ian Jackson , xen-devel@lists.xen.org, Paul Durrant , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 30.01.15 at 01:52, wrote: > I.E. do just what no backing DM does. _If_ this is correct, the if() modified here should be folded with the one a few lines up. But looking at the description of the commit that introduced this (bac0999325 "x86 hvm: Do not incorrectly retire an instruction emulation...", almost immediately modified by f20f3c8ece "x86 hvm: On failed hvm_send_assist_req(), io emulation...") I doubt this is really what we want, or at the very least your change description should explain what was wrong with the original commit. Jan > --- a/xen/arch/x86/hvm/emulate.c > +++ b/xen/arch/x86/hvm/emulate.c > @@ -228,7 +228,11 @@ static int hvmemul_do_io( > { > rc = X86EMUL_RETRY; > if ( !hvm_send_assist_req(&p) ) > + { > + /* Since the send failed, do not retry */ > + rc = X86EMUL_OKAY; > vio->io_state = HVMIO_none; > + } > else if ( p_data == NULL ) > rc = X86EMUL_OKAY; > } > -- > 1.8.4