Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3034544ybh; Mon, 16 Mar 2020 14:32:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvQEidUi6wNZ7abiXwW9dKLpzFFYxou6+IeL1buCBLgHGVZq9XSEvhTTnyui1p0ATytFaCc X-Received: by 2002:a9d:6d87:: with SMTP id x7mr1093547otp.233.1584394358548; Mon, 16 Mar 2020 14:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584394358; cv=none; d=google.com; s=arc-20160816; b=BwlPlSFnkwLgr7r0LU1E32y4Tr6EBmc5wv5/Dp3NErfLiULi2EHRKGuk9NDdy6BP1t 5kOAq5zkPeLZQpZp6ofpp4bCFzQLeN4DlafGlI9ulo2z0KKJUjfBrqnHQh32AI2HqvrC 56c+gMo90PD4FQ7t/Aq7T39+CWyh8U63pfIVl/BFMFWKjJOJoTTgy3ZaHBZaHUirTPSP TkuGCR0SeniGJLI+n2WAysHRxRtQ+BBwBDZUk+8bRvgfHOjcMvKQ8c6vT08CxSRv/Ey4 Pkmus7LdI6A6626baIiMFbpjq9NKV+L0iHZ3ofWUoKGOwZr70qz5m13s+o5SvvRZQI4M tMJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:ironport-sdr:ironport-sdr; bh=dh98nlQBnS8fKXnHu+z1cToplI4XBll2EictQnliERQ=; b=GPfDTlfw8FggaGvkfhwpcqmyMFK2ehs1VLsliUkEChlIZWUJNp5M3MW8uVLZYf+5TU RQf6LdYy3zPo29L3TnsRk65amvb5JFwgCaCPCaRxmYDKrtdZr8uSIDxJVKlVQhCpsUH2 sSFh6ckjSMVJ+ODZB2e6LUgotx9ixh74qCUKcGDol1EgRrPYUSvRRComzfHn8+1RLk8P 2mA1nEcAuDyChX21UUvO2umh1dUXgY+Ek23iOG4ePlc1yB+x/LzCErHOq5rKj1I0JvvT FEjK4iCP/l+vVwWyYVgLNrl08p4gG07R8Pgtk44lC5BvUHOUcq4Pdv1c98ryJs69UZYO g0Qw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b9si751941ots.148.2020.03.16.14.32.24; Mon, 16 Mar 2020 14:32:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1732693AbgCPVaI (ORCPT + 99 others); Mon, 16 Mar 2020 17:30:08 -0400 Received: from mga18.intel.com ([134.134.136.126]:6232 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732567AbgCPVaI (ORCPT ); Mon, 16 Mar 2020 17:30:08 -0400 IronPort-SDR: +Dc5zwygM1wkp0rLJA0xqpbWtEwvAHI/d5SWbG8gpU/Xzja9MMCeXtPzYVLP/Uz3yeGewW9vxV NNBPjKjFbn6Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2020 14:30:07 -0700 IronPort-SDR: AIMDdKRJtMZydTFlW4tt9zT6zaAKwOMzVPMm2h5MaPSCZKm4+n+PU9YNAwbg2et54nQCTOpvaI 4G2Q/NqGsB+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,561,1574150400"; d="scan'208";a="244273851" Received: from oaizenbe-mobl.ger.corp.intel.com ([10.254.149.199]) by orsmga003.jf.intel.com with ESMTP; 16 Mar 2020 14:29:52 -0700 Message-ID: <11e9de481f37a5160fe0d82dcbd7beb9d100748d.camel@linux.intel.com> Subject: Re: [PATCH v28 21/22] x86/vdso: Implement a vDSO for Intel SGX enclave call From: Jarkko Sakkinen To: Nathaniel McCallum , Jethro Beekman Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, dave.hansen@intel.com, "Christopherson, Sean J" , Neil Horman , "Huang, Haitao" , andriy.shevchenko@linux.intel.com, tglx@linutronix.de, "Svahn, Kai" , bp@alien8.de, Josh Triplett , luto@kernel.org, kai.huang@intel.com, David Rientjes , cedric.xing@intel.com, Patrick Uiterwijk , Andy Lutomirski , Connor Kuehl , Harald Hoyer , Lily Sturmann Date: Mon, 16 Mar 2020 23:29:51 +0200 In-Reply-To: <20d3cc40d559a854a7984543acdacb61a2d51b8d.camel@linux.intel.com> References: <20200303233609.713348-1-jarkko.sakkinen@linux.intel.com> <20200303233609.713348-22-jarkko.sakkinen@linux.intel.com> <20200315012523.GC208715@linux.intel.com> <7f9f2efe-e9af-44da-6719-040600f5b351@fortanix.com> <20d3cc40d559a854a7984543acdacb61a2d51b8d.camel@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.35.92-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-03-16 at 23:27 +0200, Jarkko Sakkinen wrote: > On Mon, 2020-03-16 at 09:57 -0400, Nathaniel McCallum wrote: > > For the vDSO, only marginally. I'm counting +4,-2 instructions in my > > suggestions. For the wrapper, things become significantly simpler. > > Simpler is not a quality that has very high importance here except > when it comes to vDSO. > > At least it is not enough to change to vDSO. What else? ~~ the In any case, where I stand is that the vDSO implementation itself is exactly how it should be. The process to get it to this form was tedious. Now we have a form that the known userbase can live with. The documentation sucks, agreed. I think by fixing that this would be a wholelot better. /Jarkko