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

Re: [RFC PATCH v2] arm: dom0less: add TEE support


  • To: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Fri, 31 May 2024 17:56:16 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=S8snQEhOQFqU11fm4e3rbBUwlkvRc+kZu7Ez7QA0yKg=; b=CUssqmKU1v1zlvVSXIPdW2i2KLBkIYgv3HZlDD2bugDkvBnZI5gMPju8wjqdhDA0puYTIRA8jVYB/6XXFMVDysqdKNCb71D9k/mDwX4dD81r7qVU819NbzRSelzGA/ShEiKDgQusMUoeUWfwbHiXmMP3y+wvmxNyH5uXW7YkraxvRKP7HGAT7GkWLRbRV9mFJhYmtM64R2ryIhtZHKjsxQWJnmgKJqgwqrbBTw03um57Q84fkPUYxsjF4dBFrXSHpDDh5IpaULlTFnJ0myCYOHpTMxkv8JSaNy0aMmceQ+9lsE+BPDOJcRc7ND+Wcd3xV87NrFqCpA2pwBZbMB2niA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c9Ox6HNUuaq/U+vnoC/ewPWvfe4c1iRmXQGPvXGL7RpR0ubmJjHnVTDyzH17dIZ6kPVsTAFejGPPCgqYGvqSR5EDG8kUjaUVS4NZN+6kigRQ1sLcCn4076Er1HJLOyNprOHYl3WuqWnhQFBNGTJ/Ziiyw7NkLQjLD+ZX5PQy97gp8fHkjPdtdPqMEr9rUFNzthlnhX9Zr43Ppsyy0AmJqHAQzoiqUvyQfWwRqAuM6/KaNzebPLlKt6I1Vb/f6cyOf7RVmT6qPMUcDH2cxL2nV8+TvchutIZO/CHja+YYJqAnHsrPf94RiTIDmvfHbpZgxH/iEvsN6lMiopCZRDzW9g==
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Fri, 31 May 2024 17:56:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHas4LmA3+MKr53jE6Kc+pdYgdQGLGxoCWA
  • Thread-topic: [RFC PATCH v2] arm: dom0less: add TEE support

Hello all,

Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx> writes:

> Extend TEE mediator interface with two functions :
>
>  - tee_get_type_from_dts() returns TEE type based on input string
>  - tee_make_dtb_node() creates a DTB entry for the selected
>    TEE mediator
>
[..]

>  bool __init is_dom0less_mode(void)
>  {
> @@ -650,6 +651,10 @@ static int __init prepare_dtb_domU(struct domain *d, 
> struct kernel_info *kinfo)
>      if ( ret )
>          goto err;
>

I forgot to add

#ifdef CONFIG_TEE

> +    /* We are making assumption that every mediator sets d->arch.tee */
> +    if ( d->arch.tee )
> +        tee_make_dtb_node(kinfo->fdt);
> +
#endif

So build fails if TEE is disabled.

I'll fix this in the next version. Anyways, this is RFC.

>      /*
>       * domain_handle_dtb_bootmodule has to be called before the rest of
>       * the device tree is generated because it depends on the value of
> @@ -871,6 +876,7 @@ void __init create_domUs(void)
>          unsigned int flags = 0U;
>          uint32_t val;
>          int rc;
> +        const char *tee_name;

[...]

-- 
WBR, Volodymyr


 


Rackspace

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