Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2649732pxk; Sun, 27 Sep 2020 16:41:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNbSMCxuz/jSZJbDQX+Asd6VZRmFJitX2YkAxLo1pZ0O3H83wY9uOHTnH5yHrKtkQuAXeO X-Received: by 2002:aa7:c154:: with SMTP id r20mr13097744edp.337.1601250108026; Sun, 27 Sep 2020 16:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601250108; cv=none; d=google.com; s=arc-20160816; b=VU1cO3ExC+NAqQx/laZTd+GUL5qRBOtDGzBv4rncTZz+TyhEpKf2JmCcF06iedeiWr ZZjgK2jUtcL/aRFWowU9N+fEkZmhMo+HUUXbUD5rmbMNAABmfBg2B5PfmlPE31FE1rNO 38J5Kn5AiXkWoeyQ82arj+9Af7EesM5bk637RWyzjSuDmc7JfCAlUNyevK7aAH+jYeva O4aypQV+T5xm05PmD3pObtq6Y0EzFEdAdwVETA83UgD+VL4Z76EqHnlnNHLVdq3EefoG dWYKKYEu+3B1e1YqfMBP0vpAk6+4IdCRF1gN0QsLNIVDo8QOSl5WaxN8f9zwZWGCE/Sy +MXA== 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=de8wVQ2AHD0mLy0Uh/acoWI1J9K5FWEiHFp7JvGyijs=; b=0YBnKyoRL78PTBP7BfKzflnY0kt8SRgLFdIAMlKywnHV2XZNKcvoe9RIknmYNUMAyQ vVHU/VY1pjb1kj2U1u4CODoeHBPC+T6NhZiWtQm7v8DPge3aWqFtrmJKxD26/KsTNMtI 1z3K+Jy3FustEUE41U0mSsy3QeF5HmvIgUhu21KYes3t4yzBkFlYTb8waQoAnPPN1Lqp gsJNjixzw5RDLDsaxg+htPor8AORdALq40qk6mQ+bNif7ACSKpdDxt7E8sGGxH2Dwrx6 fmDaTmFZMNWBXzUnUg9KYKrrS65a+auxDObin4D7ElNe5cXqQ7qDR7hdvZ6+ldSCcFYD yH6A== 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 n17si6186207eje.585.2020.09.27.16.41.24; Sun, 27 Sep 2020 16:41:48 -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 S1726526AbgI0XhF (ORCPT + 99 others); Sun, 27 Sep 2020 19:37:05 -0400 Received: from mga05.intel.com ([192.55.52.43]:7293 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbgI0XhF (ORCPT ); Sun, 27 Sep 2020 19:37:05 -0400 IronPort-SDR: G8o5wPLxZD7V09inwxhr1DOBS5QLO7kseR+9jHxGhPX2dz5hwsZPc98R9U7FPlO5PixAbP8tAX wVqgbbJRFhfg== X-IronPort-AV: E=McAfee;i="6000,8403,9757"; a="246658430" X-IronPort-AV: E=Sophos;i="5.77,311,1596524400"; d="scan'208";a="246658430" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2020 16:37:04 -0700 IronPort-SDR: g3DNNPNqPM8zIlRN2HlJVhyzyTKQy7usmCRG4fEf/zRgameEqlQd0mgWhptwPNG3dYAfNnyUnn 8uDyLDnIb4tQ== X-IronPort-AV: E=Sophos;i="5.77,311,1596524400"; d="scan'208";a="488336523" Received: from memara-mobl.ger.corp.intel.com (HELO localhost) ([10.252.49.157]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2020 16:36:58 -0700 Date: Mon, 28 Sep 2020 02:37:00 +0300 From: Jarkko Sakkinen To: Borislav Petkov Cc: x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson , Andy Lutomirski , Jethro Beekman , Cedric Xing , akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, asapek@google.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, haitao.huang@intel.com, josh@joshtriplett.org, kai.huang@intel.com, kai.svahn@intel.com, kmoy@google.com, ludloff@google.com, luto@kernel.org, nhorman@redhat.com, npmccallum@redhat.com, puiterwijk@redhat.com, rientjes@google.com, tglx@linutronix.de, yaozhangx@google.com Subject: Re: [PATCH v38 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call Message-ID: <20200927233700.GA4450@linux.intel.com> References: <20200915112842.897265-1-jarkko.sakkinen@linux.intel.com> <20200915112842.897265-22-jarkko.sakkinen@linux.intel.com> <20200924180407.GO5030@zn.tnic> <20200925010031.GH119995@linux.intel.com> <20200925082807.GG16872@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200925082807.GG16872@zn.tnic> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 10:28:07AM +0200, Borislav Petkov wrote: > > > I can see why you would write "TCS" though - there's a thread control > > > structure thing too in that patch. > > > > Renamed. > > See Sean's reply. I did not get Sean's reply, and neither can find it from lore: https://lore.kernel.org/linux-sgx/20200915112842.897265-1-jarkko.sakkinen@linux.intel.com/T/#t > > * typedef sgx_enclave_exit_handler_t - Exit handler function accepted by > > * __vdso_sgx_enter_enclave() > > * @rdi: RDI snapshot > > * @rsi: RSI snapshot > > * @rdx: RDX snapshot > > * @rsp: RSP snapshot (untrusted stack) > > * @r8: R8 snapshot > > * @r9: R9 snapshot > > I'd say here: > > "The registers' content is the snapshot made at enclave exit." I'd make that a description and take away individual parameter descriptions. Is that fine? > > Also, I renamed 'r' as 'run' in some places. > > > > End result: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-sgx.git/tree/arch/x86/include/uapi/asm/sgx.h > > > > I'm wondering this sentence: > > > > "The calling convention is custom and does not follow System V x86-64 ABI." > > Yeah, I was wondering what that meant too. I'll refine that one based on my own and Jethro's feedback. > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette /Jarkko