[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v4 02/13] kconfig: introduce domain builder config options
From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx> Hyperlaunch domain builder will be the consolidated boot time domain building logic framework. Introduces the config option to enable this domain builder to eventually turn on the ability to load the domain configuration via a flattened device tree. This is common code, but it's tightly integrated with boot_info, so the whole builder is gated on CONFIG_HAS_BOOT_INFO, autoselected on x86 only for the time being. Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Alejandro Vallejo <agarciav@xxxxxxx> --- v4: * Moved from arch/x86 to common/ * Present the domain builder submenu for X86 only. * s/LIB_DEVICE_TREE/LIBFDT/ * Reworded Kconfig to be a bit more user-friendly. * Dropped Jason's R-by, due to the new Kconfig option. --- xen/arch/x86/Kconfig | 1 + xen/common/Kconfig | 5 +++++ xen/common/domain-builder/Kconfig | 18 ++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 xen/common/domain-builder/Kconfig diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index de2fa37f08..67de2decc5 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -15,6 +15,7 @@ config X86 select FUNCTION_ALIGNMENT_16B select GENERIC_BUG_FRAME select HAS_ALTERNATIVE + select HAS_BOOT_INFO select HAS_COMPAT select HAS_CPUFREQ select HAS_DIT diff --git a/xen/common/Kconfig b/xen/common/Kconfig index be28060716..5c9d4eb3ab 100644 --- a/xen/common/Kconfig +++ b/xen/common/Kconfig @@ -67,6 +67,9 @@ config GENERIC_BUG_FRAME config HAS_ALTERNATIVE bool +config HAS_BOOT_INFO + bool + config HAS_COMPAT bool @@ -144,6 +147,8 @@ config STATIC_MEMORY If unsure, say N. +source "common/domain-builder/Kconfig" + menu "Speculative hardening" config INDIRECT_THUNK diff --git a/xen/common/domain-builder/Kconfig b/xen/common/domain-builder/Kconfig new file mode 100644 index 0000000000..5b137e4c2b --- /dev/null +++ b/xen/common/domain-builder/Kconfig @@ -0,0 +1,18 @@ + +menu "Domain Builder Features" +depends on HAS_BOOT_INFO + +config DOMAIN_BUILDER + bool "Domain builder (UNSUPPORTED)" if UNSUPPORTED + select LIBFDT + help + Xen has a built-in mechanisms to automatically construct domains + (like dom0) during the boot phase. The domain builder is an enhanced + form of that mechanism to enable constructing predefined domains + described on a flattened device tree. + + This feature is currently experimental. + + If unsure, say N. + +endmenu -- 2.43.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |