Re: [Xen-devel] Linux 4.4 boot crash on xen 4.5.3 with dom0_mem == max

2016-05-18 Thread Juergen Gross
On 18/05/16 16:39, Ed Swierk wrote: > Nice implementation. I tested it and it fixes the problem on the > affected system. > > Just a minor typo in a comment: "it's duty" should be "its duty". Thanks. Corrected and sent to lkml. Juergen ___ Xen-devel

Re: [Xen-devel] Linux 4.4 boot crash on xen 4.5.3 with dom0_mem == max

2016-05-18 Thread Ed Swierk
Nice implementation. I tested it and it fixes the problem on the affected system. Just a minor typo in a comment: "it's duty" should be "its duty". --Ed On Wed, May 18, 2016 at 4:44 AM, Juergen Gross wrote: > On 17/05/16 22:50, Ed Swierk wrote: > > I added some more instrumentation and discov

Re: [Xen-devel] Linux 4.4 boot crash on xen 4.5.3 with dom0_mem == max

2016-05-18 Thread Juergen Gross
On 17/05/16 22:50, Ed Swierk wrote: > I added some more instrumentation and discovered that the result of > xen_count_remap_pages() (0x85dea) is one less than the actual number > of pages remapped by xen_set_identity_and_remap() (0x85deb). > > The two functions differ in their handling of a xen_e8

Re: [Xen-devel] Linux 4.4 boot crash on xen 4.5.3 with dom0_mem == max

2016-05-18 Thread Juergen Gross
On 17/05/16 22:50, Ed Swierk wrote: > I added some more instrumentation and discovered that the result of > xen_count_remap_pages() (0x85dea) is one less than the actual number > of pages remapped by xen_set_identity_and_remap() (0x85deb). > > The two functions differ in their handling of a xen_e8

Re: [Xen-devel] Linux 4.4 boot crash on xen 4.5.3 with dom0_mem == max

2016-05-17 Thread Ed Swierk
I added some more instrumentation and discovered that the result of xen_count_remap_pages() (0x85dea) is one less than the actual number of pages remapped by xen_set_identity_and_remap() (0x85deb). The two functions differ in their handling of a xen_e820_map entry whose size is not a multiple of t

Re: [Xen-devel] Linux 4.4 boot crash on xen 4.5.3 with dom0_mem == max

2016-05-17 Thread Ed Swierk
Here is the instrumented output with dom0_mem=18432M,max:18432M. ... [0.00] xen_count_remap_pages(max_pfn=0x48) == 0x85dea [0.00] max_pages 0x505dea [0.00] xen_add_extra_mem(48, 85dea) [0.00] memblock_reserve(0x48000, 0x85dea000) [0.00] Released

Re: [Xen-devel] Linux 4.4 boot crash on xen 4.5.3 with dom0_mem == max

2016-05-17 Thread Juergen Gross
On 17/05/16 06:28, Ed Swierk wrote: > I'm trying to figure out a crash when booting a Linux 4.4 dom0 on > a recent stable xen 4.5. I'm capping the dom0 memory by setting > dom0_mem=18432M,max:18432M on the xen command line, and the kernel > config has CONFIG_XEN_BALLOON unset. > > The crash seems

[Xen-devel] Linux 4.4 boot crash on xen 4.5.3 with dom0_mem == max

2016-05-16 Thread Ed Swierk
I'm trying to figure out a crash when booting a Linux 4.4 dom0 on a recent stable xen 4.5. I'm capping the dom0 memory by setting dom0_mem=18432M,max:18432M on the xen command line, and the kernel config has CONFIG_XEN_BALLOON unset. The crash seems dependent on the contents of the e820 table; ide