Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3193388ybi; Mon, 17 Jun 2019 18:50:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9D1gU5Y+HQrgM7Ptb1UsemlxDDM9UueSQDbCj4vTpKpdC7gldlwNfzCV9kDehetR1JUUN X-Received: by 2002:a17:902:728a:: with SMTP id d10mr108972620pll.90.1560822634938; Mon, 17 Jun 2019 18:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560822634; cv=none; d=google.com; s=arc-20160816; b=S5QoZRBWoo2EwJovggzj8kMmp7GG3Kv6I2ot2AAd1kUxlpl8kCVMi3TNRBqeEunl0w ZEd86cC+F6kSUWHxQHY4ZjnqtTIfUwlaIGnroRGCqQLdJKNR1qjtfJb6l6UGcbjMafnU a01c8R93Jap52uxPDgLKI4PRK7OpbgBzsyizwgL8kjOl/7evzTUy0sVkIwO7rcZbMnFp YrX6F1zUNSvTwH1gnKEY0JeKf7SAb5IPDxPkX0pgBzc7Y9G5tQFBT9/I1T1+Ja7lXP4J Re0wRFM2ID9I5YLQotgRRyZ64Mjq0DLgTF19A4pbqanxbUEBGpvDsLKjphJVBjaLDbB0 +eNg== 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=49+6IRBFxa48QHdrFsjuqMuiUXLhopLRBZ7q8vl5CF4=; b=joKuFsa9gk7Z+2EmX3e3lIv2S/7Y5kBziM5il/7DWUb8id1HkbzrLA8eMgdmy6b509 TaYyKO3deJufwCfl4pXsLgzEiqLcb/aO41MhIL9fVn2Q17kufXfN2bpCcQE4AZWROSfq pqiFfJcMO5d4Cqu6YFc6l1U+tSB9H1BGkir8VxoYGam/Wsi8cal8O5jlNewQ/wTGg4oI zPkXEtXKvYzSIeUZvJHj/9CD6ADj9WtfhbXauvofgMHO9oGcVlB4tdQllqU6a42G6K6W nnsNWSbl14bQYgZiNZ+UnOfogGURaQMlj8iXSEUDLmJ/Kt9K1fG/J2ajcc/N57XHt6XR 9+nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=ehAXysoV; 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 v9si11753368pgs.312.2019.06.17.18.50.18; Mon, 17 Jun 2019 18:50:34 -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=ehAXysoV; 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 S1726514AbfFRBt4 (ORCPT + 99 others); Mon, 17 Jun 2019 21:49:56 -0400 Received: from mail-eopbgr700085.outbound.protection.outlook.com ([40.107.70.85]:8000 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725829AbfFRBt4 (ORCPT ); Mon, 17 Jun 2019 21:49:56 -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=49+6IRBFxa48QHdrFsjuqMuiUXLhopLRBZ7q8vl5CF4=; b=ehAXysoVVU7SQuHD4UmESgsTbGfwEv/mTeFKGYgH8/fMA2NQPGqhpQaqdjStBwrdVMv7B+bxhouZauNTxjr7saHZ4lV9DcUzawcMpxRiLYufkQ4zZgxMHGonYMHmF39hscG740XMj3IPqtNk7VjyQ5DARF5OCc4AbhLwb3Zic74= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB2969.namprd12.prod.outlook.com (20.178.29.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.13; Tue, 18 Jun 2019 01:49:13 +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.014; Tue, 18 Jun 2019 01:49:13 +0000 From: "Lendacky, Thomas" To: Borislav Petkov CC: "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Thomas Gleixner , Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Baoquan He , Lianbo Jiang Subject: Re: [PATCH v2 2/2] x86/mm: Create an SME workarea in the kernel for early encryption Thread-Topic: [PATCH v2 2/2] x86/mm: Create an SME workarea in the kernel for early encryption Thread-Index: AQHVIvZFyxh/3O5jxUuQLlnW4iiwNqafsnCAgAD3rgA= Date: Tue, 18 Jun 2019 01:49:13 +0000 Message-ID: <9e7e1757-2f2f-ae34-5b31-cca5e164a6a9@amd.com> References: <20190617110241.GH27127@zn.tnic> In-Reply-To: <20190617110241.GH27127@zn.tnic> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: DM6PR03CA0046.namprd03.prod.outlook.com (2603:10b6:5:100::23) 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: 2a860549-b553-45ce-c108-08d6f38f29df 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:DM6PR12MB2969; x-ms-traffictypediagnostic: DM6PR12MB2969: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 007271867D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(39860400002)(136003)(366004)(396003)(199004)(189003)(53546011)(25786009)(305945005)(2906002)(72206003)(7736002)(31696002)(229853002)(6916009)(86362001)(99286004)(2616005)(7416002)(486006)(53936002)(26005)(6512007)(76176011)(6486002)(31686004)(71190400001)(4326008)(14454004)(6246003)(256004)(6436002)(478600001)(102836004)(8936002)(36756003)(5660300002)(54906003)(316002)(66066001)(386003)(6116002)(81166006)(3846002)(81156014)(71200400001)(6506007)(66946007)(186003)(66476007)(446003)(66446008)(64756008)(66556008)(52116002)(8676002)(68736007)(73956011)(476003)(11346002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2969;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: RYL3kCg00gtCiPTKDy+yYCYQGDfM7GfPYMgJO20kKgx3JALNPwnQ4TZfjy2IP2m8CzUhnpaJW0QRY4qgcgRv33aFIEhC+tP2iQinKxweNxteAAKCqmzuZr6NVYl1qYiF6Pi9P0UptZBSLwUmhXRloVRW+p1O/7MkhhKmY3bVBo0eshArXSGmD0vdP+TXC1ZRQUjEYPKEIpcCu4W+VL2tKGQaxjZqQagJtxxlVTfq2GJS6O21jkydlcZRKQxlT702GmnlVzmbB3tlssZ/UIn37NVzpbsMvZxKetLSX4GQRl/BfOTch8t3irwSpmzJPk5w55oGIoTXTwy6xKS/Bqb4NPR0FReJE1Yt+wnGwfI1Fnu+51S1oJZUK32EpPGXGjXITetJClRxdgtq02ZV0k/wslJrYapMMOrwbplO0Xckgbk= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a860549-b553-45ce-c108-08d6f38f29df X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2019 01:49:13.1534 (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: DM6PR12MB2969 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gNi8xNy8xOSA2OjAyIEFNLCBCb3Jpc2xhdiBQZXRrb3Ygd3JvdGU6DQo+IE9uIEZyaSwgSnVu IDE0LCAyMDE5IGF0IDA5OjE1OjE5UE0gKzAwMDAsIExlbmRhY2t5LCBUaG9tYXMgd3JvdGU6DQo+ PiBkaWZmIC0tZ2l0IGEvYXJjaC94ODYva2VybmVsL3ZtbGludXgubGRzLlMgYi9hcmNoL3g4Ni9r ZXJuZWwvdm1saW51eC5sZHMuUw0KPj4gaW5kZXggY2EyMjUyY2E2YWQ3Li5hN2FhNjViNDRjNzEg MTAwNjQ0DQo+PiAtLS0gYS9hcmNoL3g4Ni9rZXJuZWwvdm1saW51eC5sZHMuUw0KPj4gKysrIGIv YXJjaC94ODYva2VybmVsL3ZtbGludXgubGRzLlMNCj4+IEBAIC0zODcsNiArMzg3LDMwIEBAI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