Re: [Xen-devel] Xen 4.7 crash

2016-06-14 Thread Wei Liu
: > >>>>Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): > >>>>>I am not that familiar with the xenstored code, but as far as I can tell > >>>>>the grant mapping will be held by the xenstore until the xs_release() > >>>&g

Re: [Xen-devel] Xen 4.7 crash

2016-06-14 Thread Aaron Cornelius
On 6/14/2016 9:26 AM, Aaron Cornelius wrote: On 6/14/2016 9:15 AM, Wei Liu wrote: On Tue, Jun 14, 2016 at 09:11:47AM -0400, Aaron Cornelius wrote: On 6/9/2016 7:14 AM, Ian Jackson wrote: Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): I am not that familiar with the xens

Re: [Xen-devel] Xen 4.7 crash

2016-06-14 Thread Aaron Cornelius
On 6/14/2016 9:15 AM, Wei Liu wrote: On Tue, Jun 14, 2016 at 09:11:47AM -0400, Aaron Cornelius wrote: On 6/9/2016 7:14 AM, Ian Jackson wrote: Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): I am not that familiar with the xenstored code, but as far as I can tell the gra

Re: [Xen-devel] Xen 4.7 crash

2016-06-14 Thread Wei Liu
On Tue, Jun 14, 2016 at 09:11:47AM -0400, Aaron Cornelius wrote: > On 6/9/2016 7:14 AM, Ian Jackson wrote: > >Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): > >>I am not that familiar with the xenstored code, but as far as I can tell > >>the grant

Re: [Xen-devel] Xen 4.7 crash

2016-06-14 Thread Aaron Cornelius
On 6/9/2016 7:14 AM, Ian Jackson wrote: Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): I am not that familiar with the xenstored code, but as far as I can tell the grant mapping will be held by the xenstore until the xs_release() function is called (which is not called by

Re: [Xen-devel] Xen 4.7 crash

2016-06-09 Thread Ian Jackson
Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): > I am not that familiar with the xenstored code, but as far as I can tell > the grant mapping will be held by the xenstore until the xs_release() > function is called (which is not called by libxl, and I do not >

Re: [Xen-devel] Xen 4.7 crash

2016-06-07 Thread Aaron Cornelius
On 6/7/2016 9:40 AM, Aaron Cornelius wrote: On 6/7/2016 5:53 AM, Ian Jackson wrote: Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): We realized that we had forgotten to remove the domain from the permissions list when the domain is deleted (which would cause the error we

Re: [Xen-devel] Xen 4.7 crash

2016-06-07 Thread Aaron Cornelius
On 6/7/2016 5:53 AM, Ian Jackson wrote: Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): We realized that we had forgotten to remove the domain from the permissions list when the domain is deleted (which would cause the error we saw). The application was updated to remove

Re: [Xen-devel] Xen 4.7 crash

2016-06-07 Thread Ian Jackson
Aaron Cornelius writes ("Re: [Xen-devel] Xen 4.7 crash"): > We realized that we had forgotten to remove the domain from the > permissions list when the domain is deleted (which would cause the error > we saw). The application was updated to remove the domain from the >

Re: [Xen-devel] Xen 4.7 crash

2016-06-06 Thread Aaron Cornelius
On 6/6/2016 10:19 AM, Wei Liu wrote: On Mon, Jun 06, 2016 at 03:05:47PM +0100, Julien Grall wrote: (CC Ian, Stefano and Wei) Hello Aaron, On 06/06/16 14:58, Aaron Cornelius wrote: On 6/2/2016 5:07 AM, Julien Grall wrote: Hello Aaron, On 02/06/2016 02:32, Aaron Cornelius wrote: This is with

Re: [Xen-devel] Xen 4.7 crash

2016-06-06 Thread Wei Liu
On Mon, Jun 06, 2016 at 03:05:47PM +0100, Julien Grall wrote: > (CC Ian, Stefano and Wei) > > Hello Aaron, > > On 06/06/16 14:58, Aaron Cornelius wrote: > >On 6/2/2016 5:07 AM, Julien Grall wrote: > >>Hello Aaron, > >> > >>On 02/06/2016 02:32, Aaron Cornelius wrote: > >>>This is with a custom app

Re: [Xen-devel] Xen 4.7 crash

2016-06-06 Thread Julien Grall
(CC Ian, Stefano and Wei) Hello Aaron, On 06/06/16 14:58, Aaron Cornelius wrote: On 6/2/2016 5:07 AM, Julien Grall wrote: Hello Aaron, On 02/06/2016 02:32, Aaron Cornelius wrote: This is with a custom application, we use the libxl APIs to interact with Xen. Domains are created using the lib

Re: [Xen-devel] Xen 4.7 crash

2016-06-06 Thread Aaron Cornelius
On 6/2/2016 5:07 AM, Julien Grall wrote: Hello Aaron, On 02/06/2016 02:32, Aaron Cornelius wrote: This is with a custom application, we use the libxl APIs to interact with Xen. Domains are created using the libxl_domain_create_new() function, and domains are destroyed using the libxl_domain_de

Re: [Xen-devel] Xen 4.7 crash

2016-06-02 Thread Julien Grall
Hello Aaron, On 02/06/2016 02:32, Aaron Cornelius wrote: This is with a custom application, we use the libxl APIs to interact with Xen. Domains are created using the libxl_domain_create_new() function, and domains are destroyed using the libxl_domain_destroy() function. The test in this case c

Re: [Xen-devel] Xen 4.7 crash

2016-06-02 Thread Jan Beulich
>>> On 02.06.16 at 10:53, wrote: > On 02/06/16 09:47, Jan Beulich wrote: > On 02.06.16 at 00:31, wrote: >>> On 01/06/2016 23:24, Julien Grall wrote: free_xenheap_pages already tolerates NULL (even if an order != 0). Is there any reason to not do the same for free_domheap_pages? >>>

Re: [Xen-devel] Xen 4.7 crash

2016-06-02 Thread Andrew Cooper
On 02/06/16 09:47, Jan Beulich wrote: On 02.06.16 at 00:31, wrote: >> On 01/06/2016 23:24, Julien Grall wrote: >>> free_xenheap_pages already tolerates NULL (even if an order != 0). Is >>> there any reason to not do the same for free_domheap_pages? >> The xenheap allocation functions deal in

Re: [Xen-devel] Xen 4.7 crash

2016-06-02 Thread Jan Beulich
>>> On 02.06.16 at 03:32, wrote: > The test in this case creates a domain, waits a minute, then > deletes/creates the next domain, waits a minute, and so on. So I > wouldn't be surprised to see the VMID occasionally indicate there are 2 > active domains since there could be one being created a

Re: [Xen-devel] Xen 4.7 crash

2016-06-02 Thread Jan Beulich
>>> On 02.06.16 at 00:31, wrote: > On 01/06/2016 23:24, Julien Grall wrote: >> free_xenheap_pages already tolerates NULL (even if an order != 0). Is >> there any reason to not do the same for free_domheap_pages? > > The xenheap allocation functions deal in terms of plain virtual > addresses, whil

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Aaron Cornelius
On 6/1/2016 6:35 PM, Julien Grall wrote: Hello Aaron, On 01/06/2016 20:54, Aaron Cornelius wrote: I'm not 100% sure, from the "VMID pool exhausted" message it would appear that the p2m_init() function failed to allocate a VM ID, which caused domain creation to fail, and the NULL pointer deref

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Julien Grall
Hello Aaron, On 01/06/2016 20:54, Aaron Cornelius wrote: I am doing some work with Xen 4.7 on the cubietruck (ARM32). I've noticed some strange behavior after I create/destroy enough domains and put together a script to do the add/remove for me. For this particular test I am creating a smal

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Andrew Cooper
On 01/06/2016 23:24, Julien Grall wrote: > Hi, > > On 01/06/2016 22:35, Andrew Cooper wrote: >> On 01/06/2016 20:54, Aaron Cornelius wrote: >>> >>> (XEN) Xen call trace: >>> (XEN)[<0021fdd4>] free_domheap_pages+0x1c/0x324 (PC) >>> (XEN)[<0025b0cc>] p2m_teardown+0xa0/0x108 (LR) >>> (XEN)

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Andrew Cooper
On 01/06/2016 23:18, Julien Grall wrote: > 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 I should run out of VM IDs. Sounds like a VMID re

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Julien Grall
Hi, On 01/06/2016 22:35, Andrew Cooper wrote: On 01/06/2016 20:54, Aaron Cornelius wrote: (XEN) Xen call trace: (XEN)[<0021fdd4>] free_domheap_pages+0x1c/0x324 (PC) (XEN)[<0025b0cc>] p2m_teardown+0xa0/0x108 (LR) (XEN)[<0025b0cc>] p2m_teardown+0xa0/0x108 (XEN)[<0024f668>] arch_d

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Julien Grall
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 I should run out of VM IDs. Sounds like a VMID resource leak. Check to see whether it is freed properly in domain_destroy(

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Andrew Cooper
On 01/06/2016 20:54, Aaron Cornelius wrote: > > (XEN) Xen call trace: > (XEN)[<0021fdd4>] free_domheap_pages+0x1c/0x324 (PC) > (XEN)[<0025b0cc>] p2m_teardown+0xa0/0x108 (LR) > (XEN)[<0025b0cc>] p2m_teardown+0xa0/0x108 > (XEN)[<0024f668>] arch_domain_destroy+0x20/0x50 > (XEN)[<0

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Andrew Cooper
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 I >> should run out of VM IDs. >> >> Sounds like a VMID resource leak. Check to see whether it is freed properly >> in domain_destroy(). >> >> ~Andrew > That would be my assump

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Aaron Cornelius
> -Original Message- > From: Andrew Cooper [mailto:am...@hermes.cam.ac.uk] On Behalf Of > Andrew Cooper > Sent: Wednesday, June 1, 2016 4:01 PM > To: Aaron Cornelius ; Xen-devel de...@lists.xenproject.org> > Subject: Re: [Xen-devel] Xen 4.7 crash > > On 01/06/

Re: [Xen-devel] Xen 4.7 crash

2016-06-01 Thread Andrew Cooper
On 01/06/2016 20:54, Aaron Cornelius wrote: > I am doing some work with Xen 4.7 on the cubietruck (ARM32). I've noticed > some strange behavior after I create/destroy enough domains and put together > a script to do the add/remove for me. For this particular test I am creating > a small mini-o

[Xen-devel] Xen 4.7 crash

2016-06-01 Thread Aaron Cornelius
I am doing some work with Xen 4.7 on the cubietruck (ARM32). I've noticed some strange behavior after I create/destroy enough domains and put together a script to do the add/remove for me. For this particular test I am creating a small mini-os (Mirage) domain with 32MB of RAM, deleting it, cre