From: Don Slutz Subject: [PATCH 3/5] hvmemul_do_io: If the send to the ioreq server failed do not retry. Date: Thu, 29 Jan 2015 19:52:28 -0500 Message-ID: <1422579150-6970-4-git-send-email-dslutz@verizon.com> References: <1422579150-6970-1-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-1-git-send-email-dslutz@verizon.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.xen.org Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , George Dunlap , Andrew Cooper , Ian Jackson , Don Slutz , Paul Durrant , Jan Beulich , Wei Liu List-Id: xen-devel@lists.xenproject.org I.E. do just what no backing DM does. Signed-off-by: Don Slutz --- xen/arch/x86/hvm/emulate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c index 2ed4344..e9fc070 100644 --- 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