[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 0/3] xen/x86: support setting dom0_mem depending on host size



Hi Juergen,

I don't mean to scope-creep your series, and I think it is fine if you
don't want to do it, but it would be fantastic if you took the
opportunity to make dom0_mem common across architectures.

On ARM, we parse it in xen/arch/arm/domain_build.c:parse_dom0_mem.
I think the ARM and x86 implementations should be the same.

Cheers,

Stefano

On Thu, 22 Nov 2018, Juergen Gross wrote:
> Setting the memory size of dom0 on a server for the non autoballooning
> case requires always specification of a boot parameter today. The value
> to set will depend mostly on the host memory size.
> 
> In order to support that scenario add the possibility to set dom0_mem
> depending on the amount of physical memory by allowing to specify a
> percentage of host memory (e.g. 10%) with an offset (like 1G+10%).
> 
> To make it easy for a distributor to use such a setting as the default
> make the standard setting for dom0_mem configurable via Kconfig.
> 
> Juergen Gross (3):
>   xen/x86: delay parsing of dom0_mem parameter until needed
>   xen/x86: add dom0 memory sizing variants
>   xen/x86: add CONFIG item for default dom0 memory size
> 
>  docs/misc/xen-command-line.markdown | 21 ++++++++----
>  xen/arch/x86/Kconfig                |  9 +++++
>  xen/arch/x86/dom0_build.c           | 67 
> +++++++++++++++++++++++++++----------
>  3 files changed, 73 insertions(+), 24 deletions(-)
> 
> -- 
> 2.16.4


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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.