All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] xen/x86: support setting dom0_mem depending on host size
@ 2018-12-10 11:44 Juergen Gross
  2018-12-10 11:44 ` [PATCH v3 1/3] xen: modify parse_size_and_unit() to support percentage Juergen Gross
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Juergen Gross @ 2018-12-10 11:44 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Stefano Stabellini, Wei Liu,
	Konrad Rzeszutek Wilk, George Dunlap, Andrew Cooper, Ian Jackson,
	Tim Deegan, Julien Grall, Jan Beulich, Roger Pau Monné

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.

Changes since V2:
- patch 1: let parse_size_and_unit() accept '%' instead of adding a
  new parsing function for that (Jan Beulich)
- patch 2: make dom0mem parsing function more robust against parameter
  format errors (Jan Beulich)

Changes since V1:
- replaced old patch 1 by new one
- rewritten patch 2 according to remarks by Jan Beulich
- changed patch 3 to allow config item on arm, too

Juergen Gross (3):
  xen: modify parse_size_and_unit() to support percentage
  xen/x86: add dom0 memory sizing variants
  xen: add CONFIG item for default dom0 memory size

 docs/misc/xen-command-line.markdown |  19 ++++--
 xen/arch/arm/domain_build.c         |   7 +++
 xen/arch/x86/dom0_build.c           | 118 ++++++++++++++++++++++++++++--------
 xen/common/Kconfig                  |  13 ++++
 xen/common/lib.c                    |   4 ++
 5 files changed, 129 insertions(+), 32 deletions(-)

-- 
2.16.4


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-01-18 14:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-10 11:44 [PATCH v3 0/3] xen/x86: support setting dom0_mem depending on host size Juergen Gross
2018-12-10 11:44 ` [PATCH v3 1/3] xen: modify parse_size_and_unit() to support percentage Juergen Gross
2018-12-10 14:39   ` Jan Beulich
2018-12-10 11:44 ` [PATCH v3 2/3] xen/x86: add dom0 memory sizing variants Juergen Gross
2018-12-10 14:45   ` Jan Beulich
     [not found]   ` <5C0E7BF80200007800204B94@suse.com>
2018-12-10 14:52     ` Juergen Gross
2018-12-10 11:44 ` [PATCH v3 3/3] xen: add CONFIG item for default dom0 memory size Juergen Gross
2018-12-14 15:32   ` Julien Grall
2019-01-18 13:13   ` Andrew Cooper
2019-01-18 13:19     ` Juergen Gross
2019-01-18 13:44       ` Andrew Cooper
2019-01-18 14:08         ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.