xen: Allow EXPERT mode to be selected from the menuconfig directly
authorJulien Grall <jgrall@amazon.com>
Thu, 30 Apr 2020 14:25:48 +0000 (15:25 +0100)
committerJulien Grall <jgrall@amazon.com>
Thu, 14 May 2020 09:20:04 +0000 (10:20 +0100)
commitd155e4aef35cd9c03f6db7030a956f83f33a1e99
treec1bfbad328f4697c361847b6e2c825f0cd3366ee
parentf8644fe441abfd8de8b1f237229cfbe600a58701
xen: Allow EXPERT mode to be selected from the menuconfig directly

EXPERT mode is currently used to gate any options that are in technical
preview or not security supported. At the moment, this is selected by
adding XEN_CONFIG_EXPERT=y on the make command line, or to the
(currently undocumented) top-level .config file.

This makes the option very unintuitive to use: If the user forgets to
add the option when (re)building or when using menuconfig, then
xen/.config will be silently rewritten, leading to behavior which is
very difficult to diagnose.  Adding XEN_CONFIG_EXPERT=y to the
top-level .config is not obvious behavior, particularly as the file is
undocumented.

A lot of the options behind EXPERT would benefit from being more
accessible so users can experiment with them and voice any concerns
before they are fully supported.

To make this option more discoverable and consistent to use, make it
possible to select it from the menuconfig.

This doesn't change the fact a Xen with EXPERT mode selected will not
be security supported.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen/Kconfig
xen/Makefile