Skip to contentSkip to conversation

xen: Allow EXPERT mode to be selected from the menuconfig directly

PATCH RESEND In review Julien Grall 6 participants 38 messages Apr 30, 2020 – May 12, 2020

lore
Share & tools
lore
#0 lore raw

cover xen: Allow EXPERT mode to be selected from the menuconfig directly

From: Julien Grall <[email protected]>

Hi all,

This is a resend as I forgot to CC the maintainers.

This small series is meant to make easier to experiment when using Xen. See patch #2 for more details.

Cheers,

Julien Grall (2):
xen/Kconfig: define EXPERT a bool rather than a string
xen: Allow EXPERT mode to be selected from the menuconfig directly

 xen/Kconfig                     | 11 +++++++++--
 xen/Kconfig.debug               |  2 +-
 xen/Makefile                    |  1 -
 xen/arch/arm/Kconfig            | 10 +++++-----
 xen/arch/x86/Kconfig            |  6 +++---
 xen/common/Kconfig              | 14 +++++++-------
 xen/common/sched/Kconfig        |  2 +-
 xen/drivers/passthrough/Kconfig |  2 +-
 8 files changed, 27 insertions(+), 21 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH RESEND 1/2 xen/Kconfig: define EXPERT a bool rather than a string

From: Julien Grall <[email protected]>

Since commit f80fe2b34f08 "xen: Update Kconfig to Linux v5.4" EXPERT can only have two values (enabled or disabled). So switch from a string to a bool.

Take the opportunity to replace all "EXPERT = y" to "EXPERT".

---
 xen/Kconfig                     |  3 +--
 xen/Kconfig.debug               |  2 +-
 xen/arch/arm/Kconfig            | 10 +++++-----
 xen/arch/x86/Kconfig            |  6 +++---
 xen/common/Kconfig              | 14 +++++++-------
 xen/common/sched/Kconfig        |  2 +-
 xen/drivers/passthrough/Kconfig |  2 +-
 7 files changed, 19 insertions(+), 20 deletions(-)
xen/Kconfig +1 -2
index 073042f46730..120b5f412993 100644
@@ -35,8 +35,7 @@ config DEFCONFIG_LIST
 	default ARCH_DEFCONFIG
 
 config EXPERT
-	string
-	default y if "$(XEN_CONFIG_EXPERT)" = "y"
+	def_bool y if "$(XEN_CONFIG_EXPERT)" = "y"
 
 config LTO
 	bool "Link Time Optimisation"
xen/Kconfig.debug +1 -1
index ee6ee33b69be..fad3050d4f7b 100644
@@ -11,7 +11,7 @@ config DEBUG
 
 	  You probably want to say 'N' here.
 
-if DEBUG || EXPERT = "y"
+if DEBUG || EXPERT
 
 config CRASH_DEBUG
 	bool "Crash Debugging Support"
xen/arch/arm/Kconfig +5 -5
index d51f66072e2e..6a43576dac5e 100644
@@ -33,7 +33,7 @@ source "arch/Kconfig"
 
 config ACPI
 	bool
-	prompt "ACPI (Advanced Configuration and Power Interface) Support" if EXPERT = "y"
+	prompt "ACPI (Advanced Configuration and Power Interface) Support" if EXPERT
 	depends on ARM_64
 	---help---
 
@@ -51,7 +51,7 @@ config GICV3
 
 config HAS_ITS
         bool
-        prompt "GICv3 ITS MSI controller support" if EXPERT = "y"
+        prompt "GICv3 ITS MSI controller support" if EXPERT
         depends on GICV3 && !NEW_VGIC
 
 config HVM
@@ -81,7 +81,7 @@ config SBSA_VUART_CONSOLE
 	  SBSA Generic UART implements a subset of ARM PL011 UART.
 
 config ARM_SSBD
-	bool "Speculative Store Bypass Disable" if EXPERT = "y"
+	bool "Speculative Store Bypass Disable" if EXPERT
 	depends on HAS_ALTERNATIVE
 	default y
 	help
@@ -91,7 +91,7 @@ config ARM_SSBD
 	  If unsure, say Y.
 
 config HARDEN_BRANCH_PREDICTOR
-	bool "Harden the branch predictor against aliasing attacks" if EXPERT = "y"
+	bool "Harden the branch predictor against aliasing attacks" if EXPERT
 	default y
 	help
 	  Speculation attacks against some high-performance processors rely on
@@ -108,7 +108,7 @@ config HARDEN_BRANCH_PREDICTOR
 	  If unsure, say Y.
 
 config TEE
-	bool "Enable TEE mediators support" if EXPERT = "y"
+	bool "Enable TEE mediators support" if EXPERT
 	default n
 	help
 	  This option enables generic TEE mediators support. It allows guests
xen/arch/x86/Kconfig +3 -3
index a69be983d6f3..3237cb2f31f4 100644
@@ -112,7 +112,7 @@ config BIGMEM
 	  If unsure, say N.
 
 config HVM_FEP
-	bool "HVM Forced Emulation Prefix support" if EXPERT = "y"
+	bool "HVM Forced Emulation Prefix support" if EXPERT
 	default DEBUG
 	depends on HVM
 	---help---
@@ -132,7 +132,7 @@ config HVM_FEP
 
 config TBOOT
 	def_bool y
-	prompt "Xen tboot support" if EXPERT = "y"
+	prompt "Xen tboot support" if EXPERT
 	select CRYPTO
 	---help---
 	  Allows support for Trusted Boot using the Intel(R) Trusted Execution
@@ -217,7 +217,7 @@ config HYPERV_GUEST
 endif
 
 config MEM_SHARING
-	bool "Xen memory sharing support" if EXPERT = "y"
+	bool "Xen memory sharing support" if EXPERT
 	depends on HVM
 
 endmenu
xen/common/Kconfig +7 -7
index a6914fcae98b..fe9b41f72128 100644
@@ -12,7 +12,7 @@ config CORE_PARKING
 	bool
 
 config GRANT_TABLE
-	bool "Grant table support" if EXPERT = "y"
+	bool "Grant table support" if EXPERT
 	default y
 	---help---
 	  Grant table provides a generic mechanism to memory sharing
@@ -128,7 +128,7 @@ config KEXEC
 	  If unsure, say Y.
 
 config EFI_SET_VIRTUAL_ADDRESS_MAP
-    bool "EFI: call SetVirtualAddressMap()" if EXPERT = "y"
+    bool "EFI: call SetVirtualAddressMap()" if EXPERT
     ---help---
       Call EFI SetVirtualAddressMap() runtime service to setup memory map for
       further runtime services. According to UEFI spec, it isn't strictly
@@ -139,7 +139,7 @@ config EFI_SET_VIRTUAL_ADDRESS_MAP
 
 config XENOPROF
 	def_bool y
-	prompt "Xen Oprofile Support" if EXPERT = "y"
+	prompt "Xen Oprofile Support" if EXPERT
 	depends on X86
 	---help---
 	  Xen OProfile (Xenoprof) is a system-wide profiler for Xen virtual
@@ -176,7 +176,7 @@ config XSM_FLASK
 
 config XSM_FLASK_AVC_STATS
 	def_bool y
-	prompt "Maintain statistics on the FLASK access vector cache" if EXPERT = "y"
+	prompt "Maintain statistics on the FLASK access vector cache" if EXPERT
 	depends on XSM_FLASK
 	---help---
 	  Maintain counters on the access vector cache that can be viewed using
@@ -249,7 +249,7 @@ config LATE_HWDOM
 	  If unsure, say N.
 
 config ARGO
-	bool "Argo: hypervisor-mediated interdomain communication" if EXPERT = "y"
+	bool "Argo: hypervisor-mediated interdomain communication" if EXPERT
 	---help---
 	  Enables a hypercall for domains to ask the hypervisor to perform
 	  data transfer of messages between domains.
@@ -321,7 +321,7 @@ config SUPPRESS_DUPLICATE_SYMBOL_WARNINGS
 	  build becoming overly verbose.
 
 config CMDLINE
-	string "Built-in hypervisor command string" if EXPERT = "y"
+	string "Built-in hypervisor command string" if EXPERT
 	default ""
 	---help---
 	  Enter arguments here that should be compiled into the hypervisor
@@ -354,7 +354,7 @@ config DOM0_MEM
 	  Leave empty if you are not sure what to specify.
 
 config TRACEBUFFER
-	bool "Enable tracing infrastructure" if EXPERT = "y"
+	bool "Enable tracing infrastructure" if EXPERT
 	default y
 	---help---
 	  Enable tracing infrastructure and pre-defined tracepoints within Xen.
xen/common/sched/Kconfig +1 -1
index 883ac87cab65..61231aacaa1c 100644
@@ -1,5 +1,5 @@
 menu "Schedulers"
-	visible if EXPERT = "y"
+	visible if EXPERT
 
 config SCHED_CREDIT
 	bool "Credit scheduler support"
xen/drivers/passthrough/Kconfig +1 -1
index e7e62ccd63c3..73f4ad89ecbc 100644
@@ -14,7 +14,7 @@ config ARM_SMMU
 	  ARM SMMU architecture.
 
 config IPMMU_VMSA
-	bool "Renesas IPMMU-VMSA found in R-Car Gen3 SoCs" if EXPERT = "y"
+	bool "Renesas IPMMU-VMSA found in R-Car Gen3 SoCs" if EXPERT
 	depends on ARM_64
 	---help---
 	  Support for implementations of the Renesas IPMMU-VMSA found
Signature · 1 line
2.17.1
Acked-by on v1 1/2
#2 lore raw

Re: [PATCH RESEND 1/2] xen/Kconfig: define EXPERT a bool rather than a string

Quoted 9 lines · Julien Grall

From: Julien Grall <[email protected]>

Since commit f80fe2b34f08 "xen: Update Kconfig to Linux v5.4" EXPERT can only have two values (enabled or disabled). So switch from a string
to a bool.

Take the opportunity to replace all "EXPERT = y" to "EXPERT".

Quoted 9 lines
---
 xen/Kconfig                     |  3 +--
 xen/Kconfig.debug               |  2 +-
 xen/arch/arm/Kconfig            | 10 +++++-----
 xen/arch/x86/Kconfig            |  6 +++---
 xen/common/Kconfig              | 14 +++++++-------
 xen/common/sched/Kconfig        |  2 +-

I think I'm being copied to this patch due to the hunk that changes this file above.

Such hunk is:

FWIW, I agree with the basic idea of the patch series too.

Regards

Signature · 6 lines
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)
#3 lore raw

Re: [PATCH RESEND 1/2] xen/Kconfig: define EXPERT a bool rather than a string

In reply to Julien Grall

Hi,

It would be good a have an ack for the small Arm changes. I will wait until tomorrow morning (UK time) and commit it if I see no objection.

Cheers,

Quoted 218 lines · Julien Grall

From: Julien Grall <[email protected]>

Since commit f80fe2b34f08 "xen: Update Kconfig to Linux v5.4" EXPERT can only have two values (enabled or disabled). So switch from a string to a bool.

Take the opportunity to replace all "EXPERT = y" to "EXPERT".

---
  xen/Kconfig                     |  3 +--
  xen/Kconfig.debug               |  2 +-
  xen/arch/arm/Kconfig            | 10 +++++-----
  xen/arch/x86/Kconfig            |  6 +++---
  xen/common/Kconfig              | 14 +++++++-------
  xen/common/sched/Kconfig        |  2 +-
  xen/drivers/passthrough/Kconfig |  2 +-
  7 files changed, 19 insertions(+), 20 deletions(-)
xen/Kconfig +1 -2
index 073042f46730..120b5f412993 100644
@@ -35,8 +35,7 @@ config DEFCONFIG_LIST
  	default ARCH_DEFCONFIG
 
  config EXPERT
-	string
-	default y if "$(XEN_CONFIG_EXPERT)" = "y"
+	def_bool y if "$(XEN_CONFIG_EXPERT)" = "y"
 
  config LTO
  	bool "Link Time Optimisation"
xen/Kconfig.debug +1 -1
index ee6ee33b69be..fad3050d4f7b 100644
@@ -11,7 +11,7 @@ config DEBUG
 
  	  You probably want to say 'N' here.
 
-if DEBUG || EXPERT = "y"
+if DEBUG || EXPERT
 
  config CRASH_DEBUG
  	bool "Crash Debugging Support"
xen/arch/arm/Kconfig +5 -5
index d51f66072e2e..6a43576dac5e 100644
@@ -33,7 +33,7 @@ source "arch/Kconfig"
 
  config ACPI
  	bool
-	prompt "ACPI (Advanced Configuration and Power Interface) Support" if EXPERT = "y"
+	prompt "ACPI (Advanced Configuration and Power Interface) Support" if EXPERT
  	depends on ARM_64
  	---help---
 
@@ -51,7 +51,7 @@ config GICV3
 
  config HAS_ITS
          bool
-        prompt "GICv3 ITS MSI controller support" if EXPERT = "y"
+        prompt "GICv3 ITS MSI controller support" if EXPERT
          depends on GICV3 && !NEW_VGIC
 
  config HVM
@@ -81,7 +81,7 @@ config SBSA_VUART_CONSOLE
  	  SBSA Generic UART implements a subset of ARM PL011 UART.
 
  config ARM_SSBD
-	bool "Speculative Store Bypass Disable" if EXPERT = "y"
+	bool "Speculative Store Bypass Disable" if EXPERT
  	depends on HAS_ALTERNATIVE
  	default y
  	help
@@ -91,7 +91,7 @@ config ARM_SSBD
  	  If unsure, say Y.
 
  config HARDEN_BRANCH_PREDICTOR
-	bool "Harden the branch predictor against aliasing attacks" if EXPERT = "y"
+	bool "Harden the branch predictor against aliasing attacks" if EXPERT
  	default y
  	help
  	  Speculation attacks against some high-performance processors rely on
@@ -108,7 +108,7 @@ config HARDEN_BRANCH_PREDICTOR
  	  If unsure, say Y.
 
  config TEE
-	bool "Enable TEE mediators support" if EXPERT = "y"
+	bool "Enable TEE mediators support" if EXPERT
  	default n
  	help
  	  This option enables generic TEE mediators support. It allows guests
xen/arch/x86/Kconfig +3 -3
index a69be983d6f3..3237cb2f31f4 100644
@@ -112,7 +112,7 @@ config BIGMEM
  	  If unsure, say N.
 
  config HVM_FEP
-	bool "HVM Forced Emulation Prefix support" if EXPERT = "y"
+	bool "HVM Forced Emulation Prefix support" if EXPERT
  	default DEBUG
  	depends on HVM
  	---help---
@@ -132,7 +132,7 @@ config HVM_FEP
 
  config TBOOT
  	def_bool y
-	prompt "Xen tboot support" if EXPERT = "y"
+	prompt "Xen tboot support" if EXPERT
  	select CRYPTO
  	---help---
  	  Allows support for Trusted Boot using the Intel(R) Trusted Execution
@@ -217,7 +217,7 @@ config HYPERV_GUEST
  endif
 
  config MEM_SHARING
-	bool "Xen memory sharing support" if EXPERT = "y"
+	bool "Xen memory sharing support" if EXPERT
  	depends on HVM
 
  endmenu
xen/common/Kconfig +7 -7
index a6914fcae98b..fe9b41f72128 100644
@@ -12,7 +12,7 @@ config CORE_PARKING
  	bool
 
  config GRANT_TABLE
-	bool "Grant table support" if EXPERT = "y"
+	bool "Grant table support" if EXPERT
  	default y
  	---help---
  	  Grant table provides a generic mechanism to memory sharing
@@ -128,7 +128,7 @@ config KEXEC
  	  If unsure, say Y.
 
  config EFI_SET_VIRTUAL_ADDRESS_MAP
-    bool "EFI: call SetVirtualAddressMap()" if EXPERT = "y"
+    bool "EFI: call SetVirtualAddressMap()" if EXPERT
      ---help---
        Call EFI SetVirtualAddressMap() runtime service to setup memory map for
        further runtime services. According to UEFI spec, it isn't strictly
@@ -139,7 +139,7 @@ config EFI_SET_VIRTUAL_ADDRESS_MAP
 
  config XENOPROF
  	def_bool y
-	prompt "Xen Oprofile Support" if EXPERT = "y"
+	prompt "Xen Oprofile Support" if EXPERT
  	depends on X86
  	---help---
  	  Xen OProfile (Xenoprof) is a system-wide profiler for Xen virtual
@@ -176,7 +176,7 @@ config XSM_FLASK
 
  config XSM_FLASK_AVC_STATS
  	def_bool y
-	prompt "Maintain statistics on the FLASK access vector cache" if EXPERT = "y"
+	prompt "Maintain statistics on the FLASK access vector cache" if EXPERT
  	depends on XSM_FLASK
  	---help---
  	  Maintain counters on the access vector cache that can be viewed using
@@ -249,7 +249,7 @@ config LATE_HWDOM
  	  If unsure, say N.
 
  config ARGO
-	bool "Argo: hypervisor-mediated interdomain communication" if EXPERT = "y"
+	bool "Argo: hypervisor-mediated interdomain communication" if EXPERT
  	---help---
  	  Enables a hypercall for domains to ask the hypervisor to perform
  	  data transfer of messages between domains.
@@ -321,7 +321,7 @@ config SUPPRESS_DUPLICATE_SYMBOL_WARNINGS
  	  build becoming overly verbose.
 
  config CMDLINE
-	string "Built-in hypervisor command string" if EXPERT = "y"
+	string "Built-in hypervisor command string" if EXPERT
  	default ""
  	---help---
  	  Enter arguments here that should be compiled into the hypervisor
@@ -354,7 +354,7 @@ config DOM0_MEM
  	  Leave empty if you are not sure what to specify.
 
  config TRACEBUFFER
-	bool "Enable tracing infrastructure" if EXPERT = "y"
+	bool "Enable tracing infrastructure" if EXPERT
  	default y
  	---help---
  	  Enable tracing infrastructure and pre-defined tracepoints within Xen.
xen/common/sched/Kconfig +1 -1
index 883ac87cab65..61231aacaa1c 100644
@@ -1,5 +1,5 @@
  menu "Schedulers"
-	visible if EXPERT = "y"
+	visible if EXPERT
 
  config SCHED_CREDIT
  	bool "Credit scheduler support"
xen/drivers/passthrough/Kconfig +1 -1
index e7e62ccd63c3..73f4ad89ecbc 100644
@@ -14,7 +14,7 @@ config ARM_SMMU
  	  ARM SMMU architecture.
 
  config IPMMU_VMSA
-	bool "Renesas IPMMU-VMSA found in R-Car Gen3 SoCs" if EXPERT = "y"
+	bool "Renesas IPMMU-VMSA found in R-Car Gen3 SoCs" if EXPERT
  	depends on ARM_64
  	---help---
  	  Support for implementations of the Renesas IPMMU-VMSA found
Signature · 1 line
Julien Grall
#4 lore raw

Re: [PATCH RESEND 1/2] xen/Kconfig: define EXPERT a bool rather than a string

Quoted 3 lines · Julien Grall

Hi,

It would be good a have an ack for the small Arm changes.

Quoted 213 lines

I will wait until
tomorrow morning (UK time) and commit it if I see no objection.

Cheers,

Quoted 203 lines · Julien Grall

From: Julien Grall <[email protected]>

Since commit f80fe2b34f08 "xen: Update Kconfig to Linux v5.4" EXPERT can only have two values (enabled or disabled). So switch from a string to a bool.

Take the opportunity to replace all "EXPERT = y" to "EXPERT".

---
  xen/Kconfig                     |  3 +--
  xen/Kconfig.debug               |  2 +-
  xen/arch/arm/Kconfig            | 10 +++++-----
  xen/arch/x86/Kconfig            |  6 +++---
  xen/common/Kconfig              | 14 +++++++-------
  xen/common/sched/Kconfig        |  2 +-
  xen/drivers/passthrough/Kconfig |  2 +-
  7 files changed, 19 insertions(+), 20 deletions(-)
xen/Kconfig +1 -2
index 073042f46730..120b5f412993 100644
@@ -35,8 +35,7 @@ config DEFCONFIG_LIST
  	default ARCH_DEFCONFIG
    config EXPERT
-	string
-	default y if "$(XEN_CONFIG_EXPERT)" = "y"
+	def_bool y if "$(XEN_CONFIG_EXPERT)" = "y"
    config LTO
  	bool "Link Time Optimisation"
xen/Kconfig.debug +1 -0
index ee6ee33b69be..fad3050d4f7b 100644
@@ -11,7 +11,7 @@ config DEBUG
    	  You probably want to say 'N' here.
  -if DEBUG || EXPERT = "y"
+if DEBUG || EXPERT
    config CRASH_DEBUG
  	bool "Crash Debugging Support"
xen/arch/arm/Kconfig +0 -1
index d51f66072e2e..6a43576dac5e 100644
@@ -33,7 +33,7 @@ source "arch/Kconfig"
    config ACPI
  	bool
-	prompt "ACPI (Advanced Configuration and Power Interface) Support" if

EXPERT = "y"

xen/arch/arm/Kconfig +1 -0
+	prompt "ACPI (Advanced Configuration and Power Interface) Support" if

EXPERT
depends on ARM_64
---help---
@@ -51,7 +51,7 @@ config GICV3
config HAS_ITS
bool

xen/arch/arm/Kconfig +2 -3
-        prompt "GICv3 ITS MSI controller support" if EXPERT = "y"
+        prompt "GICv3 ITS MSI controller support" if EXPERT
          depends on GICV3 && !NEW_VGIC
    config HVM
@@ -81,7 +81,7 @@ config SBSA_VUART_CONSOLE
  	  SBSA Generic UART implements a subset of ARM PL011 UART.
    config ARM_SSBD
-	bool "Speculative Store Bypass Disable" if EXPERT = "y"
+	bool "Speculative Store Bypass Disable" if EXPERT
  	depends on HAS_ALTERNATIVE
  	default y
  	help
@@ -91,7 +91,7 @@ config ARM_SSBD
  	  If unsure, say Y.
    config HARDEN_BRANCH_PREDICTOR
-	bool "Harden the branch predictor against aliasing attacks" if EXPERT

= "y"

xen/arch/arm/Kconfig +2 -1
+	bool "Harden the branch predictor against aliasing attacks" if EXPERT
  	default y
  	help
  	  Speculation attacks against some high-performance processors rely on
@@ -108,7 +108,7 @@ config HARDEN_BRANCH_PREDICTOR
  	  If unsure, say Y.
    config TEE
-	bool "Enable TEE mediators support" if EXPERT = "y"
+	bool "Enable TEE mediators support" if EXPERT
  	default n
  	help
  	  This option enables generic TEE mediators support. It allows guests
xen/arch/x86/Kconfig +3 -3
index a69be983d6f3..3237cb2f31f4 100644
@@ -112,7 +112,7 @@ config BIGMEM
  	  If unsure, say N.
    config HVM_FEP
-	bool "HVM Forced Emulation Prefix support" if EXPERT = "y"
+	bool "HVM Forced Emulation Prefix support" if EXPERT
  	default DEBUG
  	depends on HVM
  	---help---
@@ -132,7 +132,7 @@ config HVM_FEP
    config TBOOT
  	def_bool y
-	prompt "Xen tboot support" if EXPERT = "y"
+	prompt "Xen tboot support" if EXPERT
  	select CRYPTO
  	---help---
  	  Allows support for Trusted Boot using the Intel(R) Trusted Execution
@@ -217,7 +217,7 @@ config HYPERV_GUEST
  endif
    config MEM_SHARING
-	bool "Xen memory sharing support" if EXPERT = "y"
+	bool "Xen memory sharing support" if EXPERT
  	depends on HVM
    endmenu
xen/common/Kconfig +2 -2
index a6914fcae98b..fe9b41f72128 100644
@@ -12,7 +12,7 @@ config CORE_PARKING
  	bool
    config GRANT_TABLE
-	bool "Grant table support" if EXPERT = "y"
+	bool "Grant table support" if EXPERT
  	default y
  	---help---
  	  Grant table provides a generic mechanism to memory sharing
@@ -128,7 +128,7 @@ config KEXEC
  	  If unsure, say Y.
    config EFI_SET_VIRTUAL_ADDRESS_MAP
-    bool "EFI: call SetVirtualAddressMap()" if EXPERT = "y"
+    bool "EFI: call SetVirtualAddressMap()" if EXPERT
      ---help---
        Call EFI SetVirtualAddressMap() runtime service to setup memory map

for
further runtime services. According to UEFI spec, it isn't strictly

xen/common/Kconfig +1 -2
@@ -139,7 +139,7 @@ config EFI_SET_VIRTUAL_ADDRESS_MAP
    config XENOPROF
  	def_bool y
-	prompt "Xen Oprofile Support" if EXPERT = "y"
+	prompt "Xen Oprofile Support" if EXPERT
  	depends on X86
  	---help---
  	  Xen OProfile (Xenoprof) is a system-wide profiler for Xen virtual
@@ -176,7 +176,7 @@ config XSM_FLASK
    config XSM_FLASK_AVC_STATS
  	def_bool y
-	prompt "Maintain statistics on the FLASK access vector cache" if

EXPERT = "y"

xen/common/Kconfig +1 -0
+	prompt "Maintain statistics on the FLASK access vector cache" if

EXPERT
depends on XSM_FLASK
---help---
Maintain counters on the access vector cache that can be viewed
using

xen/common/Kconfig +0 -1
@@ -249,7 +249,7 @@ config LATE_HWDOM
  	  If unsure, say N.
    config ARGO
-	bool "Argo: hypervisor-mediated interdomain communication" if EXPERT =

"y"

xen/common/Kconfig +3 -2
+	bool "Argo: hypervisor-mediated interdomain communication" if EXPERT
  	---help---
  	  Enables a hypercall for domains to ask the hypervisor to perform
  	  data transfer of messages between domains.
@@ -321,7 +321,7 @@ config SUPPRESS_DUPLICATE_SYMBOL_WARNINGS
  	  build becoming overly verbose.
    config CMDLINE
-	string "Built-in hypervisor command string" if EXPERT = "y"
+	string "Built-in hypervisor command string" if EXPERT
  	default ""
  	---help---
  	  Enter arguments here that should be compiled into the hypervisor
@@ -354,7 +354,7 @@ config DOM0_MEM
  	  Leave empty if you are not sure what to specify.
    config TRACEBUFFER
-	bool "Enable tracing infrastructure" if EXPERT = "y"
+	bool "Enable tracing infrastructure" if EXPERT
  	default y
  	---help---
  	  Enable tracing infrastructure and pre-defined tracepoints within

Xen.

xen/common/sched/Kconfig +1 -1
index 883ac87cab65..61231aacaa1c 100644
@@ -1,5 +1,5 @@
  menu "Schedulers"
-	visible if EXPERT = "y"
+	visible if EXPERT
    config SCHED_CREDIT
  	bool "Credit scheduler support"
xen/drivers/passthrough/Kconfig +1 -1
index e7e62ccd63c3..73f4ad89ecbc 100644
@@ -14,7 +14,7 @@ config ARM_SMMU
  	  ARM SMMU architecture.
    config IPMMU_VMSA
-	bool "Renesas IPMMU-VMSA found in R-Car Gen3 SoCs" if EXPERT = "y"
+	bool "Renesas IPMMU-VMSA found in R-Car Gen3 SoCs" if EXPERT
  	depends on ARM_64
  	---help---
  	  Support for implementations of the Renesas IPMMU-VMSA found
 
Signature · 1 line
Julien Grall
#5 lore raw

PATCH RESEND 2/2 xen: Allow EXPERT mode to be selected from the menuconfig directly

In reply to Julien Grall

From: Julien Grall <[email protected]>

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

A lot of the options behind EXPERT would benefit to get more tested in order to be mark as fully supported in the future.

In order to make easier to experiment, the option EXPERT can now be selected from the menuconfig rather than make command line. This does not change the fact a kernel with EXPERT mode selected will not be security supported.

---

This may require some changes in OSSTest as we select the EXPERT mode when building (This is necessary for booting Xen on Thunder-X box).

---
 xen/Kconfig  | 10 +++++++++-
 xen/Makefile |  1 -
 2 files changed, 9 insertions(+), 2 deletions(-)
xen/Kconfig +9 -1
index 120b5f412993..34c318bfa2c7 100644
@@ -35,7 +35,15 @@ config DEFCONFIG_LIST
 	default ARCH_DEFCONFIG
 
 config EXPERT
-	def_bool y if "$(XEN_CONFIG_EXPERT)" = "y"
+	bool "Configure standard Xen features (expert users)"
+	help
+	  This option allows certain base Xen options and settings
+	  to be disabled or tweaked. This is for specialized environments
+	  which can tolerate a "non-standard" Xen.
+	  Only use this if you really know what you are doing.
+	  Xen binaries built with this option enabled are not security
+	  supported.
+	default n
 
 config LTO
 	bool "Link Time Optimisation"
xen/Makefile +0 -1
index 2b1dacb49754..286f374b549f 100644
@@ -11,7 +11,6 @@ export XEN_DOMAIN	?= $(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) |
 export XEN_BUILD_DATE	?= $(shell LC_ALL=C date)
 export XEN_BUILD_TIME	?= $(shell LC_ALL=C date +%T)
 export XEN_BUILD_HOST	?= $(shell hostname)
-export XEN_CONFIG_EXPERT ?= n
 
 # Best effort attempt to find a python interpreter, defaulting to Python 3 if
 # available.  Fall back to just `python` if `which` is nowhere to be found.
Signature · 1 line
2.17.1
#6 lore raw
Quoted 8 lines · Julien Grall

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Is / will this still be true after Anthony's rework of the build system? Right now we already have

clean-targets := %clean

no-dot-config-targets := $(clean-targets) \
                         ...
Quoted 2 lines

A lot of the options behind EXPERT would benefit to get more tested in order to be mark as fully supported in the future.

Anyone intending to get an EXPERT-only option fully supported will need to do focused testing; I don't think we can expect to move items out of this category just because more people happen to test something every now and then.

Quoted 4 lines

In order to make easier to experiment, the option EXPERT can now be selected from the menuconfig rather than make command line. This does not change the fact a kernel with EXPERT mode selected will not be security supported.

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Quoted 6 lines
xen/Kconfig +0 -0
@@ -35,7 +35,15 @@ config DEFCONFIG_LIST
 	default ARCH_DEFCONFIG
 
 config EXPERT

xen/Kconfig config DEFCONFIG_LIST · line 46

Quoted 10 lines
xen/Kconfig +9 -1
-	def_bool y if "$(XEN_CONFIG_EXPERT)" = "y"
+	bool "Configure standard Xen features (expert users)"
+	help
+	  This option allows certain base Xen options and settings
+	  to be disabled or tweaked. This is for specialized environments
+	  which can tolerate a "non-standard" Xen.
+	  Only use this if you really know what you are doing.
+	  Xen binaries built with this option enabled are not security
+	  supported.
+	default n

I don't think the last line is needed.

Jan

#7 lore raw

Hi Jan,

Quoted 10 lines · Jan Beulich
Quoted 8 lines · Julien Grall

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Quoted 6 lines

Is / will this still be true after Anthony's rework of the build system? Right now we already have

clean-targets := %clean

no-dot-config-targets := $(clean-targets) \
                          ...

I haven't tried Anthony's rework yet. But I guess the problem would be the same if you forget to add XEN_CONFIG_EXPERT=y on make.

Quoted 8 lines
Quoted 3 lines

A lot of the options behind EXPERT would benefit to get more tested in order to be mark as fully supported in the future.

Anyone intending to get an EXPERT-only option fully supported will need to do focused testing; I don't think we can expect to move items out of this category just because more people happen to test something every now and then.

I didn't imply this was the only condition to get a feature security suported. I merely pointed out that more testing would help to harden the code. If you make difficult to access an option then it will be less tested and take longer to get it security supported.

Quoted 11 lines
Quoted 5 lines

In order to make easier to experiment, the option EXPERT can now be selected from the menuconfig rather than make command line. This does not change the fact a kernel with EXPERT mode selected will not be security supported.

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Some of the options behind EXPERT mode don't make sense. For instance, how adding a built-in command line requires to be expert? I understand we don't want to support it, but I don't see any reason to make the user's life more difficult here.

Cheers,

Signature · 1 line
Julien Grall
#8 lore raw
Quoted 14 lines · Julien Grall
Quoted 13 lines · Jan Beulich
Quoted 8 lines · Julien Grall

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Is / will this still be true after Anthony's rework of the build system? Right now we already have

Quoted 6 lines
Quoted 3 lines

clean-targets := %clean
no-dot-config-targets := $(clean-targets) \
                          ...

I haven't tried Anthony's rework yet. But I guess the problem would be the same if you forget to add XEN_CONFIG_EXPERT=y on make.

Why? xen/.config would get re-written only if kconfig got run in the first place. It is my understanding that no-dot-config-targets exist to avoid including .config, and as a result make won't find a need anymore to cause it to re-made if out of date.

Jan

#9 lore raw

Hi Jan,

Quoted 19 lines · Jan Beulich
Quoted 18 lines · Julien Grall
Quoted 16 lines · Jan Beulich
Quoted 8 lines · Julien Grall

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Is / will this still be true after Anthony's rework of the build system? Right now we already have

clean-targets := %clean
no-dot-config-targets := $(clean-targets) \
                          ...

Quoted 7 lines
Quoted 2 lines

I haven't tried Anthony's rework yet. But I guess the problem would be the same if you forget to add XEN_CONFIG_EXPERT=y on make.

Why? xen/.config would get re-written only if kconfig got run in the first place. It is my understanding that no-dot-config-targets exist to avoid including .config, and as a result make won't find a need anymore to cause it to re-made if out of date.

kconfig may be executed because you change one of the */Kconfig file. So if you happen to forget XEN_CONFIG_EXPERT=y on your build command line, then you will have your .config rewritten without expert options.

Cheers,

Signature · 1 line
Julien Grall
#10 lore raw
Quoted 25 lines · Julien Grall

Hi Jan,

Quoted 22 lines · Jan Beulich
Quoted 20 lines · Julien Grall
Quoted 10 lines · Jan Beulich
Quoted 8 lines · Julien Grall

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Quoted 6 lines

Is / will this still be true after Anthony's rework of the build system? Right now we already have

clean-targets := %clean
no-dot-config-targets := $(clean-targets) \
                           ...

I haven't tried Anthony's rework yet. But I guess the problem would be the same if you forget to add XEN_CONFIG_EXPERT=y on make.

Quoted 8 lines
Quoted 4 lines

Why? xen/.config would get re-written only if kconfig got run in the first place. It is my understanding that no-dot-config-targets exist to avoid including .config, and as a result make won't find a need anymore to cause it to re-made if out of date.

kconfig may be executed because you change one of the */Kconfig file. So if you happen to forget XEN_CONFIG_EXPERT=y on your build command line, then you will have your .config rewritten without expert options.

That's still a build system issue then (if this is really what happens):
Dependencies of xen/.config shouldn't be evaluated as long as it doesn't get used.

Jan

#11 lore raw

Hi Jan,

Quoted 31 lines · Jan Beulich
Quoted 30 lines · Julien Grall

Hi Jan,

Quoted 26 lines · Jan Beulich
Quoted 14 lines · Julien Grall
Quoted 13 lines · Jan Beulich
Quoted 8 lines · Julien Grall

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Is / will this still be true after Anthony's rework of the build system? Right now we already have

Quoted 6 lines
Quoted 3 lines

clean-targets := %clean
no-dot-config-targets := $(clean-targets) \
                           ...

I haven't tried Anthony's rework yet. But I guess the problem would be the same if you forget to add XEN_CONFIG_EXPERT=y on make.

Why? xen/.config would get re-written only if kconfig got run in the first place. It is my understanding that no-dot-config-targets exist to avoid including .config, and as a result make won't find a need anymore to cause it to re-made if out of date.

Quoted 7 lines
Quoted 3 lines

kconfig may be executed because you change one of the */Kconfig file. So if you happen to forget XEN_CONFIG_EXPERT=y on your build command line, then you will have your .config rewritten without expert options.

That's still a build system issue then (if this is really what happens):
Dependencies of xen/.config shouldn't be evaluated as long as it doesn't get used.

I am not sure to understand what you mean by "doesn't get used here". When you build Xen, xen/.config is a dependency for the auto-generated header. So 'make' will actually check whether there are any modification in */Kconfig.

A user would also expect that any modification in a */Kconfig will be picked by 'make' when building the hypervisor. This is how it works in Linux and I see no reason to diverge in Xen for this.

Cheers,

Signature · 1 line
Julien Grall
#12 lore raw
Quoted 38 lines · Julien Grall

Hi Jan,

Quoted 35 lines · Jan Beulich
Quoted 33 lines · Julien Grall

Hi Jan,

Quoted 19 lines · Jan Beulich
Quoted 18 lines · Julien Grall
Quoted 16 lines · Jan Beulich
Quoted 8 lines · Julien Grall

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Is / will this still be true after Anthony's rework of the build system? Right now we already have

clean-targets := %clean
no-dot-config-targets := $(clean-targets) \
                            ...

Quoted 7 lines
Quoted 2 lines

I haven't tried Anthony's rework yet. But I guess the problem would be the same if you forget to add XEN_CONFIG_EXPERT=y on make.

Why? xen/.config would get re-written only if kconfig got run in the first place. It is my understanding that no-dot-config-targets exist to avoid including .config, and as a result make won't find a need anymore to cause it to re-made if out of date.

kconfig may be executed because you change one of the */Kconfig file. So if you happen to forget XEN_CONFIG_EXPERT=y on your build command line, then you will have your .config rewritten without expert options.

Quoted 5 lines
Quoted 3 lines

That's still a build system issue then (if this is really what happens):
Dependencies of xen/.config shouldn't be evaluated as long as it doesn't get used.

I am not sure to understand what you mean by "doesn't get used here". When you build Xen, xen/.config is a dependency for the auto-generated header. So 'make' will actually check whether there are any modification in */Kconfig.

But you were talking about "make clean", weren't you?

Jan

#13 lore raw
Quoted 39 lines · Jan Beulich
Quoted 38 lines · Julien Grall

Hi Jan,

Quoted 35 lines · Jan Beulich
Quoted 33 lines · Julien Grall

Hi Jan,

Quoted 19 lines · Jan Beulich
Quoted 18 lines · Julien Grall
Quoted 16 lines · Jan Beulich
Quoted 8 lines · Julien Grall

EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option of one of the make command (even a clean), then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Is / will this still be true after Anthony's rework of the build system? Right now we already have

clean-targets := %clean
no-dot-config-targets := $(clean-targets) \
                            ...

Quoted 7 lines
Quoted 2 lines

I haven't tried Anthony's rework yet. But I guess the problem would be the same if you forget to add XEN_CONFIG_EXPERT=y on make.

Why? xen/.config would get re-written only if kconfig got run in the first place. It is my understanding that no-dot-config-targets exist to avoid including .config, and as a result make won't find a need anymore to cause it to re-made if out of date.

kconfig may be executed because you change one of the */Kconfig file. So if you happen to forget XEN_CONFIG_EXPERT=y on your build command line, then you will have your .config rewritten without expert options.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

That's still a build system issue then (if this is really what happens):
Dependencies of xen/.config shouldn't be evaluated as long as it doesn't get used.

I am not sure to understand what you mean by "doesn't get used here". When you build Xen, xen/.config is a dependency for the auto-generated header. So 'make' will actually check whether there are any modification in */Kconfig.

But you were talking about "make clean", weren't you?

In the commit message yes... You asked whether this was true and I answered I didn't get a chance to test Anthony's rework. However, I also pointed out that it wouldn't solve a simple 'make' issue.

I considered that your 'why?' were related to the simple 'make'.

Cheers,

Signature · 1 line
Julien Grall
#14 lore raw
In reply to Jan Beulich
Quoted 9 lines · Jan Beulich
Quoted 5 lines

In order to make easier to experiment, the option EXPERT can now be selected from the menuconfig rather than make command line. This does not change the fact a kernel with EXPERT mode selected will not be security supported.

Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

-George

#15 lore raw

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Precisely.

Ian.

#16 lore raw

Hi Ian,

Quoted 11 lines · Ian Jackson

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 8 lines
Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Precisely.

Can I consider this as an Acked-by? :)

Cheers,

Signature · 1 line
Julien Grall
#17 lore raw

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.

I reviewed the thread and there were two concernes raised:

* The question of principle. I disagree with this concern because I approve of principle of the patch.

* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Alternatively, if you can get agreement from others on the wording of the commit message, you may put my ack on the patch.

HTH,
Ian.

#18 lore raw

Hi Ian,

Thank you for the clarification.

Quoted 29 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.

I reviewed the thread and there were two concernes raised:

Quoted 7 lines

* The question of principle. I disagree with this concern because I approve of principle of the patch.

* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 5 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

A lot of the options behind EXPERT would benefit to be more accessible so user can experiment with it and voice any concern before they are fully be supported.

So rather than making really difficult to experiment or tweak your Xen (for instance by adding a built-in command line), this option can now be selected from the menuconfig.

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

Cheers,

Signature · 1 line
Julien Grall
#19 lore raw
Quoted 53 lines · Julien Grall

Hi Ian,

Thank you for the clarification.

Quoted 29 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.

I reviewed the thread and there were two concernes raised:

Quoted 7 lines

* The question of principle. I disagree with this concern because I approve of principle of the patch.

* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 5 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

Quoted 8 lines

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

To me this looks very similar to e.g. not suitably overriding the default toolchain binaries, if one has a need to build with newer ones than what a distro provides. According to some of my routinely built configs both can be done by putting suitable entries into ./.config (not xen/.config), removing the need to remember adding either to the make command line.

Jan

#20 lore raw

Hi,

Quoted 63 lines · Jan Beulich
Quoted 53 lines · Julien Grall

Hi Ian,

Thank you for the clarification.

Quoted 29 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.

I reviewed the thread and there were two concernes raised:

Quoted 7 lines

* The question of principle. I disagree with this concern because I approve of principle of the patch.

* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 5 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

Quoted 8 lines

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Quoted 6 lines

To me this looks very similar to e.g. not suitably overriding the default toolchain binaries, if one has a need to build with newer ones than what a distro provides. According to some of my routinely built configs both can be done by putting suitable entries into ./.config (not xen/.config), removing the need to remember adding either to the make command line.

I have never heard of ./.config before. So what are you referring to?

But yes, there are ways to make it permanent. But that involves hacking Xen source. This is not a very great approach because if you need to bisect, then you have to remember to apply the change everytime. It also doesn't work if you have to build for multiple different target from the same source.

The compiler is another option that would be worth to move in the Kconfig. I have stopped counting the number of time I mixed up between Arm64, Arm32 and x86 compilers when building Xen...

Cheers,

Signature · 1 line
Julien Grall
#21 lore raw
Quoted 66 lines · Julien Grall

Hi,

Quoted 63 lines · Jan Beulich
Quoted 61 lines · Julien Grall

Hi Ian,

Thank you for the clarification.

Quoted 29 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.

I reviewed the thread and there were two concernes raised:

Quoted 7 lines

* The question of principle. I disagree with this concern because I approve of principle of the patch.

* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 5 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Quoted 8 lines
Quoted 6 lines

To me this looks very similar to e.g. not suitably overriding the default toolchain binaries, if one has a need to build with newer ones than what a distro provides. According to some of my routinely built configs both can be done by putting suitable entries into ./.config (not xen/.config), removing the need to remember adding either to the make command line.

I have never heard of ./.config before. So what are you referring to?

I'm referring to this line in ./Config.mk:

-include $(XEN_ROOT)/.config

Quoted 2 lines

But yes, there are ways to make it permanent. But that involves hacking Xen source.

Why would there be any need for a source modification? Just like xen/.config, ./.config is not considered part of the source.

Quoted 4 lines

This is not a very great approach because if you need to bisect, then you have to remember to apply the change everytime. It also doesn't work if you have to build for multiple different target from the same source.

Why wouldn't it? I'm doing exactly this, far beyond just x86 and Arm builds, and it all works fine. (It would work even better with out-of-tree builds, but it looks like Anthony is getting us there.)

Jan

#22 lore raw

Hi,

Quoted 74 lines · Jan Beulich
Quoted 73 lines · Julien Grall

Hi,

Quoted 69 lines · Jan Beulich
Quoted 53 lines · Julien Grall

Hi Ian,

Thank you for the clarification.

Quoted 29 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.

I reviewed the thread and there were two concernes raised:

Quoted 7 lines

* The question of principle. I disagree with this concern because I approve of principle of the patch.

* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 5 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

Quoted 8 lines

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

To me this looks very similar to e.g. not suitably overriding the default toolchain binaries, if one has a need to build with newer ones than what a distro provides. According to some of my routinely built configs both can be done by putting suitable entries into ./.config (not xen/.config), removing the need to remember adding either to the make command line.

Quoted 5 lines
Quoted 1 line

I have never heard of ./.config before. So what are you referring to?

I'm referring to this line in ./Config.mk:

-include $(XEN_ROOT)/.config

Great another undocumented way to do things...

Quoted 12 lines
Quoted 3 lines

But yes, there are ways to make it permanent. But that involves hacking Xen source.

Why would there be any need for a source modification? Just like xen/.config, ./.config is not considered part of the source.

Quoted 4 lines

This is not a very great approach because if you need to bisect, then you have to remember to apply the change everytime. It also doesn't work if you have to build for multiple different target from the same source.

Quoted 4 lines

Why wouldn't it? I'm doing exactly this, far beyond just x86 and Arm builds, and it all works fine. (It would work even better with out-of-tree builds, but it looks like Anthony is getting us there.)

... let me ask it differently. Are you concerned of my wording or by the fact we make easier to a user to EXPERT mode?

Cheers,

Signature · 1 line
Julien Grall
#23 lore raw
Quoted 97 lines · Julien Grall

Hi,

Quoted 74 lines · Jan Beulich
Quoted 73 lines · Julien Grall

Hi,

Quoted 69 lines · Jan Beulich
Quoted 53 lines · Julien Grall

Hi Ian,

Thank you for the clarification.

Quoted 29 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.

I reviewed the thread and there were two concernes raised:

Quoted 7 lines

* The question of principle. I disagree with this concern because I approve of principle of the patch.

* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 5 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

Quoted 8 lines

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

To me this looks very similar to e.g. not suitably overriding the default toolchain binaries, if one has a need to build with newer ones than what a distro provides. According to some of my routinely built configs both can be done by putting suitable entries into ./.config (not xen/.config), removing the need to remember adding either to the make command line.

Quoted 5 lines
Quoted 1 line

I have never heard of ./.config before. So what are you referring to?

I'm referring to this line in ./Config.mk:

-include $(XEN_ROOT)/.config

Great another undocumented way to do things...

Quoted 12 lines
Quoted 3 lines

But yes, there are ways to make it permanent. But that involves hacking Xen source.

Why would there be any need for a source modification? Just like xen/.config, ./.config is not considered part of the source.

Quoted 4 lines

This is not a very great approach because if you need to bisect, then you have to remember to apply the change everytime. It also doesn't work if you have to build for multiple different target from the same source.

Quoted 7 lines
Quoted 4 lines

Why wouldn't it? I'm doing exactly this, far beyond just x86 and Arm builds, and it all works fine. (It would work even better with out-of-tree builds, but it looks like Anthony is getting us there.)

... let me ask it differently. Are you concerned of my wording or by the fact we make easier to a user to EXPERT mode?

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Jan

#24 lore raw
Quoted 103 lines · Jan Beulich
Quoted 102 lines · Julien Grall

Hi,

Quoted 74 lines · Jan Beulich
Quoted 73 lines · Julien Grall

Hi,

Quoted 69 lines · Jan Beulich
Quoted 53 lines · Julien Grall

Hi Ian,

Thank you for the clarification.

Quoted 29 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.

I reviewed the thread and there were two concernes raised:

Quoted 7 lines

* The question of principle. I disagree with this concern because I approve of principle of the patch.

* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 5 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

Quoted 8 lines

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

To me this looks very similar to e.g. not suitably overriding the default toolchain binaries, if one has a need to build with newer ones than what a distro provides. According to some of my routinely built configs both can be done by putting suitable entries into ./.config (not xen/.config), removing the need to remember adding either to the make command line.

Quoted 5 lines
Quoted 1 line

I have never heard of ./.config before. So what are you referring to?

I'm referring to this line in ./Config.mk:

-include $(XEN_ROOT)/.config

Great another undocumented way to do things...

Quoted 16 lines
Quoted 3 lines

But yes, there are ways to make it permanent. But that involves hacking Xen source.

Why would there be any need for a source modification? Just like xen/.config, ./.config is not considered part of the source.

Quoted 4 lines

This is not a very great approach because if you need to bisect, then you have to remember to apply the change everytime. It also doesn't work if you have to build for multiple different target from the same source.

Why wouldn't it? I'm doing exactly this, far beyond just x86 and Arm builds, and it all works fine. (It would work even better with out-of-tree builds, but it looks like Anthony is getting us there.)

Quoted 6 lines
Quoted 2 lines

... let me ask it differently. Are you concerned of my wording or by the fact we make easier to a user to EXPERT mode?

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

For a first, AFAICT, your solution is not documented anywhere at all... It would be possible to document it thought.

However, having two .config for managing Xen options is not very great. You have to remember where to add the options and that you need to provide the two files if you want someone else to reproduce your setup.

So I would still like to push for a single .config.

As an aside, if you look at the placement of ./.config, it is meant to be applied for the full tree. XEN_CONFIG_EXPERT is a config specific to the hypervisor, so it is a bit counterintuitive to put it in that file.

Cheers,

Signature · 1 line
Julien Grall
#25 lore raw
In reply to Jan Beulich

Jan Beulich writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 3 lines

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Thanks for this clear statement of your objection. I'm afraid I don't agree. Even though .config exists (and is even used by osstest, so I know about it) I don't think it is as good as having it in menuconfig.

I agree with George's comments:

| From a UI perspective, I think that’s a poor UI — enabling
| CONFIG_EXPERT from the menuconfig is more discoverable and more in
| line with what people expect.

and I haven't seen good reasons (in my opinion) for diverging from that discoverability and expectation.

So I have given my ack in the other mail.

Regards,
Ian.

#26 lore raw
Quoted 9 lines · Ian Jackson

Jan Beulich writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 3 lines

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Thanks for this clear statement of your objection. I'm afraid I don't agree. Even though .config exists (and is even used by osstest, so I know about it) I don't think it is as good as having it in menuconfig.

But you realize that my objection is (was) more towards the reasoning behind the change, than towards the change itself. If, as a community, we decide to undo what we might now call a mistake, and if we're ready to deal with the consequences, so be it.

Jan

#27 lore raw

Hi,

Quoted 11 lines · Jan Beulich
Quoted 9 lines · Ian Jackson

Jan Beulich writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 3 lines

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Thanks for this clear statement of your objection. I'm afraid I don't agree. Even though .config exists (and is even used by osstest, so I know about it) I don't think it is as good as having it in menuconfig.

Quoted 4 lines

But you realize that my objection is (was) more towards the reasoning behind the change, than towards the change itself. If, as a community, we decide to undo what we might now call a mistake, and if we're ready to deal with the consequences, so be it.

Would you mind to explain the fall out you expect from this patch? Are you worry more people may contact [email protected] for non-security issue?

Cheers,

Signature · 1 line
Julien Grall
#28 lore raw
Quoted 12 lines · Julien Grall
Quoted 11 lines · Jan Beulich
Quoted 9 lines · Ian Jackson

Jan Beulich writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 3 lines

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Thanks for this clear statement of your objection. I'm afraid I don't agree. Even though .config exists (and is even used by osstest, so I know about it) I don't think it is as good as having it in menuconfig.

Quoted 7 lines
Quoted 4 lines

But you realize that my objection is (was) more towards the reasoning behind the change, than towards the change itself. If, as a community, we decide to undo what we might now call a mistake, and if we're ready to deal with the consequences, so be it.

Would you mind to explain the fall out you expect from this patch? Are you worry more people may contact [email protected] for non-security issue?

That's one possible thing that might happen. But even more generally the likelihood will increase that people report issues without paying attention that they depend on their choice of configuration. We'll have to both take this into consideration and ask back for the specific .config they've used.

Jan

#29 lore raw

Hi Jan,

Quoted 18 lines · Jan Beulich
Quoted 17 lines · Julien Grall
Quoted 15 lines · Jan Beulich
Quoted 9 lines · Ian Jackson

Jan Beulich writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 3 lines

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Thanks for this clear statement of your objection. I'm afraid I don't agree. Even though .config exists (and is even used by osstest, so I know about it) I don't think it is as good as having it in menuconfig.

But you realize that my objection is (was) more towards the reasoning behind the change, than towards the change itself. If, as a community, we decide to undo what we might now call a mistake, and if we're ready to deal with the consequences, so be it.

Quoted 6 lines
Quoted 2 lines

Would you mind to explain the fall out you expect from this patch? Are you worry more people may contact [email protected] for non-security issue?

That's one possible thing that might happen. But even more generally the likelihood will increase that people report issues without paying attention that they depend on their choice of configuration.

I agree that you are going to get more report because there are more users to try new things. So inevitently, you will get more incomplete report. This is always the downside of allowing more flexibility.

But we also need to look at the upside. I can see 2 advantages:
1) It will be easier to try upcoming features (e.g Argo). The more
testing and input, the more chance a feature will be a success.
2) It will be easier to tailor Xen (such as built-in command line).

In both cases, you make Xen more compelling because you allow to experiment and make it more flexible. IHMO, this is one of the best way to attract users and possible new contributors/reviewers to Xen community.

Quoted 3 lines

We'll
have to both take this into consideration and ask back for the specific .config they've used.

Correct me if I am wrong, but this is not very specific to EXPERT mode. You can already select different options that will affect the behavior of the hypervisor. For instance, on x86, you can disable PV guest support. How do you figure that out today without asking the .config?

Cheers,

Signature · 1 line
Julien Grall
#30 lore raw
Quoted 31 lines · Julien Grall

Hi Jan,

Quoted 18 lines · Jan Beulich
Quoted 17 lines · Julien Grall
Quoted 15 lines · Jan Beulich
Quoted 9 lines · Ian Jackson

Jan Beulich writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 3 lines

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Thanks for this clear statement of your objection. I'm afraid I don't agree. Even though .config exists (and is even used by osstest, so I know about it) I don't think it is as good as having it in menuconfig.

But you realize that my objection is (was) more towards the reasoning behind the change, than towards the change itself. If, as a community, we decide to undo what we might now call a mistake, and if we're ready to deal with the consequences, so be it.

Quoted 6 lines
Quoted 2 lines

Would you mind to explain the fall out you expect from this patch? Are you worry more people may contact [email protected] for non-security issue?

That's one possible thing that might happen. But even more generally the likelihood will increase that people report issues without paying attention that they depend on their choice of configuration.

I agree that you are going to get more report because there are more users to try new things. So inevitently, you will get more incomplete report. This is always the downside of allowing more flexibility.

Quoted 8 lines

But we also need to look at the upside. I can see 2 advantages:
1) It will be easier to try upcoming features (e.g Argo). The more
testing and input, the more chance a feature will be a success.
2) It will be easier to tailor Xen (such as built-in command line).

In both cases, you make Xen more compelling because you allow to experiment and make it more flexible. IHMO, this is one of the best way to attract users and possible new contributors/reviewers to Xen community.

I'm fully aware of the upsides.

Quoted 7 lines
Quoted 3 lines

We'll
have to both take this into consideration and ask back for the specific .config they've used.

Correct me if I am wrong, but this is not very specific to EXPERT mode. You can already select different options that will affect the behavior of the hypervisor. For instance, on x86, you can disable PV guest support. How do you figure that out today without asking the .config?

I didn't say this is a new problem; I indicated this is going to become more likely to be one.

Jan

#31 lore raw
Quoted 52 lines · Jan Beulich

[CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments unless you have verified the sender and know the content is safe.

Quoted 31 lines · Julien Grall

Hi Jan,

Quoted 18 lines · Jan Beulich
Quoted 17 lines · Julien Grall
Quoted 15 lines · Jan Beulich
Quoted 9 lines · Ian Jackson

Jan Beulich writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 3 lines

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Thanks for this clear statement of your objection. I'm afraid I don't agree. Even though .config exists (and is even used by osstest, so I know about it) I don't think it is as good as having it in menuconfig.

But you realize that my objection is (was) more towards the reasoning behind the change, than towards the change itself. If, as a community, we decide to undo what we might now call a mistake, and if we're ready to deal with the consequences, so be it.

Quoted 6 lines
Quoted 2 lines

Would you mind to explain the fall out you expect from this patch? Are you worry more people may contact [email protected] for non-security issue?

That's one possible thing that might happen. But even more generally the likelihood will increase that people report issues without paying attention that they depend on their choice of configuration.

I agree that you are going to get more report because there are more users to try new things. So inevitently, you will get more incomplete report. This is always the downside of allowing more flexibility.

Quoted 8 lines

But we also need to look at the upside. I can see 2 advantages:
1) It will be easier to try upcoming features (e.g Argo). The more
testing and input, the more chance a feature will be a success.
2) It will be easier to tailor Xen (such as built-in command line).

In both cases, you make Xen more compelling because you allow to experiment and make it more flexible. IHMO, this is one of the best way to attract users and possible new contributors/reviewers to Xen community.

I'm fully aware of the upsides.

Quoted 3 lines
Quoted 3 lines

We'll
have to both take this into consideration and ask back for the specific .config they've used.

Quoted 7 lines
Quoted 4 lines

Correct me if I am wrong, but this is not very specific to EXPERT mode. You can already select different options that will affect the behavior of the hypervisor. For instance, on x86, you can disable PV guest support. How do you figure that out today without asking the .config?

I didn't say this is a new problem; I indicated this is going to become more likely to be one.

I feel like there’s a misunderstanding here — Jan, are you simply explaining yourself and/or making sure that we all understand the implications of our choice? Or are you arguing against acceptance in an implicitly Nack-ing manner?

I understood Jan to be doing the former; and that as such with Ian’s ack, this patch (with the modified commit message) can go in.

-George

#32 lore raw
Quoted 57 lines · George Dunlap
Quoted 57 lines · Jan Beulich

[CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments unless you have verified the sender and know the content is safe.

Quoted 31 lines · Julien Grall

Hi Jan,

Quoted 18 lines · Jan Beulich
Quoted 17 lines · Julien Grall
Quoted 15 lines · Jan Beulich
Quoted 9 lines · Ian Jackson

Jan Beulich writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 3 lines

I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time.

Thanks for this clear statement of your objection. I'm afraid I don't agree. Even though .config exists (and is even used by osstest, so I know about it) I don't think it is as good as having it in menuconfig.

But you realize that my objection is (was) more towards the reasoning behind the change, than towards the change itself. If, as a community, we decide to undo what we might now call a mistake, and if we're ready to deal with the consequences, so be it.

Quoted 6 lines
Quoted 2 lines

Would you mind to explain the fall out you expect from this patch? Are you worry more people may contact [email protected] for non-security issue?

That's one possible thing that might happen. But even more generally the likelihood will increase that people report issues without paying attention that they depend on their choice of configuration.

I agree that you are going to get more report because there are more users to try new things. So inevitently, you will get more incomplete report. This is always the downside of allowing more flexibility.

Quoted 8 lines

But we also need to look at the upside. I can see 2 advantages:
1) It will be easier to try upcoming features (e.g Argo). The more
testing and input, the more chance a feature will be a success.
2) It will be easier to tailor Xen (such as built-in command line).

In both cases, you make Xen more compelling because you allow to experiment and make it more flexible. IHMO, this is one of the best way to attract users and possible new contributors/reviewers to Xen community.

I'm fully aware of the upsides.

Quoted 7 lines
Quoted 3 lines

We'll
have to both take this into consideration and ask back for the specific .config they've used.

Correct me if I am wrong, but this is not very specific to EXPERT mode. You can already select different options that will affect the behavior of the hypervisor. For instance, on x86, you can disable PV guest support. How do you figure that out today without asking the .config?

Quoted 7 lines
Quoted 2 lines

I didn't say this is a new problem; I indicated this is going to become more likely to be one.

I feel like there’s a misunderstanding here — Jan, are you simply explaining yourself and/or making sure that we all understand the implications of our choice? Or are you arguing against acceptance in an implicitly Nack-ing manner?

The former - it would have seemed impolite if I hadn't replied to Julien's question.

Quoted 2 lines

I understood Jan to be doing the former; and that as such with Ian’s ack, this patch (with the modified commit message) can go in.

Indeed. Looks like I'm the only one anyway to be concerned of the extra effort.

Jan

#33 lore raw
In reply to Julien Grall
Quoted 8 lines · Julien Grall

[CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments unless you have verified the sender and know the content is safe.

Hi,

Quoted 8 lines
Quoted 5 lines · Jan Beulich
Quoted 2 lines · Julien Grall

I have never heard of ./.config before. So what are you referring to?

I'm referring to this line in ./Config.mk:
-include $(XEN_ROOT)/.config

Great another undocumented way to do things...

Oh, is that not documented? It’s quite venerable at this point — if it’s not documented that should change. (Although I guess there’s an argument that everything which would be included there should be added to either KConfig or configure.)

I don’t think I would have thought to add XEN_CONFIG_EXPERT=y to .config to prevent the issue Julien is seeing. That maybe part of the reason why this doesn’t bother you as much as it does him.

From a UI perspective, I think that’s a poor UI — enabling CONFIG_EXPERT from the menuconfig is more discoverable and more in line with what people expect.

-George

#34 lore raw
In reply to Julien Grall
Quoted 60 lines · Julien Grall

[CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments unless you have verified the sender and know the content is safe.

Hi Ian,

Thank you for the clarification.

Quoted 23 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

Quoted 9 lines

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.
I reviewed the thread and there were two concernes raised:
* The question of principle. I disagree with this concern because I approve of principle of the patch.
* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 4 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Quoted 6 lines

A lot of the options behind EXPERT would benefit to be more accessible so user can experiment with it and voice any concern before they are fully be supported.

So rather than making really difficult to experiment or tweak your Xen (for instance by adding a built-in command line), this option can now be selected from the menuconfig.

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

How about this, clarifying that top-level .config is an option, but that it’s still better to put it in menuconfig? (Also note a number of grammar tweaks.)

—

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.

—

-George

#35 lore raw

Hi George,

Quoted 74 lines · George Dunlap
Quoted 60 lines · Julien Grall

[CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments unless you have verified the sender and know the content is safe.

Hi Ian,

Thank you for the clarification.

Quoted 23 lines · Ian Jackson

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 19 lines · Ian Jackson
Quoted 18 lines

George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 6 lines · Jan Beulich
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

Yes, it was on purpose. However, I had my doubts at the time and I think experience has shown that this was a mistake.

Quoted 6 lines

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Quoted 3 lines
Quoted 1 line

Precisely.

Can I consider this as an Acked-by? :)

Quoted 9 lines

I am happy with the principle of the change. I haven't reviewed the details of the commit message etc.
I reviewed the thread and there were two concernes raised:
* The question of principle. I disagree with this concern because I approve of principle of the patch.
* Some detail about the precise justificaton as written in the commit message, regarding `clean' targets. Apparently the assertion may not be completely true. I haven't seen a proposed alternative wording.

I have checked the latest staging, the clean target doesn't trash .config anymore.

Quoted 4 lines

I don't feel I should ack a controversial patch with an unresolved wording issue. Can you tell me what your proposed wording is ? To avoid blocking this change I would be happy to review your wording and see if it meets my reading of the stated objection.

Here a suggested rewording:

"EXPERT mode is currently used to gate any options that are in technical preview or not security supported At the moment, the only way to select it is to use XEN_CONFIG_EXPERT=y on the make command line.

However, if the user forget to add the option when (re)building or when using menuconfig, then .config will get rewritten. This may lead to a rather frustrating experience as it is difficult to diagnostic the issue.

Quoted 6 lines

A lot of the options behind EXPERT would benefit to be more accessible so user can experiment with it and voice any concern before they are fully be supported.

So rather than making really difficult to experiment or tweak your Xen (for instance by adding a built-in command line), this option can now be selected from the menuconfig.

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

How about this, clarifying that top-level .config is an option, but that it’s still better to put it in menuconfig? (Also note a number of grammar tweaks.)

—

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.

Quoted 7 lines

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.

I am happy this wording.

Cheers,

Signature · 1 line
Julien Grall
Acked-by
#36 lore raw

Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"):

Quoted 1 line

I am happy this wording.

Thanks for engaging with the commit message issue.

This patch is:

with any of the suggested commit message wordings. I trust your judgement to pick a suitable wording.

Ian.

#37 lore raw
In reply to George Dunlap

Hi George,

Quoted 9 lines · George Dunlap
Quoted 9 lines · Jan Beulich
Quoted 5 lines

In order to make easier to experiment, the option EXPERT can now be selected from the menuconfig rather than make command line. This does not change the fact a kernel with EXPERT mode selected will not be security supported.

Quoted 7 lines
Quoted 5 lines

Well, if I'm not mis-remembering it was on purpose to make it more difficult for people to declare themselves "experts". FAOD I'm not meaning to imply I don't see and accept the frustration aspect you mention further up. The two need to be carefully weighed against one another.

I don’t think we need to make it difficult for people to declare themselves experts, particularly as “all” it means at the moment is, “Can build something which is not security supported”. People who are building their own hypervisors are already pretty well advanced; I think we can let them shoot themselves in the foot if they want to.

Assuming I reword the commit message regarding "make clean", could I consider this as an acked-by?

Cheers,

Signature · 1 line
Julien Grall