From patchwork Wed Jun 19 17:54:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 11004983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 66931924 for ; Wed, 19 Jun 2019 17:55:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52CB4283C8 for ; Wed, 19 Jun 2019 17:55:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46FE928437; Wed, 19 Jun 2019 17:55:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B8554283C8 for ; Wed, 19 Jun 2019 17:55:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hdemt-0007yg-1E; Wed, 19 Jun 2019 17:54:23 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hdemr-0007yT-Ek for xen-devel@lists.xenproject.org; Wed, 19 Jun 2019 17:54:21 +0000 X-Inumbo-ID: 42e85a05-92bb-11e9-8980-bc764e045a96 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (unknown [2a01:111:f400:fe06::620]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 42e85a05-92bb-11e9-8980-bc764e045a96; Wed, 19 Jun 2019 17:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fa6y56/X5mUqNW6QKRHh++yk1raXYJo/h4h9LDqi7EU=; b=OFA4T+qdKNC9WPJQhpWCob6UWMuq0D9uWwzH4wAAmpuVtYDIsf3vsMXSEdrWg0tM75sb+oYL+IWUYasxCTBiDKNPvjha1XfWbOzSU+Gle5kJfz0k7y7bZtJatcyVRPCfgLVfr95peRoHFpPJHDm92HngbSMOj5+3HZqnRmDfcJHzrKqPa+8AIBYUO6zA9sPOd6Gja8pGaDW7DVgP2tXbUwEBOPxpLeCfIeWAxEyS2AntKCPzOYFt+gDBgCMjuOoqUo7U8Aj/FmSqAAM5gM0YKGVSPTKNqV9jplmGYqtkuJ04xCzfFgFM8KgDaa4yp8FLiDCEdo7VJ6ArQsvTlqRiTQ== Received: from AM0PR03MB4148.eurprd03.prod.outlook.com (20.176.214.210) by AM0PR03MB6051.eurprd03.prod.outlook.com (10.255.31.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Wed, 19 Jun 2019 17:54:17 +0000 Received: from AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb]) by AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb%7]) with mapi id 15.20.1987.013; Wed, 19 Jun 2019 17:54:17 +0000 From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" Thread-Topic: [PATCH v7 1/5] tools/arm: tee: add "tee" option for xl.cfg Thread-Index: AQHVJsgDpo5qo2vE0Uuj4jFBHYDHFg== Date: Wed, 19 Jun 2019 17:54:16 +0000 Message-ID: <20190619175333.29938-2-volodymyr_babchuk@epam.com> References: <20190619175333.29938-1-volodymyr_babchuk@epam.com> In-Reply-To: <20190619175333.29938-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; x-originating-ip: [85.223.209.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9722679b-ee2d-46ed-5b17-08d6f4df25ec x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM0PR03MB6051; x-ms-traffictypediagnostic: AM0PR03MB6051: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:529; x-forefront-prvs: 0073BFEF03 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(396003)(136003)(39860400002)(346002)(189003)(199004)(81156014)(186003)(3846002)(76116006)(26005)(6506007)(14454004)(72206003)(64756008)(6436002)(2616005)(1076003)(2351001)(54906003)(486006)(4326008)(5660300002)(36756003)(6486002)(80792005)(66556008)(8936002)(66446008)(55236004)(66946007)(446003)(71190400001)(476003)(102836004)(68736007)(66476007)(71200400001)(99286004)(53936002)(6512007)(76176011)(7736002)(6306002)(86362001)(8676002)(25786009)(73956011)(305945005)(316002)(2501003)(66066001)(14444005)(6116002)(478600001)(256004)(11346002)(2906002)(5640700003)(91956017)(81166006)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR03MB6051; H:AM0PR03MB4148.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: epam.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: wCnRKnRi04k8uwcEGx60oQb9xSl65koC/TEyZ9SICUTBEd2KWeBoOpGHys0CH6HMVUKg5TfR3BtqYHLEm/rGSq2uG70hUTxFpAhtlGXwXGIOu3DH+yL8EMTtHeEemIk3H2TsdQwxA+D91HhLhokKH9CoWzvtaGcwoivKqWtezHFoMidFUG6rH9iJ0FKz9icWzoyHNyTYRCLmP8/c3XBGHQoiqPAUtDNXF+/dJdCxFOXUcpY3Dt1jZyp0FoKkBs+ui8Km6rY1omOmZR6gFCon85LCb3SYzE8jTJs4+g0VAofTR4qOstdeI7sDHZq/2H1S4XwCdHXtIzdRtTyfYvzpbmBninUiqwSIIcoSoN6FcBZ/JNWJh0zFNI0FrntRkxR6Bh45WTfzo64do/a/DbXY0nwR8d3pfAx9cPljevPMTik= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9722679b-ee2d-46ed-5b17-08d6f4df25ec X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2019 17:54:16.9655 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Volodymyr_Babchuk@epam.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB6051 Subject: [Xen-devel] [PATCH v7 1/5] tools/arm: tee: add "tee" option for xl.cfg X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: "tee-dev@lists.linaro.org" , Ian Jackson , Volodymyr Babchuk , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This enumeration controls TEE type for a domain. Currently there is two possible options: either 'none' or 'optee'. 'none' is the default value and it basically disables TEE support at all. 'optee' enables access to the OP-TEE running on a host machine. This requires special OP-TEE build with virtualization support enabled. Signed-off-by: Volodymyr Babchuk Acked-by: Ian Jackson --- Changes from v6: - Updated documentation according to Julien Grall's suggestions, add link to OP-TEE documentation Changes from v5: - Replaced "native" with "optee" in the commit description. - Updated and extended documentation based on Julien Grall's and Ian Jackson's suggestions. Changes from v4: - "native" option was replaced with "optee" - "tee" property was moved from arch-specific section to the global one. Documentation moved inside "Devices" section. Changes from v3: - tee_enabled renamed to tee_type. Currently two types are supported as described in the commit message - Add LIBXL_HAVE_BUILDINFO_ARCH_ARM_TEE definition Changes from v2: - Use arch.tee_enabled instead of separate domctl --- docs/man/xl.cfg.5.pod.in | 29 +++++++++++++++++++++++++++++ tools/libxl/libxl.h | 5 +++++ tools/libxl/libxl_arm.c | 13 +++++++++++++ tools/libxl/libxl_types.idl | 6 ++++++ tools/xl/xl_parse.c | 9 +++++++++ 5 files changed, 62 insertions(+) diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in index c99d40307e..e71b3b411d 100644 --- a/docs/man/xl.cfg.5.pod.in +++ b/docs/man/xl.cfg.5.pod.in @@ -1544,6 +1544,35 @@ Set maximum height for pointer device. =back +=item B + +B Set TEE type for the guest. TEE is a Trusted Execution +Environment -- separate secure OS found on some platforms. B can be one of the: + +=over 4 + +=item B + +"Don't allow the guest to use TEE if present on the platform. This is +the default value. + +=item B + +Allow a guest to access the host OP-TEE OS. Xen will mediate the +access to OP-TEE and the resource isolation will be provided directly +by OP-TEE. OP-TEE itself may limit the number of guests that can +concurrently use it. This requires a virtualization-aware OP-TEE for +this to work. + +You can refer to +L +for more information about how to enable and configure virtualization support +in OP-TEE. + +This feature is a B. + +=back + =back =head2 Paravirtualised (PV) Guest Specific Options diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index 9bacfb97f0..1fe6ea2bd8 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -273,6 +273,11 @@ */ #define LIBXL_HAVE_BUILDINFO_ARM_GIC_VERSION 1 +/* + * libxl_domain_build_info has the arch_arm.tee field. + */ +#define LIBXL_HAVE_BUILDINFO_ARCH_ARM_TEE 1 + /* * LIBXL_HAVE_SOFT_RESET indicates that libxl supports performing * 'soft reset' for domains and there is 'soft_reset' shutdown reason diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c index 141e159043..6b72c00960 100644 --- a/tools/libxl/libxl_arm.c +++ b/tools/libxl/libxl_arm.c @@ -89,6 +89,19 @@ int libxl__arch_domain_prepare_config(libxl__gc *gc, return ERROR_FAIL; } + switch (d_config->b_info.tee) { + case LIBXL_TEE_TYPE_NONE: + config->arch.tee_type = XEN_DOMCTL_CONFIG_TEE_NONE; + break; + case LIBXL_TEE_TYPE_OPTEE: + config->arch.tee_type = XEN_DOMCTL_CONFIG_TEE_OPTEE; + break; + default: + LOG(ERROR, "Unknown TEE type %d", + d_config->b_info.tee); + return ERROR_FAIL; + } + return 0; } diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index b61399ce36..fa5ee65463 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -460,6 +460,11 @@ libxl_gic_version = Enumeration("gic_version", [ (0x30, "v3") ], init_val = "LIBXL_GIC_VERSION_DEFAULT") +libxl_tee_type = Enumeration("tee_type", [ + (0, "none"), + (1, "optee") + ], init_val = "LIBXL_TEE_TYPE_NONE") + libxl_rdm_reserve = Struct("rdm_reserve", [ ("strategy", libxl_rdm_reserve_strategy), ("policy", libxl_rdm_reserve_policy), @@ -537,6 +542,7 @@ libxl_domain_build_info = Struct("domain_build_info",[ ("nested_hvm", libxl_defbool), ("apic", libxl_defbool), ("dm_restrict", libxl_defbool), + ("tee", libxl_tee_type), ("u", KeyedUnion(None, libxl_domain_type, "type", [("hvm", Struct(None, [("firmware", string), ("bios", libxl_bios_type), diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c index e105bda2bb..0604374ef3 100644 --- a/tools/xl/xl_parse.c +++ b/tools/xl/xl_parse.c @@ -2691,6 +2691,15 @@ skip_usbdev: } } + if (!xlu_cfg_get_string (config, "tee", &buf, 1)) { + e = libxl_tee_type_from_string(buf, &b_info->tee); + if (e) { + fprintf(stderr, + "Unknown tee \"%s\" specified\n", buf); + exit(-ERROR_FAIL); + } + } + parse_vkb_list(config, d_config); xlu_cfg_destroy(config); From patchwork Wed Jun 19 17:54:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 11004985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0C6D614B6 for ; Wed, 19 Jun 2019 17:56:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE3D8285CC for ; Wed, 19 Jun 2019 17:56:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E05E7285D9; Wed, 19 Jun 2019 17:56:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D44DB285CC for ; Wed, 19 Jun 2019 17:56:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hdemu-0007zA-B0; Wed, 19 Jun 2019 17:54:24 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hdems-0007yb-N7 for xen-devel@lists.xenproject.org; Wed, 19 Jun 2019 17:54:22 +0000 X-Inumbo-ID: 441b74f3-92bb-11e9-8980-bc764e045a96 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (unknown [2a01:111:f400:fe06::620]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 441b74f3-92bb-11e9-8980-bc764e045a96; Wed, 19 Jun 2019 17:54:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fP8vJPN22b6OLgoR82XgeZN8aCm/Eqc6Z8g29fVGTPY=; b=nsIEIj5ROWE0wq607l2rF/0q2ZETjjUXToPFlGtmub6v30TXVMneRssbY18l7Xeqq+5Al6gyFwJgyDUFSTcPgrdvNKDeD/inOBMdFmRBS35YWr4ug97ssqV2NdyU0ki3XiESSyYDLicdkDfCCK/u95igRBMlBxZgBzjDFtgbEYPqD1eqWFakDk5ai578N6xqSaFH6bIeeUvf9jIxBi6pBLenpOzwF4DHcKKIg5Nm/UNaBmj1BUcElox+wqFPSZCqBzinlViolWKOCxAr8eJNhXccMCPH7NeU3Hu7xeA6iARcMGF+EEzRnh0Cuqyxn10XYCNwsEI7SY74tXTXX9IA+g== Received: from AM0PR03MB4148.eurprd03.prod.outlook.com (20.176.214.210) by AM0PR03MB6051.eurprd03.prod.outlook.com (10.255.31.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Wed, 19 Jun 2019 17:54:19 +0000 Received: from AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb]) by AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb%7]) with mapi id 15.20.1987.013; Wed, 19 Jun 2019 17:54:19 +0000 From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" Thread-Topic: [PATCH v7 2/5] tools/arm: optee: create optee firmware node in DT if tee=optee Thread-Index: AQHVJsgFm0lDectG80mAA7GOe+3Yow== Date: Wed, 19 Jun 2019 17:54:19 +0000 Message-ID: <20190619175333.29938-3-volodymyr_babchuk@epam.com> References: <20190619175333.29938-1-volodymyr_babchuk@epam.com> In-Reply-To: <20190619175333.29938-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; x-originating-ip: [85.223.209.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cad1f351-4f6c-4253-5e02-08d6f4df2795 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM0PR03MB6051; x-ms-traffictypediagnostic: AM0PR03MB6051: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 0073BFEF03 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(396003)(136003)(39860400002)(346002)(189003)(199004)(81156014)(186003)(3846002)(76116006)(26005)(6506007)(14454004)(72206003)(64756008)(6436002)(2616005)(1076003)(2351001)(54906003)(486006)(4326008)(5660300002)(36756003)(6486002)(80792005)(66556008)(8936002)(66446008)(55236004)(66946007)(446003)(71190400001)(476003)(102836004)(68736007)(66476007)(71200400001)(99286004)(53936002)(6512007)(76176011)(7736002)(86362001)(8676002)(25786009)(73956011)(305945005)(316002)(2501003)(66066001)(6116002)(478600001)(256004)(11346002)(2906002)(5640700003)(91956017)(81166006)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR03MB6051; H:AM0PR03MB4148.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: epam.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9EcSxbO1Fd2VcqE5QdwLT3DQ7ilEA+eGe/i1BKu8xBbnKYirxG4N9Ks+0yvEbs6f+QmdWvCekTb6ZJwvBPFuXEvahrf75wzhK8QWtCsJdFGmt6oWpR9ihoy698ZpS5J0ggv9kLx4Zk+Qz1iXbO9SRT+OcgqY6J49S55htOfc83n1Ke+pLAUb4oxsS1O60TjNv+ujJToUAhg6WldIF6GCUD8Z5p8ZdVAKi4WS58JygrGcoiY5ikb1C9+0NXltJZc8OSJZG4hPGGZQBJEtYfB+SZcWFefrRQwbA79amHKYHw3NOofZIfxDHaYT5IwXw2EgkfZhIdYMhfo67g+S6lZpvjohcZ3H9WD/KJgE3H6FLbN8VVQTRR/jhErUUEz/gAqBfBL7Ixktqo+Y9/Ngy/xpcvJ6PnZKX2p8HT52nbAeMzg= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-Network-Message-Id: cad1f351-4f6c-4253-5e02-08d6f4df2795 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2019 17:54:19.7679 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Volodymyr_Babchuk@epam.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB6051 Subject: [Xen-devel] [PATCH v7 2/5] tools/arm: optee: create optee firmware node in DT if tee=optee X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: "tee-dev@lists.linaro.org" , Ian Jackson , Julien Grall , Volodymyr Babchuk , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP If TEE support is enabled with "tee=optee" option in xl.cfg, then we need to inform guest about available TEE, by creating corresponding node in the guest's device tree. Signed-off-by: Volodymyr Babchuk Reviewed-by: Julien Grall Acked-by: Ian Jackson --- This patch depends on patches to optee.c. Changes from v4: - "native" option replaced with "optee" Changes from v3: - "smc" method replaced with "hvc" - Coding style fixes --- tools/libxl/libxl_arm.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c index 6b72c00960..bf31b9b3ca 100644 --- a/tools/libxl/libxl_arm.c +++ b/tools/libxl/libxl_arm.c @@ -420,6 +420,32 @@ static int make_psci_node(libxl__gc *gc, void *fdt) return 0; } +static int make_optee_node(libxl__gc *gc, void *fdt) +{ + int res; + LOG(DEBUG, "Creating OP-TEE node in dtb"); + + res = fdt_begin_node(fdt, "firmware"); + if (res) return res; + + res = fdt_begin_node(fdt, "optee"); + if (res) return res; + + res = fdt_property_compat(gc, fdt, 1, "linaro,optee-tz"); + if (res) return res; + + res = fdt_property_string(fdt, "method", "hvc"); + if (res) return res; + + res = fdt_end_node(fdt); + if (res) return res; + + res = fdt_end_node(fdt); + if (res) return res; + + return 0; +} + static int make_memory_nodes(libxl__gc *gc, void *fdt, const struct xc_dom_image *dom) { @@ -933,6 +959,9 @@ next_resize: if (info->arch_arm.vuart == LIBXL_VUART_TYPE_SBSA_UART) FDT( make_vpl011_uart_node(gc, fdt, ainfo, dom) ); + if (info->tee == LIBXL_TEE_TYPE_OPTEE) + FDT( make_optee_node(gc, fdt) ); + if (pfdt) FDT( copy_partial_fdt(gc, fdt, pfdt) ); From patchwork Wed Jun 19 17:54:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 11004981 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EDEF5924 for ; Wed, 19 Jun 2019 17:55:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9CE7283C8 for ; Wed, 19 Jun 2019 17:55:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDB1F28437; Wed, 19 Jun 2019 17:55:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E6CB28426 for ; Wed, 19 Jun 2019 17:55:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hdemx-00080Q-N9; Wed, 19 Jun 2019 17:54:27 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hdemw-0007zx-7y for xen-devel@lists.xenproject.org; Wed, 19 Jun 2019 17:54:26 +0000 X-Inumbo-ID: 45dcbe49-92bb-11e9-8980-bc764e045a96 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (unknown [2a01:111:f400:fe06::62f]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 45dcbe49-92bb-11e9-8980-bc764e045a96; Wed, 19 Jun 2019 17:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Uag9/qBAWGN5CBHVHEcEymjX/oleG7d6nDRggHtb1o=; b=mkhM0QFGHJrSXzIx17RpCiqTDkLWkI3Z1uhyFRZBiQKB8Gw63Nkq1FVwEAf4kMCH563lOZXR385WgcrEb3dDzZbNkq6qPIzuBYrF8JtFmQQTMiNrCV5jJnxtfx2ow05Y/zP7Lagn/2/NkS1C620P34l7RcnCU5rB91Onn7jXxTUlyfM4zHUYgRVvC0fqIiPAFikpi+eqRm54s+hmDXG4OkyDrV3RhqVRuEGpCF33kUG2xIspVtR2aO3keTB29cktm+7lyEUWbfCUUzbCuTPR7Z6rYrd1KESDwUs9s3cgvmJiZ3ETeHqyWSttWDopO6ymS6NMn0+Y7nHev9HIl0szHw== Received: from AM0PR03MB4148.eurprd03.prod.outlook.com (20.176.214.210) by AM0PR03MB6051.eurprd03.prod.outlook.com (10.255.31.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Wed, 19 Jun 2019 17:54:22 +0000 Received: from AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb]) by AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb%7]) with mapi id 15.20.1987.013; Wed, 19 Jun 2019 17:54:22 +0000 From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" Thread-Topic: [PATCH v7 3/5] xen/arm: tee: place OP-TEE Kconfig option right after TEE Thread-Index: AQHVJsgGYa5WnTLK6UWfYJbWAI6NXg== Date: Wed, 19 Jun 2019 17:54:22 +0000 Message-ID: <20190619175333.29938-4-volodymyr_babchuk@epam.com> References: <20190619175333.29938-1-volodymyr_babchuk@epam.com> In-Reply-To: <20190619175333.29938-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; x-originating-ip: [85.223.209.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c2eb65e0-f1c3-41df-74e7-08d6f4df291b x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM0PR03MB6051; x-ms-traffictypediagnostic: AM0PR03MB6051: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 0073BFEF03 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(396003)(136003)(39860400002)(346002)(189003)(199004)(81156014)(186003)(3846002)(76116006)(26005)(6506007)(14454004)(72206003)(64756008)(6436002)(2616005)(1076003)(2351001)(54906003)(486006)(4326008)(5660300002)(36756003)(6486002)(80792005)(4744005)(66556008)(8936002)(66446008)(55236004)(66946007)(446003)(71190400001)(476003)(102836004)(68736007)(66476007)(71200400001)(99286004)(53936002)(6512007)(76176011)(7736002)(86362001)(8676002)(25786009)(73956011)(305945005)(316002)(2501003)(66066001)(14444005)(6116002)(478600001)(256004)(11346002)(2906002)(5640700003)(91956017)(81166006)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR03MB6051; H:AM0PR03MB4148.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: epam.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: wb+HJBmkmjkT6SfSmwzYSyACnswD7LZtEhLafhrEnNenrpMygP5SEdqjizQ57Aae+LiLhpHBhf6lwLudKEgKeiH12KIYRaZOteReCLJ2KbPjMcQhDyGhk8kacap+a8Cf6iotQuM+KSOJ8HlYp7NKA5W3065LMXpf9eqftH3W5128s8chI7ZDlKMqWnd3FNjxshe+0IYdWHPPF2XNBdqpZ2paogCXpEbeEgXUVfCjWWdz88hs+ZaB1D45SYG4Auwo5mWcm7Sb4z36H1iFm9JxUHpbQk9Cga5RRG2+DLJcV7umTwZsplNiNQ3iyLYihB/lpAJSr2yBpK7VGucA/DWSG6uTb29hXh/WfyCB530p7U5Oq0vdoqssWxivpekAzabRlBvOWvSzyJG3jgqYhggFo7la1OBaJNOizVhdVw/DpQo= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2eb65e0-f1c3-41df-74e7-08d6f4df291b X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2019 17:54:22.2524 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Volodymyr_Babchuk@epam.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB6051 Subject: [Xen-devel] [PATCH v7 3/5] xen/arm: tee: place OP-TEE Kconfig option right after TEE X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: "tee-dev@lists.linaro.org" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP It is nicer, when options for particular TEE mediators (currently, OP-TEE only) are following generic "Enable TEE mediators support" option in the menuconfig: [*] Enable TEE mediators support [ ] Enable OP-TEE mediator Signed-off-by: Volodymyr Babchuk Reviewed-by: Julien Grall --- xen/arch/arm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index 04d399ffbf..c2db2a6953 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -113,6 +113,8 @@ config TEE This option enables generic TEE mediators support. It allows guests to access real TEE via one of TEE mediators implemented in XEN. +source "arch/arm/tee/Kconfig" + endmenu menu "ARM errata workaround via the alternative framework" @@ -238,5 +240,3 @@ source "arch/arm/platforms/Kconfig" source "common/Kconfig" source "drivers/Kconfig" - -source "arch/arm/tee/Kconfig" From patchwork Wed Jun 19 17:54:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 11004987 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4DC06186E for ; Wed, 19 Jun 2019 17:56:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BF75285D5 for ; Wed, 19 Jun 2019 17:56:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F334285DA; Wed, 19 Jun 2019 17:56:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BC1B8285D5 for ; Wed, 19 Jun 2019 17:56:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hden0-00081M-0l; Wed, 19 Jun 2019 17:54:30 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hdemy-00080u-NE for xen-devel@lists.xenproject.org; Wed, 19 Jun 2019 17:54:28 +0000 X-Inumbo-ID: 47548714-92bb-11e9-8980-bc764e045a96 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (unknown [2a01:111:f400:fe0a::617]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 47548714-92bb-11e9-8980-bc764e045a96; Wed, 19 Jun 2019 17:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iPusLnllTHuMAa/iQEdg0Y7S7nsjfP/cC41bm+NMPS0=; b=aBHGGwUlOj1rF8fXjoWI+f+L6CgNwmp5A5cakYNIoR2YG0vhZCK0K+2ooJI2p53oiTIDigj0+yspKA9LAadYKKqZFXju9PFAdIRMc5nXivFzAwZ/DMyW7H98YLchYMJC/pGvtToF/nm/i2KoI56hOB+eY7V2z5Ma/MVqOjUxRJmZFZrHWGtr0JqRU/zO31Xvhn0q47w3t1QiWr2KmfU7KYgKNqrxRZEtlEKSs597XLBkxMpzGbu0DK5v1ruPG9wkpHSuDkgl5IE/6FkEV7UH3tw5ckEdRWs2CnkF6YHcL3JI9SNfMMse5a6GNILOiLF8D+aJ1jSDm8/cDFXjF+TVpw== Received: from AM0PR03MB4148.eurprd03.prod.outlook.com (20.176.214.210) by AM0PR03MB6051.eurprd03.prod.outlook.com (10.255.31.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Wed, 19 Jun 2019 17:54:24 +0000 Received: from AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb]) by AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb%7]) with mapi id 15.20.1987.013; Wed, 19 Jun 2019 17:54:24 +0000 From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" Thread-Topic: [PATCH v7 4/5] xen/arm: optee: check if OP-TEE is virtualization-aware Thread-Index: AQHVJsgHYgzSdRXgHUqfEmSdUVS6sg== Date: Wed, 19 Jun 2019 17:54:24 +0000 Message-ID: <20190619175333.29938-5-volodymyr_babchuk@epam.com> References: <20190619175333.29938-1-volodymyr_babchuk@epam.com> In-Reply-To: <20190619175333.29938-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; x-originating-ip: [85.223.209.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 007d3342-b0bc-45f1-0d4a-08d6f4df2a71 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM0PR03MB6051; x-ms-traffictypediagnostic: AM0PR03MB6051: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0073BFEF03 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(396003)(136003)(39860400002)(346002)(189003)(199004)(81156014)(186003)(3846002)(76116006)(26005)(6506007)(14454004)(72206003)(64756008)(6436002)(2616005)(1076003)(2351001)(54906003)(486006)(4326008)(5660300002)(36756003)(6486002)(80792005)(66556008)(8936002)(66446008)(55236004)(66946007)(446003)(71190400001)(476003)(102836004)(68736007)(66476007)(71200400001)(99286004)(53936002)(6512007)(76176011)(7736002)(86362001)(8676002)(25786009)(73956011)(305945005)(316002)(2501003)(66066001)(6116002)(478600001)(256004)(11346002)(2906002)(5640700003)(91956017)(81166006)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR03MB6051; H:AM0PR03MB4148.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: epam.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: fGO9+JpDqjTI6AdVcOOoRBdF4JYg/WoiVqs1TL45U6hekXLAeVTBnzTAuPMIZ9peoq24QQB+6lLs8sJKIlJ5SMK5dh3ODSAXVGQE+dzYJjsBiSJK4JronsnYJUcNj5WW7JIWUMcHxNNSDxBvcaM8T2TIA9bgc14rNqpwSp4XfH+GE1B52DZKZ66zgDTYj7KapnR0EFF/Iws718qOBPO5BrNCxLFC+F054E3MIfgyj1cjkFlcbHJN5ykdLwdJubmWZkPZne5qRSqWMTK68jpQaEg6pfWY0ZG+V8hc1skoJmKjapBslDD859mRa1HRWmglaxJ3u/QYIjr2mNNwKUf8nBGixVtHPw1O9XzrqJm0eyAVs0tRfPCGlfAPQnG9oxEQyAE2fW3+H7ULFNRAgzTEls5RWJNODWlDB7WFw4rQjeA= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-Network-Message-Id: 007d3342-b0bc-45f1-0d4a-08d6f4df2a71 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2019 17:54:24.5580 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Volodymyr_Babchuk@epam.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB6051 Subject: [Xen-devel] [PATCH v7 4/5] xen/arm: optee: check if OP-TEE is virtualization-aware X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: "tee-dev@lists.linaro.org" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is workaround for OP-TEE 3.5. This is the first OP-TEE release which supports virtualization, but there is no way to tell if OP-TEE was built with that support enabled. We can probe for it by calling SMC that is available only when OP-TEE is built with virtualization support. Signed-off-by: Volodymyr Babchuk Acked-by: Julien Grall --- xen/arch/arm/tee/optee.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xen/arch/arm/tee/optee.c b/xen/arch/arm/tee/optee.c index 28d34360fc..14381d6b2d 100644 --- a/xen/arch/arm/tee/optee.c +++ b/xen/arch/arm/tee/optee.c @@ -172,6 +172,16 @@ static bool optee_probe(void) return false; } + /* + * Workaround: OP-TEE 3.5 have no way to tell if it is build with + * virtualization support. But we can probe for OPTEE_SMC_VM_DESTROYED + * call. It will return OPTEE_SMC_RETURN_UNKNOWN_FUNCTION if + * OP-TEE have no virtualization support enabled. + */ + arm_smccc_smc(OPTEE_SMC_VM_DESTROYED, 0, 0, 0, 0, 0, 0, 0, &resp); + if ( resp.a0 == OPTEE_SMC_RETURN_UNKNOWN_FUNCTION ) + return false; + return true; } From patchwork Wed Jun 19 17:54:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 11004979 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AD0D214B6 for ; Wed, 19 Jun 2019 17:55:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99C1F28437 for ; Wed, 19 Jun 2019 17:55:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87D22283C8; Wed, 19 Jun 2019 17:55:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 34FDB283C8 for ; Wed, 19 Jun 2019 17:55:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hden2-00083G-Hi; Wed, 19 Jun 2019 17:54:32 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hden0-00081R-8T for xen-devel@lists.xenproject.org; Wed, 19 Jun 2019 17:54:30 +0000 X-Inumbo-ID: 48821781-92bb-11e9-8980-bc764e045a96 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (unknown [2a01:111:f400:fe0a::60e]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 48821781-92bb-11e9-8980-bc764e045a96; Wed, 19 Jun 2019 17:54:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qi7wW3mqiFR9seB4DWgPdfpsM2x2CiNtO/CadgdpxA4=; b=Fyus/mWYBzo0GwOfFySt4gXLMJqW+NYhdVI2OhQlEQL5YtPx5VReJgjXpkDaCrrlKvHv441WExFC/dR5CEc4XQZekzzdr2cGXBNgpTD1OXss8AJf0is/BUTe+3spomvRpfjP1jn7pPhRz2/Bi+A0Vv3Xk10D+aoCakpaaywgiDH1Hd8cQ8N9vP0imLpd83+trldSrHB/aDyOeOK2bPHzEkktjYJW+QmBuJe5pVWaX8jrR3F2msrhavcghscy1UR/d1w7NHbS0By0ZklkliO7rjU/O8S1+l76AlXliihIRqIatvXzJkirFEi2agk0NsNze1iy+InemTk28izVu88uuA== Received: from AM0PR03MB4148.eurprd03.prod.outlook.com (20.176.214.210) by AM0PR03MB6051.eurprd03.prod.outlook.com (10.255.31.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Wed, 19 Jun 2019 17:54:26 +0000 Received: from AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb]) by AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb%7]) with mapi id 15.20.1987.013; Wed, 19 Jun 2019 17:54:26 +0000 From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" Thread-Topic: [PATCH v7 5/5] xen/arm: optee: document OPTEE option in tee/Kconfig Thread-Index: AQHVJsgJTbER4ZRlKEOiRojFHfVy3A== Date: Wed, 19 Jun 2019 17:54:26 +0000 Message-ID: <20190619175333.29938-6-volodymyr_babchuk@epam.com> References: <20190619175333.29938-1-volodymyr_babchuk@epam.com> In-Reply-To: <20190619175333.29938-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; x-originating-ip: [85.223.209.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fc9a9a0e-872a-473f-41d8-08d6f4df2bc7 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM0PR03MB6051; x-ms-traffictypediagnostic: AM0PR03MB6051: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3968; x-forefront-prvs: 0073BFEF03 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(396003)(136003)(39860400002)(346002)(189003)(199004)(81156014)(186003)(3846002)(76116006)(26005)(6506007)(14454004)(72206003)(64756008)(6436002)(2616005)(1076003)(2351001)(54906003)(486006)(4326008)(5660300002)(36756003)(6486002)(80792005)(4744005)(66556008)(8936002)(66446008)(55236004)(66946007)(446003)(71190400001)(476003)(102836004)(68736007)(66476007)(71200400001)(99286004)(53936002)(6512007)(76176011)(7736002)(6306002)(86362001)(8676002)(966005)(25786009)(73956011)(305945005)(316002)(2501003)(66066001)(14444005)(6116002)(478600001)(256004)(11346002)(2906002)(5640700003)(91956017)(81166006)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR03MB6051; H:AM0PR03MB4148.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: epam.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: dd3EYGjQRnAhH/MdlQwOeiVFhVAf00oSOqad+vqgOBV+oBjJHr9rZTP1qo0RNATNhqDq5vrMv1Vd6zgCLcQSZGwQyXZnc/NW53cEqcgE3eMl3zIl/cPRbxj4WSgUXPFp/iAviHd4Ofe03LtHYfPq1JUbTS0EGaOI3lSYA8/im2PPUFp0TlzcXVeevMdM47GXBeC1CIlYrQu/rmqQuKqNtxHfZOpyuP8az8w7XvCGqsyTDZbAo1F8Hy0khQmB2HDgSKOoZRTYEoGGq2peRZlA8r6Ex0+7te+lxUUfeI8GnpUwRlWdG0YtI3wb3hriahzZ13ypDGzkT5tcXBhlwxlNjf4NtFAMj4f+VvTStcjLKsuzv8GD91OOO+0hrhJxsSo7l43TbQ3UVcF0UnYPnUgq0ztnG1in/6Y+T7xDNSv0BiA= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc9a9a0e-872a-473f-41d8-08d6f4df2bc7 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2019 17:54:26.7757 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Volodymyr_Babchuk@epam.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB6051 Subject: [Xen-devel] [PATCH v7 5/5] xen/arm: optee: document OPTEE option in tee/Kconfig X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: "tee-dev@lists.linaro.org" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add basic information about the OP-TEE mediator and note about dependency on virtualization-aware OP-TEE. Signed-off-by: Volodymyr Babchuk Acked-by: Julien Grall --- xen/arch/arm/tee/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/arm/tee/Kconfig b/xen/arch/arm/tee/Kconfig index 5b829db2e9..b4b6aa2610 100644 --- a/xen/arch/arm/tee/Kconfig +++ b/xen/arch/arm/tee/Kconfig @@ -2,3 +2,8 @@ config OPTEE bool "Enable OP-TEE mediator" default n depends on TEE + help + Enable experimental OP-TEE mediator. It allows guests to access + OP-TEE running on your platform. This requires virtualization-enabled + OP-TEE present. You can learn more about virtualization for OP-TEE + at https://optee.readthedocs.io/architecture/virtualization.html