|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Xen crashing when killing a domain with no VCPUs allocated
On 07/21/2014 11:42 AM, Andrew Cooper wrote: On 21/07/14 11:33, George Dunlap wrote:On 07/18/2014 09:26 PM, Julien Grall wrote:On 18/07/14 17:39, Ian Campbell wrote:On Fri, 2014-07-18 at 14:27 +0100, Julien Grall wrote:Hi all, I've been played with the function alloc_vcpu on ARM. And I hit one case where this function can failed. During domain creation, the toolstack will call DOMCTL_max_vcpus which may fail, for instance because alloc_vcpu didn't succeed. In this case, the toolstack will call DOMCTL_domaindestroy. And I got the below stack trace. It can be reproduced on Xen 4.5 (and I also suspect Xen 4.4) by returning in an error in vcpu_initialize. I'm not sure how to correctly fix it.I think a simple check at the head of the function would be ok. Alternatively perhaps in sched_mode_domain, which could either detect this or could detect a domain in pool0 being moved to pool0 and short circuit. Er, I was with you until the last part. What's wrong with changing the assert from "Make sure I have *something* in there" to "Make sure I have *something* in there *if I have any vcpus*"? That seems to be accepting that having d->vcpu allocated but full of null pointers is a valid condition. -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |