xl.conf: introduce 'domid_policy'
authorPaul Durrant <pdurrant@amazon.com>
Wed, 8 Jan 2020 12:32:14 +0000 (12:32 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 24 Feb 2020 17:17:35 +0000 (17:17 +0000)
commit64fe38f246a7bf305e4e47da26c9dfc31bbff30b
treeee3a0df4ee5ade7587af172887b73f90ec6e1d4a
parent4a3a25678d92d4e32b5ec6b9f255b465104c8d92
xl.conf: introduce 'domid_policy'

This patch adds a new global 'domid_policy' configuration option to decide
how domain id values are allocated for new domains. It may be set to one of
two values:

"xen", the default value, will cause an invalid domid value to be passed
to do_domain_create() preserving the existing behaviour of having Xen
choose the domid value during domain_create().

"random" will cause the special RANDOM_DOMID value to be passed to
do_domain_create() such that libxl__domain_make() will select a random
domid value.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
docs/man/xl.conf.5.pod
tools/examples/xl.conf
tools/xl/xl.c
tools/xl/xl.h
tools/xl/xl_vmcontrol.c