Re: [PATCH v2 2/2] x86/xen: dont add memory above max allowed allocation

From: William Kucharski
Date: Wed Jan 30 2019 - 06:00:31 EST




> On Jan 30, 2019, at 1:22 AM, Juergen Gross <jgross@xxxxxxxx> wrote:
>
> +#ifdef CONFIG_MEMORY_HOTPLUG
> + /*
> + * Don't allow adding memory not in E820 map while
> + * booting the system. Once the balloon driver is up
> + * it will remove that restriction again.
> + */
> + max_mem_size = xen_e820_table.entries[i].addr +
> + xen_e820_table.entries[i].size;
> +#endif
> }
>
> if (!discard)

Reviewed-by: William Kucharski <william.kucharski@xxxxxxxxxx>