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

[Xen-devel] [PATCH v2 0/6] arch/arm: optee: fix TODOs and change status to "Tech Preview"


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Wed, 18 Sep 2019 18:50:48 +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-SenderADCheck; bh=0Ili6GR/gqyWQWG2AoYUt7R83ZmHOeSQjsJ8GDuCqVY=; b=ao294wguwSrP3JRgN/SmCAmSQv0/6f5/QyRdMxj7d2GO5tFy7QuC44YmmRS4KCI7H0vGxLKTku3ipvPgU55Q4zSH5h7CVPrwyVnvSVqu7/9nFDzXz+qtccqVgyOpIgA3VD01WcNXR49IoRSAJvX7iHw50yfBa+6jHum3D7EvYzc+s7e9ffaAzTDXD2guVRgoAgkPisQinovg1Z1NpXrK2agi23aXBVKkw2f6ITC7sL2MJ9OuIXe23SLsGCTi/Zz34OPstWg4QQR+Z2Pt7/0/rsRQ7wCUegKZKp0w/CRKEYJUFDoCUpgo8UUGuBYloVo3zPxz4cPGRNwkxpy9HsrSHA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nAtyTEIVaax5cIRG/jOlISmCzulHeQjB4SGjU6Xd1diji9y2Q4FkWvB49rdL5NJPTtyupjO0arRERBdcSyjZljBolf+3MpPgKa9fV9m17D4rq3YaelfQ+2ZszuCrfNQTZCNvdUjBkSyf5u9D7BUCdShj+J1pQsty/1BwNUnMUM3xkHZijM9W37SCD34dwKPYjev3rHJeTS4K3lcVBu9lfZMzSaqMWihcDWgCYPeSwn8XbWjz41G0nt8bRc1Gw5SHCW4jl45dnX/aQHbyZWiIuHkYVz7dGmH+Cx9ZPia2yK60iUQhmgwf8WWH0Evr0B2ZRM/8QzIppT1KE9LEJDkmgA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@xxxxxxxx;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, "tee-dev@xxxxxxxxxxxxxxxx" <tee-dev@xxxxxxxxxxxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 18 Sep 2019 18:50:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVblH8i61pl6vNQkm74GnHH+XmdA==
  • Thread-topic: [PATCH v2 0/6] arch/arm: optee: fix TODOs and change status to "Tech Preview"

Hello,

This is the second version for maturing the OP-TEE mediator.

Changes also can be pulled from [2].

Changes from v1:
 - Added patch that updates SUPPORT.md
 - Instead of removing "experimental" status I changed it to "Tech Preview"
 - Other changes are described in the corresponding patches

Cover letter for v1:

This patch series fixes various unfinished items in the OP-TEE mediator.
Mostly this is about limiting resources that guest can consume. This
includes both memory and time - how many buffers guest can share with
OP-TEE (this uses Xen memory) and when mediator should preempt itself,
to make sure that guest does not stress scheduling.

Apart from this, there were one case, when mediator's actions might lead
to memory leak in a good-behaving guest. To fix this issue I had to
extend mediator logic, so now it can issue RPC requests to guest in the
same way, as OP-TEE does this. This is useful feature, because it
allows to preempt mediator during long operations. So, in the future
it will be possible to remove shared buffer size limitation, because
mediator can preempt self during buffer translation.

This patch series can be pulled from [1].

[1] https://github.com/lorc/xen/tree/optee3_v1
[2] https://github.com/lorc/xen/tree/optee3_v2


Volodymyr Babchuk (6):
  xen/arm: optee: impose limit on shared buffer size
  xen/arm: optee: check for preemption while freeing shared buffers
  xen/arm: optee: limit number of shared buffers
  xen/arm: optee: handle shared buffer translation error
  SUPPORT.md: Describe OP-TEE mediator
  xen/arm: optee: update description in Kconfig

 SUPPORT.md               |   4 +
 xen/arch/arm/tee/Kconfig |  12 +-
 xen/arch/arm/tee/optee.c | 259 ++++++++++++++++++++++++++++++---------
 3 files changed, 213 insertions(+), 62 deletions(-)

-- 
2.22.0

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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