Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp26679ybi; Thu, 13 Jun 2019 11:00:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqz43ksaQIgUF/7VM727DgNMKdIc9/Wm+TdiFWpo78qem0YbZjdDsFyu0UMqtqmxagkoLivy X-Received: by 2002:a63:27c7:: with SMTP id n190mr31748278pgn.250.1560448859390; Thu, 13 Jun 2019 11:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560448859; cv=none; d=google.com; s=arc-20160816; b=A/bDaf3Do/MvSwyxWRb/o5rxaKI5ETicTDUt96jC+U6O4CMTU3Ew6TET5lHgl4nB9O 329NMbLvzPNPKgWQOpn/tP5mOeeYQNN5f0OOoFQb5OO3/pkIeRusPEIJZ2tlOxJgTFEs rBG4IuSy63zw+B9s3pOrlsPyZie57ZoirnrcQNfCD/y4FA60blkP3JTsnc227+x7YHPn mIlaHLwJTfPY8nXOnmR9UhAygzZbU3vXhUOvVYeotePS7dNDN2C/gxG2bBzrCp4O48RU k0RDeMiLPBVkiVcM+oxc2RO4K+NOUR6maf2jzzVry/0xuQsvEo8HLhh3Fetdr5KD/5j7 6YZw== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=/7rv5mAxLEAsMqHUsT3TDIV11CepCUERP702baz12Ec=; b=OOqmQaxDZq1ZdvriSIbyIxskuIeoFa45pcHmMU6y9EZ51f+qUh0CWVd6qvIF/C2ZCP buWcklQRhYRhktFuWqb5yf4k+t1ANNNCVd8Ild9zupWAulSTYvtX5R0YEe5rUht0iYDU wL1+T503sb4X99evLiFQpN6ohn2hchevi1s8tYVc2rweCqXW+n+1s7KZfu++OuBthfWS xK8W6ZtUIbpDzWdorX8s5fh9ovNUkek+cXRm9sEw/JvPooQPLmaLqu7KfEUT0BVJwwd7 d4NLG0+q2uzaS7SfpO9AH/R1wW58gkoJ1l7L/NW2usBfuIYmx2X7X5n1YnLSFYGwPTgN 5rBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=oeR709O9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s15si280814pjp.38.2019.06.13.11.00.43; Thu, 13 Jun 2019 11:00:59 -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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=oeR709O9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727312AbfFMR7U (ORCPT + 99 others); Thu, 13 Jun 2019 13:59:20 -0400 Received: from mail-eopbgr810077.outbound.protection.outlook.com ([40.107.81.77]:10432 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726967AbfFMR7U (ORCPT ); Thu, 13 Jun 2019 13:59:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/7rv5mAxLEAsMqHUsT3TDIV11CepCUERP702baz12Ec=; b=oeR709O9lEtIjX3/8RUaOIRJ7AYp/IbRNItKPxtIXdstwhl5Dbvc4LYn3w2TI8vbebmiKttPYI08Q2enRxjiGfd76Qsw2auDKLXzYCIQG1qDRu/1VArGPB5aBYwVr+Wd5Rur1NhEc9sj/pjmoiybq/f8fhMhmYajMo5Fy84IsJE= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB2956.namprd12.prod.outlook.com (20.179.104.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Thu, 13 Jun 2019 17:59:04 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::bcaf:86d4:677f:9555]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::bcaf:86d4:677f:9555%6]) with mapi id 15.20.1987.012; Thu, 13 Jun 2019 17:59:04 +0000 From: "Lendacky, Thomas" To: Dave Hansen , "linux-kernel@vger.kernel.org" , "x86@kernel.org" CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Baoquan He , Lianbo Jiang Subject: Re: [PATCH] x86/mm: Create an SME workarea in the kernel for early encryption Thread-Topic: [PATCH] x86/mm: Create an SME workarea in the kernel for early encryption Thread-Index: AQHVISNEIgHKCEThME+IPHE9yhs80KaYHOiAgAAuPICAAZLcgIAAAxWA Date: Thu, 13 Jun 2019 17:59:03 +0000 Message-ID: <49a73751-9ede-234e-3432-74cfa62af0e3@amd.com> References: <053ded24-eb70-0e88-5e0c-312ea93a6fd0@intel.com> <42f8b183-caae-9147-4021-3dee3462c0db@amd.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR04CA0008.namprd04.prod.outlook.com (2603:10b6:805:3e::21) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dfc6c619-0f12-4c3a-bd9c-08d6f028d207 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB2956; x-ms-traffictypediagnostic: DM6PR12MB2956: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0067A8BA2A x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(376002)(136003)(346002)(396003)(54094003)(199004)(189003)(6512007)(6246003)(2501003)(76176011)(14454004)(8936002)(81166006)(2906002)(68736007)(72206003)(66556008)(66946007)(73956011)(7416002)(6116002)(316002)(71190400001)(186003)(5660300002)(4326008)(53936002)(53546011)(386003)(86362001)(2201001)(71200400001)(102836004)(6506007)(478600001)(31696002)(25786009)(52116002)(6436002)(476003)(99286004)(446003)(305945005)(2616005)(66066001)(110136005)(6486002)(256004)(54906003)(36756003)(31686004)(26005)(3846002)(486006)(7736002)(66476007)(64756008)(8676002)(11346002)(229853002)(66446008)(81156014);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2956;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: UdwxQW5jiD7xG7A1JGShaQ9xAEmBOIrzML8qiCO75KgbDDmbKT7jlMnueMMRQyVqC6Be9N2RQjMuFdvqSV6tJua9bDgHPRqwLBR+FvABhXH2hVfWb2x3eNKowbA39HxQoVgqNEA0DFrlvEHUK+TKEXIBrorlrLvFpeiRQgE4CXpqG8XysuusSVjaE5bem6CJyEKYFt2hDIKbnsMMS6qWbvwNFFzvFwWvGid96CSTn1jOtPkwyGDeQUzEDRGfNiKi4iuF1MmvCxa1RMpNu2ZuZSpJvcYPXnFBdw211twoPo9v4jUmVi4OjBcLHF02UYY1Y9A1mPKZ7pHUrNDySe8dKPD5999KH3PqhOSJXk9Q74I4FW3w36AyczXiXp6UCWwzzgROZeKfkG2TOp82ifDnRxvyOTzyzxW0OshvmbKa08U= Content-Type: text/plain; charset="utf-8" Content-ID: <2C60BC644C706E4099571EB675C81EA9@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfc6c619-0f12-4c3a-bd9c-08d6f028d207 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jun 2019 17:59:03.9500 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tlendack@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2956 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gNi8xMy8xOSAxMjo0NyBQTSwgRGF2ZSBIYW5zZW4gd3JvdGU6DQo+IE9uIDYvMTIvMTkgMTA6 NDYgQU0sIExlbmRhY2t5LCBUaG9tYXMgd3JvdGU6DQo+PiBPbiA2LzEyLzE5IDEwOjAwIEFNLCBE YXZlIEhhbnNlbiB3cm90ZToNCj4+PiBPbiA2LzEyLzE5IDY6MzIgQU0sIExlbmRhY2t5LCBUaG9t YXMgd3JvdGU6DQo+Pj4+IENyZWF0ZSBhIHNlY3Rpb24gZm9yIFNNRSBpbiB0aGUgdm1saW51eC5s ZHMuUy4gIFBvc2l0aW9uIGl0IGFmdGVyICJfZW5kIg0KPj4+PiBzbyB0aGF0IHRoZSBtZW1v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