Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp282969imu; Tue, 27 Nov 2018 12:19:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/X29At3oAVI8uchyoJXpL7LmC114tbJgmvOhZwnY3nJtxwXJAoh0Aum9GX2IZyOQLpe5Mq0 X-Received: by 2002:a17:902:8c98:: with SMTP id t24mr33873582plo.130.1543349989582; Tue, 27 Nov 2018 12:19:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543349989; cv=none; d=google.com; s=arc-20160816; b=QERWNwHvezJD0Pb6FL2L8KaBYYcPEp0eDu2fkn6WuKGtrzLczpDGNOYOBNct4tJMNS 8/ejFjqlN9slOozP4RWRhRDQEpTEFOvGaovG9xEI1quAtuT9fdM/L9LLnBZcJ9rSJLuI yeTq2kdI2j29aWT6hYV2a5INWZj+JU7iutLP1bywH8FlfiO/ZHACom+xGDrVckntzWJO Qldyz4eJ0mVY/2vzGC17L9iTed/RhLMC/zgk5KlXcFpJgRAnkeg+vwfYU6BZHKuECejZ qfosBJFsFw/rxl716zIvJZYvEUTxmH4ot34cAjzlVSXxzpfXYkyx8pFugQk/4n5rCokL Jfhw== 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:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Fc1CnOEYvfgUW8hip9N8g5aPP+uqHZrV7dnBg/4ICoU=; b=XolfUDpfzQUey1r/QDgVUXjHNE4Ebe+ysSnaxZxnvlaAllyDM4QLsWYlSBT1LT9XkL l+gQQUU4+inAg/xp/BD1m2rfJmkuga81pfLPxQy/6fsNV7uJf8np7yCqx+CdKw17z8Rg E/D+n3rTFNYncgJmFffel86I1y5JJR/2Bki1BehjJcs1y2nsc0bxznZAeksSHQ0UelS3 0N3wKHwtG6AwbbOqXGvHRmKUnaWTnTAWAecpyIKEw8sIbkp3oO8dKP0aIJRXjdNpd9+4 O79ZnhmDUNvnmZbW3VTTFhscBoNFh0wBxaZsiXO+4Q9tZNGtmWHT2AQKZ0tB2w0w0IZm IbUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=a1SNNVnf; 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 d66-v6si4972598pfc.92.2018.11.27.12.19.32; Tue, 27 Nov 2018 12:19:49 -0800 (PST) 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=a1SNNVnf; 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 S1726362AbeK1HRy (ORCPT + 99 others); Wed, 28 Nov 2018 02:17:54 -0500 Received: from mail-eopbgr680083.outbound.protection.outlook.com ([40.107.68.83]:7040 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725764AbeK1HRx (ORCPT ); Wed, 28 Nov 2018 02:17:53 -0500 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=Fc1CnOEYvfgUW8hip9N8g5aPP+uqHZrV7dnBg/4ICoU=; b=a1SNNVnf7x6TU0rd3gdiEj+bkcBgU9Aj1cmNE4J6FM0VRfpiiuEqQtYcngaTe1p/Ju4jSbxAArKka3QohDBsbdU5fGp3F3xOYQGuhAWgaVzV+XKUvr/gDjh4u8z6qi0W8QFVHhk6DemIBR6bGPvC0J1aHNyTmX0797Du4qyQZ6I= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB0654.namprd12.prod.outlook.com (10.163.208.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.19; Tue, 27 Nov 2018 20:18:45 +0000 Received: from SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::bc0e:7f7f:ee65:e2d5]) by SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::bc0e:7f7f:ee65:e2d5%6]) with mapi id 15.20.1361.019; Tue, 27 Nov 2018 20:18:44 +0000 From: "Lendacky, Thomas" To: Thomas Gleixner , LKML CC: "x86@kernel.org" , Peter Zijlstra , Andy Lutomirski , Linus Torvalds , Jiri Kosina , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Tim Chen , Andi Kleen , Dave Hansen , Casey Schaufler , Asit Mallick , Arjan van de Ven , Jon Masters , Waiman Long , Greg KH , Dave Stewart , Kees Cook Subject: Re: [patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode Thread-Topic: [patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode Thread-Index: AQHUhPC/1qVyRKMepkGTWuigitwSWKVkEuWA Date: Tue, 27 Nov 2018 20:18:44 +0000 Message-ID: <070bd6a5-fd27-2b6d-efea-6d883ba1f8ec@amd.com> References: <20181125183328.318175777@linutronix.de> <20181125185005.759457117@linutronix.de> In-Reply-To: <20181125185005.759457117@linutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0201CA0041.namprd02.prod.outlook.com (2603:10b6:803:2e::27) To SN1PR12MB0175.namprd12.prod.outlook.com (2a01:111:e400:5143::15) 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-microsoft-exchange-diagnostics: 1;SN1PR12MB0654;20:WRqj09E3Tg1aQlK6y8Ah+NNc60zHwfFVqzY7AdUyVwyd/VT9CVtpvHStVfY9TI8v7wVzEdRflxQUO8zW7HW+S5cw7il+mI9ba7zHbeAp7LwZ2FnZ5imooGLl/LqfhvCGvTDlU49jeFjlrFyjTLLF+sD1LCKiMKOJPRVgf/iug3RFMqP9gZlbKf2e6Jen3Qtp3isSCnyQja7s/3XtX5er0c2mdLIf2fQcb86nxefmtFSetJ57TDRP3BRR0krhswsS x-ms-office365-filtering-correlation-id: 56d58e1b-806b-42f1-c654-08d654a58735 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB0654; x-ms-traffictypediagnostic: SN1PR12MB0654: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231443)(944501410)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB0654;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0654; x-forefront-prvs: 086943A159 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(39860400002)(396003)(366004)(136003)(189003)(199004)(105586002)(54906003)(31686004)(110136005)(8936002)(97736004)(2906002)(6486002)(256004)(14444005)(6436002)(36756003)(68736007)(86362001)(11346002)(446003)(476003)(2616005)(31696002)(229853002)(316002)(71190400001)(486006)(71200400001)(7416002)(5660300001)(14454004)(102836004)(6246003)(66066001)(6512007)(99286004)(52116002)(81166006)(81156014)(25786009)(478600001)(6116002)(106356001)(3846002)(72206003)(8676002)(4326008)(39060400002)(186003)(76176011)(53936002)(7736002)(53546011)(386003)(305945005)(6506007)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0654;H:SN1PR12MB0175.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-microsoft-antispam-message-info: dRVBwZABpgeqf7vlzhaxOi823ZxBkob0ATUgobx8Rr+Jl+gkPWk2oK9xrrd4bmcCMqrWGEEH8iPJ+Q285Bgo9J55QKBkqNnpJMJ+pGHmBG1GKzpfLX0IbdS5F/Ao4ffJqHPfwDQy/9zsIqEfuvUiGAyCyZUyC+YdwUu+/DeQKp2M592UjzL3vmkZAIWh9U1dWgyu5QRWy+EcwDAbw6b0uhh0CoCFriAq5ScWGlnAVeO6t0VGqL6fqO0kSl37aszFXDl3iN4up2eD5s6OJDSBfarwKRlMvZAkiiEACCQQ5e2A6Zz/71WxArD1vaA7TH4EBN+d7Z/vo3/rg8ZniiFSgjYy2Cy3qkXnE0Gkyqf6I0M= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <00F4BC0E7B8047419821353E99217D9C@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56d58e1b-806b-42f1-c654-08d654a58735 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Nov 2018 20:18:44.6945 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0654 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTEvMjUvMjAxOCAxMjozMyBQTSwgVGhvbWFzIEdsZWl4bmVyIHdyb3RlOg0KPiBUaGUgdXBj b21pbmcgZmluZSBncmFpbmVkIHBlciB0YXNrIFNUSUJQIGNvbnRyb2wgbmVlZHMgdG8gYmUgdXBk YXRlZCBvbiBDUFUNCj4gaG90cGx1ZyBhcyB3ZWxsLg0KPiANCj4gU3BsaXQgb3V0IHRoZSBjb2Rl IHdoaWNoIGNvbnRyb2xzIHRoZSBzdHJpY3QgbW9kZSBzbyB0aGUgcHJjdGwgY29udHJvbCBjb2Rl DQo+IGNhbiBiZSBhZGRlZCBsYXRlci4gTWFyayB0aGUgU01QIGZ1bmN0aW9uIGNhbGwgYXJndW1l bnQgX191bnVzZWQgd2hpbGUgYXQgaXQuDQo+IA0KPiBTaWduZWQtb2ZmLWJ5OiBUaG9tYXMgR2xl aXhuZXIgPHRnbHhAbGludXRyb25peC5kZT4NCj4gDQo+IC0tLQ0KPiANCj4gdjEgLT4gdjI6IHMv YXBwMmFwcC91c2VyLy4gTWFyayBzbXAgZnVuY3Rpb24gYXJndW1lbnQgX191bnVzZWQNCj4gDQo+ IC0tLQ0KPiAgYXJjaC94ODYva2VybmVsL2NwdS9idWdzLmMgfCAgIDQ2ICsrKysrKysrKysrKysr KysrKysrKysrKy0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KPiAgMSBmaWxlIGNoYW5nZWQsIDI1IGlu c2VydGlvbnMoKyksIDIxIGRlbGV0aW9ucygtKQ0KPiANCj4gLS0tIGEvYXJjaC94ODYva2VybmVs L2NwdS9idWdzLmMNCj4gKysrIGIvYXJjaC94ODYva2VybmVsL2NwdS9idWdzLmMNCj4gQEAgLTUz MCw0MCArNTMwLDQ0IEBAIHN0YXRpYyB2b2lkIF9faW5p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