From: Tim Deegan Subject: Re: crash in nvmx_vcpu_destroy Date: Thu, 21 Feb 2013 11:01:19 +0000 Message-ID: <20130221110119.GE24051@ocelot.phlegethon.org> References: <20130220145823.GA18129@aepfle.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="J/dobhs11T7y2rNN" Return-path: Content-Disposition: inline In-Reply-To: <20130220145823.GA18129@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Eddie Dong , Jun Nakajima , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --J/dobhs11T7y2rNN Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline (Cc'ing the vmx maintainers) At 15:58 +0100 on 20 Feb (1361375903), Olaf Hering wrote: > while doing "while xm migrate --live domU localhost;do sleep 1;done" I > just got the crash shown below. And it can be reproduced. > > The guest has 2 vcpus and 512mb, it runs pvops 3.7.9 Anything interesting printed before the crash? My best guess by code inspection is that nvmx->launched_list never got initialized, because of some failure in vcpu init. Also, if you have the xen-syms for this image, can you extract a file/line-number for the crashing %rip (ffff82c4c01dd197)? I'd expect it to be vvmx.c:150 or thereabouts. And thirdly, can you try the attached patch? Cheers Tim. --J/dobhs11T7y2rNN Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename=x diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c index 4f3f94d..951c310 100644 --- a/xen/arch/x86/hvm/vmx/vvmx.c +++ b/xen/arch/x86/hvm/vmx/vvmx.c @@ -147,10 +147,13 @@ void nvmx_vcpu_destroy(struct vcpu *v) nvcpu->nv_n2vmcx = NULL; } - list_for_each_entry_safe(item, n, &nvmx->launched_list, node) + if ( nvmx->launched_list->next ) { - list_del(&item->node); - xfree(item); + list_for_each_entry_safe(item, n, &nvmx->launched_list, node) + { + list_del(&item->node); + xfree(item); + } } if ( v->arch.hvm_vmx.vmread_bitmap ) --J/dobhs11T7y2rNN Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --J/dobhs11T7y2rNN--