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
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
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.
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
---