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

[Xen-devel] [PATCH v3 0/3] 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: Tue, 24 Sep 2019 15:46:42 +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=8+j0c3WfffUmA4jOTemDuBF/zJS7AGl4uEvnO1trQcc=; b=gjOaHV1kc3ybmF8L3fSXVwQgo1SCFi6375uZy2BD+TkriZH63j6YbqGKLJV5s6Hw4vIywXdBNpoj6vlDHPdru24juL6umSI+8pe4Mt6w6rQ+EnratNfeOytIars77g9aiezVn/+JkUehkSpVJFrfOHvRTFNqFSTDnBLq3j9bqB6o15p+BYx2pqqjdr61vGMCu47Xpke3fLRbZituWRgw/vaedx4IChoiaAJIW1JgCSEZRq2UsRJpo7FiTbS71AaM6UXm6mOT3QDsgyySYK2AxLe3gKiNv47ug57RERL1L5eqZPHoQKr9qhdQ3bAylXciUg0XgxcqwIAePnmqyJ2CUg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zv86U92nMfYSbC48G0QtMifXb4+VhqxtcQk46kMmkwjok29HGaq+u/M9ClHMFnO7UXM9GYo//H2Quf4zr4epS8WTlhClHTc31rTm5zZpH7XtLaRBiy2SjJq1svyAm08zLesjJQQYegxVfYB1uuIpYBnpRkDO4tBeH4c1uUQ/w/9eaB3YynZP9J48ihe5mkEe0O1k9RgrRxCm7idhQ4fr7VGXSsfD2DmCJjNYK6Qe+iGGSm0AAVT3CcE867mpcaWYZWDJf70glFK6WzVc+YI5opz42uP7CNeui8UA1FjLz9270Cub57wgI60CihFoG83UcALFhk+c8P3mmtweDPOI7Q==
  • 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>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 24 Sep 2019 15:46:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVcu9DeZmnY3z9Z02/+hcfLyj3Ng==
  • Thread-topic: [PATCH v3 0/3] arch/arm: optee: fix TODOs and change status to "Tech Preview"

This is the third version of maturing the OP-TEE mediator patches.

Changes also can be pulled from [3].

Changes from v2:
 - The following 3 patches were commited:
 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
 - Other changes are described in the corresponding patches

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
[3] https://github.com/lorc/xen/tree/optee3_v3


Volodymyr Babchuk (3):
  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 |   9 +-
 xen/arch/arm/tee/optee.c | 173 ++++++++++++++++++++++++++++++++-------
 3 files changed, 151 insertions(+), 35 deletions(-)

-- 
2.23.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®.