Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp14635img; Wed, 20 Mar 2019 13:00:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwg1jTelokxCLBuwViZDkW/Gt8o+lKn7nSFrodc6yAWGMTK/FQ7z0sKyJcFT5qxiYQ92SFF X-Received: by 2002:a17:902:9306:: with SMTP id bc6mr9607757plb.59.1553112000409; Wed, 20 Mar 2019 13:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553112000; cv=none; d=google.com; s=arc-20160816; b=b+wJaEN4J29ol8zLRK93TrWMKpy6+3SsJLFLMRglvu8zimrALb72LxSvHgsjG/zekk Js3mh38Q/dBZcwqlXMnA5tUL0WhiMoxa5hvG3xnV0PeZ5ArEvQcVkdG1/rwCvsHgT/l0 nOSHXh0gy3oobggTY8oPdu5fQPBcsb6ik9U3oPXMclU6xWzY0XOQnWq2YnD1yntWmy2P fYScHviDSkE9WIysFky9D2RY2x+HBisDYglwk6XBUJbIfFQol76PHGsUvotDSLAAMjCy EALbcTq5NuGdbYYBl0NWWkV8/WYNnkVhr3AALpw29So/fqMeDP2NL51a/11dIFAlX3NU wQHA== 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=xrLseemKxjWOpT8SoSkRY+zWCdXy0mDg8WKcrA0+cVE=; b=m0PhDj8DNAzljFBVRptKfZz+RTbya3sKewrT1sl/BBaars4fxrdQeqAx4IWpp9OuwO Jov8rpk0zsPYjpt8jzNDZMSbO47lkp5eTF4BPSH86QHLeOTG6yinXkm0x2CPi32d6Jxm +OpuYut/L3CIe8oEBETG/auhydov/hKZSDSErggC5Ldo+f2g2kGWtuWb7coR2qsgclZr kaFwZBAOrt3g0bMl5pQWCFuNWriI6sODC7KH2waw3o7UtYvB5hEhPIm3En5YVBvxMcP/ z0lbd1VdTJVHLMvmrxQdpt9skswQMc4Q0EW/gjsTn9EDhf8wRXfGIJ0LCs3Uvq87oUuC 5V9A== 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 a72si2347714pfj.216.2019.03.20.12.59.45; Wed, 20 Mar 2019 13:00:00 -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 S1727265AbfCTT64 (ORCPT + 99 others); Wed, 20 Mar 2019 15:58:56 -0400 Received: from mga07.intel.com ([134.134.136.100]:64215 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbfCTT64 (ORCPT ); Wed, 20 Mar 2019 15:58:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Mar 2019 12:57:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,249,1549958400"; d="scan'208";a="127167178" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by orsmga008.jf.intel.com with ESMTP; 20 Mar 2019 12:57:53 -0700 Received: from orsmsx116.amr.corp.intel.com ([169.254.7.78]) by ORSMSX106.amr.corp.intel.com ([169.254.1.19]) with mapi id 14.03.0415.000; Wed, 20 Mar 2019 12:57:52 -0700 From: "Xing, Cedric" To: Andy Lutomirski CC: Jarkko Sakkinen , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "linux-sgx@vger.kernel.org" , "akpm@linux-foundation.org" , "Hansen, Dave" , "Christopherson, Sean J" , "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: AQHU3zmquZHDGSY4XUWmggeyxtSmi6YU12fwgAB7nID//4szkA== Date: Wed, 20 Mar 2019 19:57:52 +0000 Message-ID: <960B34DE67B9E140824F1DCDEC400C0F4E85C53D@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> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2E4OTNhZDQtZWI2ZS00MDRmLTliMmUtYjU2Mjk4ZmE1YzMzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidW1sdnlmTnpLK3BEeHdIN2FncE4xdURXSVd5STA1U3h6TjFlMlFpd1lnbENoQTB1U2MrMjRCSUdzVlg3a1RBQiJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.139] 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 PiBVc2luZyB0aGUgdW50cnVzdGVkIHN0YWNrIGFzIGEgd2F5IHRvIGV4Y2hhbmdlIGRhdGEgaXMg dmVyeSBjb252ZW5pZW50LA0KPiBidXQgdGhhdCBkb2Vzbid0IG1lYW4gaXQncyBhIGdvb2QgaWRl YS4gIEhlcmUgYXJlIHNvbWUgcHJvYmxlbXMgaXQNCj4gY2F1c2VzOg0KPiANCj4gIC0gSXQgcHJl dmVudHMgdXNpbmcgYSBub3JtYWwgZnVuY3Rpb24gdG8gd3JhcCBlbmNsYXZlIGVudHJ5IChhcyB3 ZSdyZQ0KPiBzZWVpbmcgd2l0aCB0aGlzIHBhdGNoIHNldCkuDQoNCkl0IGRvZXNuJ3QgcHJldmVu dC4gSXQncyBhbGwgYWJvdXQgd2hhdCdzIGFncmVlZCBiZXR3ZWVuIHRoZSBlbmNsYXZlIGFuZCBp dHMgaG9zdGluZyBwcm9jZXNzLiBXaXRoIHRoZSBvcHRpb25hbCAiZXhpdC9leGNlcHRpb24gY2Fs bGJhY2siIHNldCB0byBudWxsLCB0aGlzIHdpbGwgYmVoYXZlIGV4YWN0bHkgdGhlIHNhbWUgYXMg aW4gdGhlIGN1cnJlbnQgcGF0Y2guI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