From: "Jan Beulich" Subject: Re: Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d Date: Mon, 06 Jul 2015 11:03:07 +0100 Message-ID: <559A6E7B020000780008C942@mail.emea.novell.com> References: <558F0F55.7030908@Gmail.com> <9AAE0902D5BC7E449B7C8E4E778ABCD025973A8A@AMSPEX01CL02.citrite.net> <9AAE0902D5BC7E449B7C8E4E778ABCD02597438D@AMSPEX01CL02.citrite.net> <9AAE0902D5BC7E449B7C8E4E778ABCD02597456A@AMSPEX01CL02.citrite.net> <559160C1.1050802@Gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <559160C1.1050802@Gmail.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: Paul Durrant , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 29.06.15 at 17:14, wrote: > On 06/29/15 10:03, Paul Durrant wrote: >> I think this patch should do it for now: >> >> diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c >> index a4d7225..cc6130c 100644 >> --- a/xen/arch/x86/hvm/emulate.c >> +++ b/xen/arch/x86/hvm/emulate.c >> @@ -183,7 +183,7 @@ static int hvmemul_do_io( >> else >> { >> rc = hvm_send_assist_req(s, &p); >> - if ( rc != X86EMUL_RETRY ) >> + if ( rc != X86EMUL_RETRY || curr->domain->is_shutting_down ) > > I do not know enough about "is_shutting_down" to agree. What is clear > is that > this test is not the same as "!vcpu_start_shutdown_deferral(curr)". Together with Paul's reply the main question appears to have remained un-answered: Does the patch suggested by Paul address the problem you observed? Jan