Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3898357img; Mon, 25 Mar 2019 21:54:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTtW88eWu4c15gKds+9Qvj3fqpbHXusjwNj9WOunZuNr3eGHuf0D4qIMsP4K0jv0W8SjTU X-Received: by 2002:a17:902:2947:: with SMTP id g65mr29005051plb.258.1553576075800; Mon, 25 Mar 2019 21:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553576075; cv=none; d=google.com; s=arc-20160816; b=Ifq80xKdd626SrZGV7QSAPxPl2Mylv5iEPfk2+Gpk8jykReJpt5J7f5UNk/aDE8DLp gMt9Iz/+n5qESxr9ZPHputPKaHp3RzEewl7UFHUTYWxdi1R8tKJiHJT00pNVXQSDaUvp qeHtnWoJBIHtmtB4cPhqOyZ1rO4WsFKo0QdV6AEzc5r4hKzzlEcFCU3KAIQy7jIbS72/ RkS9Cqj+Kf7ny/rxdtuAZ7w4652Ixb8J/N8zfAU85HXa6w+j3FFs/olXNJJDnc6/JIAn rCB2fF6JHUudpak1LnuieK5oOZsqXRmSFVHKGsqawWMGrjqxqmBXFj/xOl2n/gB72HVO 52Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=6+3cMkCPS93q01mrx98/2vJkn84/2Ea+YtgXXvxAA0I=; b=oWdMbaAtQyDsTphPQtzIP9SDOlZRD+hiLh1J14ZN0nOpexR7eLv3AZFvSETxFZafi5 y4ZFEDCt8XjV0PPFss9l9KQyBObTlCS+kF1HmAOCUDi0QjyzCoRFnkXTA1usKYh7CvNH xtgfD0WpMJkMmUuLKiFpvITVpIfchoGwqt5TzhxePrBzmSGmSwMXEEubX4JqjJFV23Hl RddwJ9MbC2jDeIXGy8iMsaytZ26/m1IbQLNik1v8JGD+EfYNDKzemZlDSFkuPwkPP+87 ZgpJ4fyuEr5JBIDJQ822u8uWf5CbxS7DZdAetPeoOx1LvU/UDSC4DPAmrWwvzHqhGe6U lbmw== 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 u9si15400516pls.34.2019.03.25.21.54.20; Mon, 25 Mar 2019 21:54:35 -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 S1726386AbfCZExj (ORCPT + 99 others); Tue, 26 Mar 2019 00:53:39 -0400 Received: from mga05.intel.com ([192.55.52.43]:11430 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbfCZExj (ORCPT ); Tue, 26 Mar 2019 00:53:39 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Mar 2019 21:53:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,271,1549958400"; d="scan'208";a="158406275" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by fmsmga001.fm.intel.com with ESMTP; 25 Mar 2019 21:53:38 -0700 Received: from orsmsx154.amr.corp.intel.com (10.22.226.12) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 25 Mar 2019 21:53:37 -0700 Received: from orsmsx116.amr.corp.intel.com ([169.254.7.78]) by ORSMSX154.amr.corp.intel.com ([169.254.11.183]) with mapi id 14.03.0415.000; Mon, 25 Mar 2019 21:53:37 -0700 From: "Xing, Cedric" To: Andy Lutomirski , "Christopherson, Sean J" CC: Jarkko Sakkinen , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "linux-sgx@vger.kernel.org" , "akpm@linux-foundation.org" , "Hansen, Dave" , "nhorman@redhat.com" , "npmccallum@redhat.com" , "Ayoun, Serge" , "Katz-zamir, Shay" , "Huang, Haitao" , "andriy.shevchenko@linux.intel.com" , "tglx@linutronix.de" , "Svahn, Kai" , "bp@alien8.de" , "josh@joshtriplett.org" , "Huang, Kai" , "rientjes@google.com" , "Dave Hansen" , Haitao Huang , Jethro Beekman , "Dr . Greg Wettstein" Subject: RE: [PATCH v19,RESEND 24/27] x86/vdso: Add __vdso_sgx_enter_enclave() to wrap SGX enclave transitions Thread-Topic: [PATCH v19,RESEND 24/27] x86/vdso: Add __vdso_sgx_enter_enclave() to wrap SGX enclave transitions Thread-Index: AQHU3zmquZHDGSY4XUWmggeyxtSmi6YU12fwgACBcQD//5sEUIADt/WAgADIIJCAAMRtgP//souwgAM2LoCAAGNgAP//0r3A Date: Tue, 26 Mar 2019 04:53:36 +0000 Message-ID: <960B34DE67B9E140824F1DCDEC400C0F4E85FABF@ORSMSX116.amr.corp.intel.com> References: <20190320162119.4469-1-jarkko.sakkinen@linux.intel.com> <20190320162119.4469-25-jarkko.sakkinen@linux.intel.com> <960B34DE67B9E140824F1DCDEC400C0F4E85C484@ORSMSX116.amr.corp.intel.com> <20190320191318.GF30469@linux.intel.com> <960B34DE67B9E140824F1DCDEC400C0F4E85C5AB@ORSMSX116.amr.corp.intel.com> <20190322215903.GE12666@linux.intel.com> <960B34DE67B9E140824F1DCDEC400C0F4E85E481@ORSMSX116.amr.corp.intel.com> <960B34DE67B9E140824F1DCDEC400C0F4E85E989@ORSMSX116.amr.corp.intel.com> <20190325180349.GF31069@linux.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTA4OWJlMWItN2NmYS00Zjc4LThkOWMtZDcxZDIxOWZlNDAwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTUkxQ2F0dGs4YkowXC9LSENrRWlwWjVPTjg1ZGZscjhsMXJCXC9XQnJ2R09ldGcxWExrV3BNcTNhMXlLZHQxajdqIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBPbiBNb24sIE1hciAyNSwgMjAxOSBhdCAxMTowMyBBTSBTZWFuIENocmlzdG9waGVyc29uDQo+ IDxzZWFuLmouY2hyaXN0b3BoZXJzb25AaW50ZWwuY29tPiB3cm90ZToNCj4gPg0KPiA+IE9uIFN1 biwgTWFyIDI0LCAyMDE5IGF0IDAxOjU5OjQ4QU0gLTA3MDAsIFhpbmcsIENlZHJpYyB3cm90ZToN Cj4gPiA+IEFzIHNhaWQgaW4gbXkgc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