[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] xen: EXPERT clean-up and introduce UNSUPPORTED
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Wed, 18 Nov 2020 14:23:13 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TbKTD9sVBqkPxVLzxguLKQJDfD3FEPyOPei7Fc1v9gA=; b=GX0tvQIxgqyzYjmp6U9F+esTMfQ06EGpRK8uJLIoiqGGFCkVzpDWAD/SWP/V8fk4CcrwO0JiEo7vIVagis+b3WN04Xo2wibSodA/v1nqCJAoIcm2P22pRJMRDz7X3izXPNJsoqYYJUSDh3N0QA+0dL/yXk14qmAwKb5BrfizkJVcmRQ/R+G5/g/JbRSysc4tRWEIpJCvM5bq+6aqc7odv6Q3Xvdt+oLD5mzuyczhu77RE7qcelNIlK8FzVOJPt2b7fk6vNUYjvW6C1VTNahEzUkOQhvxU7VrWcfxGanOb653iis8W8O+JQ5wpYy0YZzysUjsS+vdZZBdSvUJrLX2AA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=docvWPS8rDYILzDjYUB13Jp8pDFE1RNr4VPC0fHOEolXe22Ohizbe29ZdDYQxxjqgk4PIimBe3VzNELV5ZLZ+v6HqGmdEsafrKDJBgbQr7T1PbJrpGIbrm0O/brcw1DhijefHl/fRKAlebZXM8pKbvi1g4qL6KZnHwd49en9km9OSWdD3S9AQQ8XpLprfvmfyXH4v+KLX36OUly4IMib7kWT57MpdN+d0NsqJ51sVKiNrCwkY1y0gEeC8BiLh0NaMRtQYtWv72aN/Nrk5f4eMc6UfJ32Ldcp9XGcQOFBk82jXDWU4K9eqFppuEUcEM8nEbA6PjbByshOBC7LpZcQ0Q==
- Authentication-results-original: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
- Cc: "open list:X86" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "george.dunlap@xxxxxxxxxx" <george.dunlap@xxxxxxxxxx>, "iwj@xxxxxxxxxxxxxx" <iwj@xxxxxxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "wl@xxxxxxx" <wl@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Wed, 18 Nov 2020 14:23:46 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
- Thread-index: AQHWvUT1dGbwa+YaakuAH1PIoRpzaanNk7GAgAABYYCAAF0WgA==
- Thread-topic: [PATCH v2] xen: EXPERT clean-up and introduce UNSUPPORTED
Hi Jan,
> On 18 Nov 2020, at 08:50, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>
> On 18.11.2020 09:45, Bertrand Marquis wrote:
>>> On 18 Nov 2020, at 00:50, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
>>> --- a/xen/arch/x86/Kconfig
>>> +++ b/xen/arch/x86/Kconfig
>>> @@ -102,8 +102,8 @@ config HVM
>>> If unsure, say Y.
>>>
>>> config XEN_SHSTK
>>> - bool "Supervisor Shadow Stacks"
>>> - depends on HAS_AS_CET_SS && EXPERT
>>> + bool "Supervisor Shadow Stacks (UNSUPPORTED)"
>>> + depends on HAS_AS_CET_SS && UNSUPPORTED
>>
>> This one is not following the standard scheme with “if UNSUPPORTED"
>
> There's no standard scheme here: There's one case where the entire
> option depends on some other setting (e.g. UNSUPPORTED) and another
> where just the prompt (i.e. giving the user a choice) does. The
> difference becomes obvious when the option has a default other than
> "no": Despite the invisible prompt, it may get turned on. In the
> case here (serving as a good example), "default y" would mean the
> feature gets turned on when "if UNSUPPORTED" would be added to the
> prompt and when UNSUPPORTED is itself off.
>
It makes sense, thanks for the explanation
Bertrand
|