[PATCH v4 04/24] xen/domctl: make MGMT_HYPERCALLS transiently def_bool

Penny Zheng posted 24 patches 3 weeks, 1 day ago
There is a newer version of this series
[PATCH v4 04/24] xen/domctl: make MGMT_HYPERCALLS transiently def_bool
Posted by Penny Zheng 3 weeks, 1 day ago
In order to asist in reviewing/developing disabling domctl-op patch serie,
we will transiently make MGMT_HYPERCALLS def_bool. And it will become
optional at the last of domctl-op patch serie, where common/domctl.o's
building as a whole becomes dependent upon that setting.

Signed-off-by: Penny Zheng <Penny.Zheng@amd.com>
---
v2 -> v3:
- new commit
---
 xen/common/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index 6709c3c95c..aef29e0174 100644
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -654,7 +654,7 @@ menu "Supported hypercall interfaces"
 config MGMT_HYPERCALLS
 	bool "Enable privileged hypercalls for system management"
 	depends on !PV_SHIM_EXCLUSIVE
-	default y
+	def_bool y
 	help
 	  This option shall only be disabled on some dom0less systems, or
 	  PV shim on x86, to reduce Xen footprint via managing unnessary
-- 
2.34.1
Re: [PATCH v4 04/24] xen/domctl: make MGMT_HYPERCALLS transiently def_bool
Posted by Jan Beulich 3 weeks, 1 day ago
On 21.11.2025 11:57, Penny Zheng wrote:
> --- a/xen/common/Kconfig
> +++ b/xen/common/Kconfig
> @@ -654,7 +654,7 @@ menu "Supported hypercall interfaces"
>  config MGMT_HYPERCALLS
>  	bool "Enable privileged hypercalls for system management"
>  	depends on !PV_SHIM_EXCLUSIVE
> -	default y
> +	def_bool y
>  	help
>  	  This option shall only be disabled on some dom0less systems, or
>  	  PV shim on x86, to reduce Xen footprint via managing unnessary

This is a no-op change, as "def_bool y" means nothing else than "bool" plus
"default y". As long as the prompt is there, people can turn it off manually.

Jan