Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1019887imu; Tue, 11 Dec 2018 11:16:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/V130cyzzlySSj57AK7yr44R2ofhz6AROfgu0V7+pRhIabQ7CTpQYk4lOU4aX7rcD01gfif X-Received: by 2002:a17:902:31a4:: with SMTP id x33mr16810584plb.41.1544555760540; Tue, 11 Dec 2018 11:16:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544555760; cv=none; d=google.com; s=arc-20160816; b=YUxnVfmWTCIIe1RZquH7bhkfNeAXjpEY7Qea9hx5mzwR3sttnL1BPZtNnSJjArNmCE arqYAtq4nHIh2uLlYPNRx9iqNLyS/4KomaJZJXldglv3OSg53TQw84LDUP7jf0YiJIyj idteZ0HeCLONQ/V1r/x0gSGCzKfpfIli8FL1i4nphs54wv3IKThpXxYbIGulzujfG20v QzU2A5UQUhOdAik83xkQODYxg/gtSODMou0KADLzecjJosjE4RSU7W13qCVUHa7+G42I CMYcyOpfrIVfJ5d5z4zx2yk1aVKmAk+pn9bTObmQ7ipSfOzt7pklFlOcQOK9p5LZNi8R WvMQ== 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:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=h3o2V1zwTtjggr1snHfzXO7Hq0lCjmNgAhqsAw12l1g=; b=V6KffU27xlM+T2iVxACFbDEarRtD1r4lWIvAwHsemDPMl2XQOplIDM464nsMV7a/LA 6CpljbXB4mPFWpr2Cmgry2k+aHaZBIJ2ZqcXZIdTuicNUhVAoP67ICHRNwgjgupIr1/e +iNK9Vk7hqBthLb0tweUbQA+xJ3yK532g+HSuPyW9+aHbNBD+hNWIob5a2HkJciRA6Eg 4FaXcBErM2aDEfAJrWcw95mL+Q2e8BEGucWrnqRe7F8GVK56GxpUm9HGtGutSVDyrFu1 qP6LIY0XklNHeDno/Zm84WYkAKDWiz5pGDNuHtoXsEGhpHNxz6LUyMN0r/UImkGnRMs1 NknA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=QcLrEw1Z; 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 m15si12513961pgc.381.2018.12.11.11.15.45; Tue, 11 Dec 2018 11:16:00 -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=QcLrEw1Z; 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 S1726864AbeLKTM7 (ORCPT + 99 others); Tue, 11 Dec 2018 14:12:59 -0500 Received: from mail-eopbgr770082.outbound.protection.outlook.com ([40.107.77.82]:40488 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726350AbeLKTM6 (ORCPT ); Tue, 11 Dec 2018 14:12:58 -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=h3o2V1zwTtjggr1snHfzXO7Hq0lCjmNgAhqsAw12l1g=; b=QcLrEw1ZH3vXRjIKdwWgJpAFLA78sDCtK36wSmEFiZk3I2CuNqRGAds2cLzUyNKWSWeYHF9WfcCKPVdM6AdAdkMzV+Ww/uo+AN2Zp4jzEZvKrE4LwcYGx2xttgx+dOcaX4dlTZuJUUc530ENZBe8DxEKCnxuJTktqdVTiljzdY4= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB2493.namprd12.prod.outlook.com (52.132.196.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.17; Tue, 11 Dec 2018 19:10:02 +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.1425.016; Tue, 11 Dec 2018 19:10:02 +0000 From: "Lendacky, Thomas" To: "x86@kernel.org" , "linux-kernel@vger.kernel.org" CC: Andrea Arcangeli , Konrad Rzeszutek Wilk , Jiri Kosina , Ingo Molnar , Borislav Petkov , Thomas Gleixner , Tim Chen , David Woodhouse Subject: [PATCH] x86/speculation: Add support for STIBP always-on preferred mode Thread-Topic: [PATCH] x86/speculation: Add support for STIBP always-on preferred mode Thread-Index: AQHUkYUdUUqHSw55jUaGOaWlduXUMQ== Date: Tue, 11 Dec 2018 19:10:01 +0000 Message-ID: <20181211190959.28321.56433.stgit@tlendack-t1.amdoffice.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR02CA0013.namprd02.prod.outlook.com (2603:10b6:805:a2::26) 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;SN1PR12MB2493;20:OGAanKPlLihGETJL+W4IUSWrcc+xzq6v9RBFxod/0Hkf8OLb2VEMYBekMm5LrJK6h/kzlpJxW9OZvs/WVrCO9+oSy2v7R0hqkhO+RQsH+3mFrnigEsBy4RyrP1rEqT8Kf0JxFkEw5Mog8XXPBF2PveNGU6YZXrR8aBefKulYwHAzWuDkZQFltnbh3m9mILT3B6LYusv5D+jMQi5jnAvzPo9CrpR+zZuXAcDaC8MmsMutZE+6SssedaicUCieHRCR x-ms-office365-filtering-correlation-id: aca678f5-fc46-400d-993b-08d65f9c4026 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB2493; x-ms-traffictypediagnostic: SN1PR12MB2493: 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)(823302103)(10201501046)(3231455)(999002)(944501520)(52105112)(93006095)(93001095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB2493;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB2493; x-forefront-prvs: 08831F51DC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(39860400002)(376002)(136003)(366004)(346002)(396003)(199004)(189003)(14444005)(33896004)(6512007)(25786009)(81166006)(9686003)(1076002)(6436002)(2501003)(486006)(6116002)(97736004)(86362001)(103116003)(256004)(3846002)(8676002)(72206003)(97746001)(6486002)(71190400001)(71200400001)(105586002)(476003)(66066001)(316002)(4326008)(7736002)(99286004)(7416002)(305945005)(106356001)(5660300001)(52116002)(6506007)(386003)(186003)(8936002)(81156014)(68736007)(478600001)(14454004)(26005)(102836004)(53936002)(54906003)(110136005)(2906002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB2493;H:SN1PR12MB0175.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-microsoft-antispam-message-info: W97CHR8hnHNKp8+WbVEzY5xHa7/M3OkGfE/uwB/d2CBC7IwzcyubZMluUECgd+F+/aWVWw2Cy4Qtmy73UXDoGMryjiX3JJaa4mUXPhqK+ywb51zR2eSrpsORCfyAeWcRlKCz4tT951ZqFLhbC+OziYibQ0RAFwcN5PbfusDHSzjhAYtjvkqkBH13iJQQVUhhWLVUtCug6WvqJZfEa0fC7dODOmCqfsXpBiasYWgt7e9xJA9D6tNe2CanMKYA7T2VA0xhttsahCCTu6VnU+s3tPAami0lIZXqIMe3tjp+URT7wYk0czxi4l1s8spe2rlF spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <76C469B3873ADF4FAD156D62411141AC@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: aca678f5-fc46-400d-993b-08d65f9c4026 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2018 19:10:01.8794 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2493 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RGlmZmVyZW50IEFNRCBwcm9jZXNzb3JzIG1heSBoYXZlIGRpZmZlcmVudCBpbXBsZW1lbnRhdGlv bnMgb2YgU1RJQlAuDQpXaGVuIFNUSUJQIGlzIGNvbmRpdGlvbmFsbHkgZW5hYmx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