|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Xen 4.7 crash
Hi Andrew, On 01/06/2016 22:24, Andrew Cooper wrote: On 01/06/2016 21:45, Aaron Cornelius wrote:However, since I only have 1 domain active at a time, I'm not sure why Ishould run out of VM IDs. Sounds like a VMID resource leak. Check to see whether it is freed properly in domain_destroy(). ~AndrewThat would be my assumption. But as far as I can tell, arch_domain_destroy() calls pwm_teardown() which calls p2m_free_vmid(), and none of the functionality related to freeing a VM ID appears to have changed in years.The VMID handling looks suspect. It can be called repeatedly during domain destruction, and it will repeatedly clear the same bit out of the vmid_mask. Can you explain how the p2m_free_vmid can be called multiple time? We have the following path: arch_domain_destroy -> p2m_teardown -> p2m_free_vmid.And I can find only 3 call of arch_domain_destroy we should only be done once per domain. If arch_domain_destroy is called multiple time, p2m_free_vmid will not be the only place where Xen will be in trouble. Looking quickly at the log, the domain is dom1101. However, the number maximum number of VMID supported is 256, so the exhaustion might be a race somewhere. I would be interested to get a reproducer. I wrote a script to cycle a domain (create/domain) in loop, and I have not seen any issue after 1200 cycles (and counting). Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |