Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2401218pxb; Mon, 19 Apr 2021 05:03:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn4SmSq87cA5c/RxgiR4h6nnVWNnebzCUq7ZsviA1ldkYxI920aP4Z5bPmG8RB7HEByOwN X-Received: by 2002:a17:906:1a0d:: with SMTP id i13mr20953954ejf.197.1618833796759; Mon, 19 Apr 2021 05:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618833796; cv=none; d=google.com; s=arc-20160816; b=SfOK7NIUe/RwvRMVfxgGOqKP4R16+0mSIwJlsjQw4q6qftPImCn+85XBz4adaIg4EU JgqTP8MYLXjjDhesQZjL+dKNDTtGi3X2BviwMGNJoQOo9m6ThuQcaQNOrLFIfBzv/85e BKsHauO7kC9O4DPKCQwV/xT0m02uXqywInfwG2J6aE7tUurvZYkrJPSmWWMLYvp40dxb BjhGUAFhjI12T2T9ET+g3JM1FbfoniuzbQGRi+YZjRcT5q0w+9woYgqlprFayEXYwtHJ IxrRUallP5qPyv1zQL/y+1vD17//fd1+ynBixD15tRDeZf1BtFj8htx+X6zCVrym02LD 4yxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=6kCO0QR2R8HviZGunpxAtpIV9RKTp1yH+qmgYAhZSns=; b=TcscljIrxoolcQroQaq0TvUDnKX2j95j7pQ/HUZQc6Vz9F0WLiTJIUNL07Wyde7O6x loCZVpRw0q9oL/SxpGvh903DZZ/apvuHwKVy8d7PGB+JBF/riX62ICUpptiU0KfJ++x4 3tujxVWADrthQ4olOPVgoZzXzWW41YEn0djB9SR/9fsLqmAU/E9YqdMgxKBeevLa6XYT //SG0PsjeYe5B40OsgCp6tOEPnmpbz58IWJXP0cbrVo8UgPBUMu7eXAH/JN8PSzuMbFl 6tlQPAJU7WTYbyFwZ4xhfCplplrHlLLa7OMANS/15/RTCeGnEeBV0V+71oSPxTxWplzd EYjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si1533708edt.522.2021.04.19.05.02.52; Mon, 19 Apr 2021 05:03:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238769AbhDSMCH (ORCPT + 99 others); Mon, 19 Apr 2021 08:02:07 -0400 Received: from mga17.intel.com ([192.55.52.151]:30078 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232272AbhDSMCG (ORCPT ); Mon, 19 Apr 2021 08:02:06 -0400 IronPort-SDR: 37+PFCbMHU6rGzXREAmkEwuJA1VOULdSvvx8kGEjl4rJTATa7slOYAdXQFRE8bchhGYvN+7FHq /OL0v/1NNHzQ== X-IronPort-AV: E=McAfee;i="6200,9189,9958"; a="175419055" X-IronPort-AV: E=Sophos;i="5.82,234,1613462400"; d="scan'208";a="175419055" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 05:01:36 -0700 IronPort-SDR: ++WMBT+IG89dr/8Un5PoXtGDoUc+rRZrGd7ee2yOatMloeZMsnARRHiG4d5Wo4xkj/1RgfR8kj tUZ70kS/gXxg== X-IronPort-AV: E=Sophos;i="5.82,234,1613462400"; d="scan'208";a="534113285" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 05:01:35 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lYSaq-005UAg-QV; Mon, 19 Apr 2021 15:01:32 +0300 Date: Mon, 19 Apr 2021 15:01:32 +0300 From: Andy Shevchenko To: Jens Wiklander Cc: OP-TEE TrustedFirmware , Linux Kernel Mailing List Subject: Re: [PATCH v1 1/1] tee: optee: Provide special parameter field for UUID values Message-ID: References: <20210415145857.34183-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 19, 2021 at 01:35:51PM +0200, Jens Wiklander wrote: > On Thu, Apr 15, 2021 at 4:58 PM Andy Shevchenko > wrote: Thanks for review, my answer below. > > struct optee_msg_param_tmem tmem; > > struct optee_msg_param_rmem rmem; > > struct optee_msg_param_value value; > > + uuid_t uuid; > > It's nice to get rid of the cast above, but I'm not that keen on the > change in this struct. This file defines the ABI towards Secure world > and adding dependencies on external complex types is a larger problem > than the cast above in my opinion. I understand. So, the cast is simply wrong there. Can you add a comment above that cast to explain that and make it is marked as FIXME? Because there is no guarantee that internal Linux types can be 1:1 mapped to the ABI of something. What you need, perhaps, is a middle layer function that will copy u64 data to uuid_t or so. Also, u64 is not an ABI type, why the respective __uXX variants are not in use? -- With Best Regards, Andy Shevchenko