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

[Xen-devel] [PATCH 0/5] arch/arm: optee: fix TODOs and remove "experimental" status

  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Fri, 23 Aug 2019 18:48:37 +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=yb87uhhnNZkJ+VEbIb/cDZ9setpPuf6DZRwUiaIt7hI=; b=DaufWc3OMIDacgHLQFrW53srZ4KkUPZz4Hhicc/UUbHgDnmEHpALX2Dc0qk7dP+8YUnCKOLh8p1PbNIZ/M93+7XzgS674YDX/FlwRlBaflS/27k5ematl2ZY6UGsmZW1g06raqUJx0FXsfLUx8CbI0RreV3i0x55NOrBkhfA8TfYe3EAIU3yfEr1/001r5mqAPjnhBot9mj0P1VaaNFWXjYpj3kwQTQaYe3rymYBHzMayGtoiWRoWgA/IOAt7XMZjetbiEHl6pT77f0nqpCfKP85oRWDCiH45lJrd6dXCImqIYTziAfyVKYc760VswLNO/Pt85JWJE//m6VYcGQWrA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kBjRYSv97eeV4ns9jaDSFBKPdsK2Udc3BjjwySv8RO/qetJKkpDac3i5Su10hcynOtkca+iQnGn5toD5O/jix73t64lJnhLEcfnSEa94ga/+d71NMTm/3ORsc0Zlr0FXye0E1F4fjkQ8N958BDlQCQfs6JkjkNAQf3AROHqLV0WUhKYoF/ZAjjGnlfE6Fj5rHTO0gDjb4mtoIwMSCGIIUc5L+VLccSrgZwhHs5hojnhtmNhT5VzYYDN/nTgMagPar2HdpWcWnkyAlPUGXdyUuaaTBreoYv9zNhIOFETVTHdRWjhOEcKro0Db4ogC/Ufh+c7LbJXhqUwlL3pPfy4XZw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@xxxxxxxx;
  • Cc: "tee-dev@xxxxxxxxxxxxxxxx" <tee-dev@xxxxxxxxxxxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 23 Aug 2019 18:49:01 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVWeNfPLX4B+V83EWZmLSwU6JTbQ==
  • Thread-topic: [PATCH 0/5] arch/arm: optee: fix TODOs and remove "experimental" status


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

Volodymyr Babchuk (5):
  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 share buffer translation error
  xen/arm: optee: remove experimental status

 xen/arch/arm/Kconfig     |   2 +-
 xen/arch/arm/tee/Kconfig |   2 +-
 xen/arch/arm/tee/optee.c | 237 ++++++++++++++++++++++++++++++---------
 3 files changed, 184 insertions(+), 57 deletions(-)


Xen-devel mailing list



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