[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] xen: EXPERT clean-up and introduce UNSUPPORTED
On 18.11.2020 22:00, Stefano Stabellini wrote: > On Wed, 18 Nov 2020, Jan Beulich wrote: >> On 18.11.2020 01:50, Stefano Stabellini wrote: >>> 1) It is not obvious that "Configure standard Xen features (expert >>> users)" is actually the famous EXPERT we keep talking about on xen-devel >> >> Which can be addressed by simply changing the one prompt line. >> >>> 2) It is not obvious when we need to enable EXPERT to get a specific >>> feature >>> >>> In particular if you want to enable ACPI support so that you can boot >>> Xen on an ACPI platform, you have to enable EXPERT first. But searching >>> through the kconfig menu it is really not clear (type '/' and "ACPI"): >>> nothing in the description tells you that you need to enable EXPERT to >>> get the option. >> >> And what causes this to be different once you switch to UNSUPPORTED? > > Two things: firstly, it doesn't and shouldn't take an expert to enable > ACPI support, even if ACPI support is experimental. So calling it > UNSUPPORTED helps a lot. This is particularly relevant to the ARM Kconfig > options changed by this patch. Secondly, this patch is adding > "(UNSUPPORTED)" in the oneline prompt so that it becomes easy to match > it with the option you need to enable. There's redundancy here then, which I think is in almost all cases better to avoid. That's first and foremost because the two places can go out of sync. Therefore, if the primary thing is to help "make menuconfig" (which I admit I don't normally use, as it's nothing that gets invoked implicitly by the build process afaict, i.e. one has to actively invoke it), perhaps we should enhance kconfig to attach at least a pre-determined subset of labels to the prompts automatically? And second, also in reply to what you've been saying further down, perhaps we would better go with a hierarchy of controls here, e.g. EXPERT -> EXPERIMENTAL -> UNSUPPORTED? >>> So this patch makes things easier by doing two things: >>> >>> - introduce a new kconfig option UNSUPPORTED which is clearly to enable >>> UNSUPPORTED features as defined by SUPPORT.md >>> >>> - change EXPERT options to UNSUPPORTED where it makes sense: keep >>> depending on EXPERT for features made for experts >>> >>> - tag unsupported features by adding (UNSUPPORTED) to the one-line >>> description >> >> I am, btw, not fully convinced of the need for this redundancy. Wouldn't >> it be enough to have just EXPERT as a setting, but varying (<reason>) >> tokens in the prompt text? > > I don't think so, for the same reasons written above: EXPERT should not > be gating things like ACPI. Different views are possible here, I suppose. Turning on anything that's unsupported requires people to know what they're doing (and be ready to pick up the pieces themselves). I'd consider this to fall under "expert". > Moreover, the advantage of the tag in the > oneline prompt is that you can search for an option and figure out that > you need to enable UNSUPPORTED. It doesn't work if we use a different > tag. Just to get the idea, try to do "make menuconfig" and search for > "ARGO" with '/': you'll see "(UNSUPPORTED)". Then, if you search for > "UNSUPPORTED" you can find what you need to enable. Implying that textual representation and Kconfig option name match, see above. Even a simple spelling mistake would break this model. >>> --- a/xen/Kconfig >>> +++ b/xen/Kconfig >>> @@ -34,8 +34,17 @@ config DEFCONFIG_LIST >>> option defconfig_list >>> default ARCH_DEFCONFIG >>> >>> +config UNSUPPORTED >>> + bool "Configure UNSUPPORTED features" >>> + help >>> + This option allows unsupported Xen options to be enabled, which >> >> I'd recommend against "enabled" - a control may also be there to allow >> disabling something. > > I can change that. > > >>> + includes non-security-supported, experimental, and tech preview >>> + features as defined by SUPPORT.md. Xen binaries built with this >>> + option enabled are not security supported. >> >> Overall I'm a little afraid of possible inverse implications: Anything >> _not_ dependent upon this option (and in particular anything not >> dependent upon any Kconfig control) may be considered supported then. >> >> Also the last sentence is already present for EXPERT, > > I am happy to rephrase it. What about: > > "This option allows certain unsupported Xen options to be changed, which > includes non-security-supported, experimental, and tech preview features > as defined by SUPPORT.md." Sounds better to me. >>> --- a/xen/common/Kconfig >>> +++ b/xen/common/Kconfig >>> @@ -151,7 +151,7 @@ config KEXEC >>> If unsure, say Y. >>> >>> config EFI_SET_VIRTUAL_ADDRESS_MAP >>> - bool "EFI: call SetVirtualAddressMap()" if EXPERT >>> + bool "EFI: call SetVirtualAddressMap() (UNSUPPORTED)" if UNSUPPORTED >> >> I have to admit I'm pretty unsure about what to do with this one. > > Yeah, similarly to XEN_SHSTK, I don't have an opinion here either. I am > happy to change it or leave it as. I guess at least for the first cut I'd like to ask to just leave it alone. Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |