Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3143598yba; Mon, 8 Apr 2019 12:07:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyR9tu7o51qbG5NUdnZY7dTR2K57vLuy1BZZI4Y1cujqrtlMRhBiLWFquJepj9n+ZTXEG6Y X-Received: by 2002:a17:902:7885:: with SMTP id q5mr32478895pll.12.1554750426548; Mon, 08 Apr 2019 12:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554750426; cv=none; d=google.com; s=arc-20160816; b=DE0044+1Yt2/KM0KKbicePgYT5i6jbMa4CWG2+P+c3Jc/qxGktxnur0EtVIEds2/bs wVRTxsnY4SKW1spaX+JUCKkkxoY6d7NQA291NrN5WmmhkDiAOQIt6vKTe4TCmzvFlA06 kWcv6zEcD/j1f4euy98ZdlbXkuUJgxcPuxosfzj5wWUL0Naj5CEeAKy59RAtYOVnO464 eyrAsFsLLJIWYe5e9f5ycZBh92LjNKoo9hRobfaG4l9x4uPQhMEsIg6CNZDZfCklEAqp PqirsoTwoEM9mHrsIYHtgyejkMrN6PdDXU7zleQ7znutYVQjvsCInfdbRo4JY3tmLH1x 2hVw== 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=vhwGeUqJGCUnUSpitlHRftEqOGRTfFQTmnrlZmVgst0=; b=lZWAlCTaTYtqweKWD4wLbyKqREZ05uZ2zEoR9Fel+fCpYdqc0BR7bQaAmtGebanhlM piz3WwbesaasMwTWDzlraGXZ5rwznF79PdQfxq0TtP5G6jXk9/BGEPRJjAr9Qb6NyUTU zF6183qqd/QIOgV2rdeRYGHpbJlbUhku75km8Uw26OQkBIZ7yZEjxSr8jRfoqH0SpFFB IZ/pMgVsCX4hBgB2Dst8iFUcBxJGvCm7cHnpFoLIJs7QUK+hNMdqq0zxnaS1rGkwJONa aiCEMmvxcnqFLWRxhugl/CBZ1IdKygroJEuRc/teKdTbpt/xjBvpprB3a3TvktQrr8uC p07Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=L0jjDRmg; 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 x4si26678043pll.344.2019.04.08.12.06.50; Mon, 08 Apr 2019 12:07:06 -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-amd-com header.b=L0jjDRmg; 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 S1729103AbfDHSlf (ORCPT + 99 others); Mon, 8 Apr 2019 14:41:35 -0400 Received: from mail-eopbgr760078.outbound.protection.outlook.com ([40.107.76.78]:57582 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726456AbfDHSlf (ORCPT ); Mon, 8 Apr 2019 14:41:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vhwGeUqJGCUnUSpitlHRftEqOGRTfFQTmnrlZmVgst0=; b=L0jjDRmgE2VTWMjecYSDwtEy4FEHBj8dDho03mo/nXGPrOrmJ8kxsszgxIGJXFTNvqzFlNn7tScMp1vrmU/H8tuPhThds7at+oad1gl75+YFraakAbS6sk98h1KX9UqvlhsVqaQ5+pB5+jBCQrc4IjTbvABg5pEBDqolXXvzAUI= Received: from DM5PR12MB1449.namprd12.prod.outlook.com (10.172.38.138) by DM5PR12MB1210.namprd12.prod.outlook.com (10.168.237.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.16; Mon, 8 Apr 2019 18:41:31 +0000 Received: from DM5PR12MB1449.namprd12.prod.outlook.com ([fe80::b847:c18d:397a:5ea7]) by DM5PR12MB1449.namprd12.prod.outlook.com ([fe80::b847:c18d:397a:5ea7%5]) with mapi id 15.20.1771.021; Mon, 8 Apr 2019 18:41:31 +0000 From: Gary R Hook To: Borislav Petkov CC: Thomas Gleixner , "Hook, Gary" , "linux-kernel@vger.kernel.org" , "dave.hansen@linux.intel.com" , "peterz@infradead.org" , "x86@kernel.org" , "mingo@redhat.com" , "luto@kernel.org" , Alexander Potapenko Subject: Re: [PATCH] x86/mm/mem_encrypt: Disable all instrumentation for SME early boot code Thread-Topic: [PATCH] x86/mm/mem_encrypt: Disable all instrumentation for SME early boot code Thread-Index: AQHU6yS/AQVIYa78D0OsnFnDJRviWKYsd26AgAWzsICAAFczgIAAHL8A Date: Mon, 8 Apr 2019 18:41:30 +0000 Message-ID: <8a14050e-2516-5c0f-195d-611c6959b94b@amd.com> References: <155440965936.6194.3202659723198724589.stgit@sosrh7.amd.com> <5dfcb133-0a0e-9e07-3774-313e30814e79@amd.com> <20190408165835.GJ15689@zn.tnic> In-Reply-To: <20190408165835.GJ15689@zn.tnic> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN2PR01CA0019.prod.exchangelabs.com (2603:10b6:804:2::29) To DM5PR12MB1449.namprd12.prod.outlook.com (2603:10b6:4:d::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b7354661-35e0-45db-de94-08d6bc51d107 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DM5PR12MB1210; x-ms-traffictypediagnostic: DM5PR12MB1210: x-microsoft-antispam-prvs: x-forefront-prvs: 0001227049 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(366004)(396003)(39860400002)(136003)(189003)(199004)(6512007)(305945005)(6116002)(81166006)(6436002)(5660300002)(81156014)(14454004)(3846002)(66066001)(8676002)(8936002)(7736002)(68736007)(31696002)(36756003)(6486002)(93886005)(2906002)(478600001)(6246003)(229853002)(53546011)(76176011)(14444005)(4326008)(99286004)(486006)(72206003)(256004)(316002)(386003)(2616005)(106356001)(6916009)(102836004)(446003)(52116002)(476003)(6506007)(11346002)(97736004)(31686004)(71190400001)(71200400001)(53936002)(25786009)(105586002)(186003)(26005)(54906003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1210;H:DM5PR12MB1449.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: xQ1DyKjISW0o1TFpw7VNz+eNKjQpJfAcnwLbHm1XLpzc3QiDIGz3ZMMnOIkjI0OksdKML6dFtNTqdNIjvNLYjGjTqol/LKAZ2dN55C2odj14o7Izux/8bqWuetFnhOCMEB2TQJGo2s/M8tJH1FAgkOnLheqRgby6+XNnoqHpS8ENawS92JMxJTbkvYPdcez84X7A0kzpd2tz7JMsfgg1YTLdm/Pr1KMAAadF6NnFV1K1rR5La/KF+2OTQ7iAfcwFeqA2MWJymlejY4aInqapGt2SLyQPgUwijuhA7sWKpTAQhFZV4LuRCQ+O3ZJnbvlrQDm1Xkqkx2c8YqOOlGfIiwW+o9wkXwF+/19+O5nRPZgmtppBK12y9Kf1i0AWX3AXmSDtIAKrqYOZbFgRv53+qX/slWmJpozU4NJxYiC7iok= Content-Type: text/plain; charset="utf-8" Content-ID: <8F800B5340FBCE41AC1A9C5CE33C19CF@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7354661-35e0-45db-de94-08d6bc51d107 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2019 18:41:30.8813 (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-Transport-CrossTenantHeadersStamped: DM5PR12MB1210 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gNC84LzE5IDExOjU4IEFNLCBCb3Jpc2xhdiBQZXRrb3Ygd3JvdGU6DQo+IE9uIE1vbiwgQXBy IDA4LCAyMDE5IGF0IDA0OjQ2OjMxUE0gKzAwMDAsIEdhcnkgUiBIb29rIHdyb3RlOg0KPj4gTXkg cmVhc29uaW5nIChub3QgYXJndWluZyk6IHRoZSBmaWxlIGhhcyBiZWVuIHRvdWNoZWQgZXhhY3Rs eSBvbmUgdGltZQ0KPj4gaW4gNCB5ZWFycywgYnkgVGhvbWFzLiBEb2Vzbid0IGFwcGVhciB0byBi ZSBhIGNhbmRpZGF0ZSBmb3IgY29uc3RhbnQNCj4+IG1vZGlmaWNhdGlvbiwgc28gdGhpcyBhcHBy b2FjaCBkb2Vzbid0IHNlZW0gcmlza3kgdG8gbWUuIEkgY291bGQgYmUgd3JvbmcuDQo+IA0KPiBU aGUgc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