Re: [Xen-devel] [PATCH v2 15/18] mini-os: remap p2m list in case of ballooning

2016-08-10 Thread Juergen Gross
On 10/08/16 22:41, Samuel Thibault wrote: > Juergen Gross, on Fri 05 Aug 2016 19:35:59 +0200, wrote: >> +void arch_remap_p2m(unsigned long max_pfn) >> +{ > ... >> + >> +virt_kernel_area_end += PAGE_SIZE * p2m_pages(nr_max_pages); > > I'd however rather see an assertion against hitting

Re: [Xen-devel] [PATCH v2 15/18] mini-os: remap p2m list in case of ballooning

2016-08-10 Thread Samuel Thibault
Juergen Gross, on Fri 05 Aug 2016 19:35:59 +0200, wrote: > +void arch_remap_p2m(unsigned long max_pfn) > +{ ... > + > +virt_kernel_area_end += PAGE_SIZE * p2m_pages(nr_max_pages); I'd however rather see an assertion against hitting VIRT_DEMAND_AREA here, even if the figures happen to make it

Re: [Xen-devel] [PATCH v2 15/18] mini-os: remap p2m list in case of ballooning

2016-08-10 Thread Samuel Thibault
Juergen Gross, on Fri 05 Aug 2016 19:35:59 +0200, wrote: > In case of enabled ballooning we must be prepared for a growing p2m > list. If the maximum memory size of the domain can't be covered by the > actual p2m list remap it to the kernel virtual mapping area and leave > enough space at the end.

[Xen-devel] [PATCH v2 15/18] mini-os: remap p2m list in case of ballooning

2016-08-05 Thread Juergen Gross
In case of enabled ballooning we must be prepared for a growing p2m list. If the maximum memory size of the domain can't be covered by the actual p2m list remap it to the kernel virtual mapping area and leave enough space at the end. Signed-off-by: Juergen Gross ---