From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D77EC433E0 for ; Tue, 2 Feb 2021 21:58:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E448664F7C for ; Tue, 2 Feb 2021 21:58:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234261AbhBBV55 (ORCPT ); Tue, 2 Feb 2021 16:57:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:57834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233881AbhBBV54 (ORCPT ); Tue, 2 Feb 2021 16:57:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 07E0464F9C; Tue, 2 Feb 2021 21:57:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612303035; bh=aS7gJ5FXwVdLp47lueJyjeLHCdr7uQO+jexT6jY0RkM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IW+8UN9J5T4F/W9W2vYEL5Fw2H3gCHmzArnfIk5p8xjxJjfS7sGP11shmnj6mtG/L rlFzsWNN4zvJ2+HSalQeHwubK7GbcLB3+TzwRSeSLcnRfAO+qZPJwox+xw3zWpywqZ alTKe1nMC62CJA2OxA/XaeqkLiBmT+xGptEyX2Qul77FQ1fzWjQIUbB5PGS4f8+Va/ H9/ZCPeV36KOieJynnw7JJXAhufRkg7YcXCNP58gjW/1KPUS+FnCf6CgC6LFHS9GL6 pg+LB6egoL8QEAvQzqR3txPAchZirQ2YB9Z+oV6B/g6wiwTbmZJEOJBxz7GZFS9Qus tVzYwDTdy3DOw== Date: Tue, 2 Feb 2021 23:57:08 +0200 From: Jarkko Sakkinen To: Tianjia Zhang Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Sean Christopherson , Shuah Khan , x86@kernel.org, linux-sgx@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jia Zhang Subject: Re: [PATCH v4 4/5] x86/sgx: Allows ioctl PROVISION to execute before CREATE Message-ID: References: <20210201132653.35690-1-tianjia.zhang@linux.alibaba.com> <20210201132653.35690-5-tianjia.zhang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210201132653.35690-5-tianjia.zhang@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org On Mon, Feb 01, 2021 at 09:26:52PM +0800, Tianjia Zhang wrote: > In the function sgx_create_enclave(), the direct assignment > operation of attributes_mask determines that the ioctl PROVISION > operation must be executed after the ioctl CREATE operation, > which will limit the flexibility of sgx developers. Please write acronyms correctly. It's not 'sgx'. It's 'SGX'. Who are the "sgx developers" and how do they benefit from this? /Jarkko