From: "Jan Beulich" Subject: Re: Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d Date: Mon, 06 Jul 2015 11:14:22 +0100 Message-ID: <559A711E020000780008C971@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> <559A6E7B020000780008C942@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02598A9A1@AMSPEX01CL02.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02598A9A1@AMSPEX01CL02.citrite.net> 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: Don Slutz , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 06.07.15 at 12:08, wrote: >> -----Original Message----- >> From: Jan Beulich [mailto:JBeulich@suse.com] >> Sent: 06 July 2015 11:03 >> To: Don Slutz >> Cc: Paul Durrant; xen-devel@lists.xen.org >> Subject: Re: [Xen-devel] Migration bug added by commit >> 2df1aa01bef7366798248ac6d03cfb42048b003d >> >> >>> 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? >> > > I can at least say that the patch definitely resolved a regression seen in > automated testing of migration of Windows Server 2003 VMs on XenServer. Good. Not even having got close to the end of unread mails, I suppose I'll find it somewhere as a formal submission... Jan