[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/arm: Move TEE mediators in a kconfig submenu


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Fri, 21 Jul 2023 12:27:19 +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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=f9Zot7rjlz0cVnK4LhEOabZg2vXloiVvRB0vofcpwOI=; b=KMiI2KfqlFa/sPE8QcdDPbO6OTw4rWrFFXUQOkJrX1E95tu4FLtFAlQYMJI8qSXGPEZSn9sDO/3LFK2/DFdSaK+CYBG84bZ0FbS9w1+pweZuL012SLuGx+ROIVvQt106FuFojNUl2H7xoxSVBIproDGh4LiDHZ+epe+cpJfhvAYQYroMurSn3LWQNIaFzxsHyij9rQyGbOmm/2uo6gLsWcdNxxakcoVoVYsiXb4hwqwpGp5w7vV3IZ6xnXSLivS2A+1ztku1Gs7OmDIc6vSyooPeVuVYYkKfoz39F+7y3M+q4u4TTNDMGY8x0x9fXORGT5JB2EkYTsTNiY9yL1Xlmw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oHXWwO0MGMBCbb9bzVM3W/eyMMvec8rtTFP/L9gFpSUYZHEFjGrSDKt6NEODDpdAzQvIk5DB3MEfJOLODUVlXBcWgAp12RhqA/FYvgFkjw8hhFSXrWVYR5VPj61U3AoIow2oi0VdzZARr94YHcu1LXNnbPVHk8QEJmo/HwgXdPLHOQrOvZY9dMNTtTHvE8uvYAlKrMRrPjTy6kSlTAgIttSEhRdgf7ePbeOssTgWGr4A67MGjfupF/Vj1CxodygmxFpX2vipi6WG+grQ0mp7sDz2IAY6mGWGktI+Du7uhjMPQ3Lu+d+Ec15Ej7+8HpEJHxZeS/aQickFbliGWHJF0w==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Jens Wiklander <jens.wiklander@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 21 Jul 2023 12:27:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZu6nFJdPelAC9nE2wzAZF/5qPkK/D6iMAgAACsoCAABzbgIAAHFKA
  • Thread-topic: [PATCH] xen/arm: Move TEE mediators in a kconfig submenu

Hi Jan,

> On 21 Jul 2023, at 12:45, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 21.07.2023 11:02, Bertrand Marquis wrote:
>>> On 21 Jul 2023, at 10:52, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>> On 21.07.2023 10:02, Bertrand Marquis wrote:
>>>> --- a/xen/arch/arm/tee/Kconfig
>>>> +++ b/xen/arch/arm/tee/Kconfig
>>>> @@ -1,7 +1,17 @@
>>>> +menu "TEE mediators"
>>>> + visible if UNSUPPORTED
>>> 
>>> With this ...
>>> 
>>>> +config TEE
>>>> + bool
>>>> + default n
>>>> + help
>>>> +  This option enables generic TEE mediators support. It allows guests
>>>> +  to access real TEE via one of TEE mediators implemented in XEN.
>>>> +
>>>> config OPTEE
>>>> - bool "Enable OP-TEE mediator"
>>>> + bool "Enable OP-TEE mediator (UNSUPPORTED)" if UNSUPPORTED
>>> 
>>> ... you shouldn't need the "if" here, and ...
>>> 
>>>> default n
>>>> - depends on TEE
>>>> + select TEE
>>>> help
>>>> Enable the OP-TEE mediator. It allows guests to access
>>>> OP-TEE running on your platform. This requires
>>>> @@ -13,9 +23,13 @@ config FFA
>>>> bool "Enable FF-A mediator support (UNSUPPORTED)" if UNSUPPORTED
>>> 
>>> ... you could drop the one here. I think.
>> 
>> visible if is only for the GUI/ncurse display but the if is required
>> to make sure that a .config file cannot set CONFIG_TEE or
>> CONFIG_FFA if. UNSUPPORTED is not selected.
> 
> Is what you describe "depends on"? "if" controls merely prompt
> visibility aiui.

So you think that having  CONFIG_FFA without CONFIG_UNSUPPORTED
would be a valid configuration and the if is only here for the gui ?

I tested that with the following procedure:
- use menuconfig, select UNSUPPORTED and FFA
- edit .config and disable UNSUPPORTED but keep FFA
- build
- CONFIG_FFA is removed from .config

Now what puzzles me is that i did the same but removing the if UNSUPPORTED
for TEE and FFA and i have exactly the same behaviour.

So it seems that "if UNSUPPORTED" and visibility all behave in the same way
as depends on which i was not expecting.

So what should i keep or remove here ?

Cheers
Bertrand

> 
> Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.