On 18/01/2019 13:19, Juergen Gross wrote:
> On 18/01/2019 14:13, Andrew Cooper wrote:
>> On 10/12/2018 11:44, Juergen Gross wrote:
>>> With being able to specify a dom0_mem value depending on host memory
>>> size on x86 make it easy for distros to specify a default dom0 size by
>>> adding a CONFIG_DOM0_MEM item which presets the dom0_mem boot parameter
>>> value.
>>>
>>> It will be used only if no dom0_mem parameter was specified in the
>>> boot parameters.
>>>
>>> Signed-off-by: Juergen Gross <jgr...@suse.com>
>>> Reviewed-by: Jan Beulich <jbeul...@suse.com>
>> Why was this patch accepted?  We've already got a suitable Kconfig
>> option for this, CONFIG_CMDLINE.
> Why do we have a config option for the default scheduler?

That pre-dates CONFIG_CMDLINE, but is of dubious use.

>
> And something like:
>
> dom0_mem=max:8G dom0_mem=10%
>
> is different from
>
> CONFIG_DOM0_MEM="max:8G" plus dom0_mem=10%
>
> on a host with say 100G of memory: In the first case this would be 8G,
> in the second case 10G.

And?  There is no way of preventing that.

A user can really put two dom0_mem= on the real command line, and could
put a dom0_mem in CONFIG_CMDLINE.

The only solution to this problem is for the final dom0_mem= to be a
full specification, and I still see no use for CONFIG_DOM0_MEM

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to