Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1204854imu; Tue, 11 Dec 2018 14:47:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/U7tYaKAmvmMhTM50n2apUf00HxB00+OmfMAPzjkARhgyp6nJKBpQKkyOSIxR3RfWLpNcG8 X-Received: by 2002:a63:a112:: with SMTP id b18mr16371683pgf.440.1544568476580; Tue, 11 Dec 2018 14:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544568476; cv=none; d=google.com; s=arc-20160816; b=v7cBZ/HjG1SyehNZzdir1Zi1uOUZ+M7zZadhcjra11zHPs9s0fUM7payx7iFsD6slT TemPP/Ovkt5SI2OUZDgnQ9pivCA9uWO3zdiYJGv+HNiq7AWG329Xd8CAxbUZ71EEqSN9 9xIK7+5su/Mwv/1irfbKu9QnFpxiVQeXfC1UdVN5e5Hxeh+5twjFf6qA9QstAeG/2/Hn +jAhNsmWj83947XonTviNU4Kw5BvZLM8TdVyELckOaJ+6RtOfQIo0BoTeFStWtayOISq 6OC22RA5CaBxW0Z0pyoNE09ZeRZdkG4wMiobcPJCy1nszQNCYE/1+VPO5zDu4q3xdr9+ GfLw== 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=O5m2hSVSQnR3VJggy2lHJCJw48zUFXNBLAPU7R2Y1ZU=; b=ko74Jqf6zue24SF2yi3bfKUbXVD0rEhvQQPxy8XlbOIxRYmguKtUkXCHIKXDXPVsMW 63mL1xd5D79Px2hV+prwIueXd/Di0bLYdM5Y7Opft9p/9bVswnx5r1xX3gr+GFaaw/ut SbSPo0HHNTwj+nofgVojmyEubjLzgRiKm0tLluMW40613Hbh7eSPhdBNWWvAq7A3eNJT dAAQ1ZnyIiOfIz9mhX1NYMxakHuxVkyNFyLkDwQ0Q44XrirFfeeCT0+LpHgNE3zVXtFP oaIpw3b6avbkgSjcscvi37bKQaO3JNuClcnab0y9q7fsydR/+zjtav7aB4gBDbQ8G2bX z2/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=26IFtrgM; 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 i12si12546745pgq.466.2018.12.11.14.47.41; Tue, 11 Dec 2018 14:47:56 -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=26IFtrgM; 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 S1726854AbeLKWpw (ORCPT + 99 others); Tue, 11 Dec 2018 17:45:52 -0500 Received: from mail-eopbgr740043.outbound.protection.outlook.com ([40.107.74.43]:23040 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726232AbeLKWpt (ORCPT ); Tue, 11 Dec 2018 17:45:49 -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=O5m2hSVSQnR3VJggy2lHJCJw48zUFXNBLAPU7R2Y1ZU=; b=26IFtrgMkQgzvEe5S1RfxPRIgbK17Wevj2hdoz3q1gVdUD6zxbGi1Ik886nRoqXQPMXu2I1ZzfQ3/3UH5XP+qrxMrj5YpEu1CEg8sU8sAc+R8pn/1GRxeJyY+XXF7mUKwW+wr7Sf3T8XVGRc0S744HHzLrjH/ob48tEW1oSpvVg= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB2446.namprd12.prod.outlook.com (52.132.195.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.22; Tue, 11 Dec 2018 22:45:41 +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 22:45:41 +0000 From: "Lendacky, Thomas" To: Borislav Petkov CC: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Andrea Arcangeli , Konrad Rzeszutek Wilk , Jiri Kosina , Ingo Molnar , Thomas Gleixner , Tim Chen , David Woodhouse Subject: Re: [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: AQHUkYUdUUqHSw55jUaGOaWlduXUMaV5hSQAgACGSgD//6uNgIAAZh+AgAAGVYA= Date: Tue, 11 Dec 2018 22:45:41 +0000 Message-ID: References: <20181211190959.28321.56433.stgit@tlendack-t1.amdoffice.net> <3308b5d2-0c59-fa33-472b-f56633d39575@amd.com> <20181211211944.GT27375@zn.tnic> <20181211222259.GU27375@zn.tnic> In-Reply-To: <20181211222259.GU27375@zn.tnic> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR0102CA0034.prod.exchangelabs.com (2603:10b6:805:1::47) 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;SN1PR12MB2446;20:+LyQeyWJiL8WuF6cLmE4ZjpJMhOktdeAykecaUZh7+n3k6B5JfPhN3+kdy3sH+3uIa885LElOOcNuOgcTvNF3sPEkjQsL+ThhfhajW6jnqmsK11bqVQHGPzTT/3ffHhmDfhtbidbuhcfYtCL1CNLHNQ6M0rft9udQI8F1BKQ3STiycaz80aqkhF9+/ysh3Rzga7hVvgsaykIOtCCVEesHAk8siJNdB8ntYqXzSDaMm9Q6lwpXfYRjk6T2/G2pusi x-ms-office365-filtering-correlation-id: 37dbd8e1-962d-4f8c-9481-08d65fba6097 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:SN1PR12MB2446; x-ms-traffictypediagnostic: SN1PR12MB2446: 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)(93006095)(93001095)(3231455)(999002)(944501520)(52105112)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB2446;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB2446; x-forefront-prvs: 08831F51DC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(136003)(39860400002)(366004)(396003)(199004)(189003)(11346002)(31696002)(6246003)(26005)(102836004)(2616005)(186003)(446003)(476003)(6506007)(93886005)(76176011)(14444005)(52116002)(86362001)(97736004)(71200400001)(36756003)(8676002)(66066001)(4326008)(486006)(256004)(105586002)(81166006)(8936002)(386003)(53546011)(71190400001)(81156014)(6512007)(14454004)(53936002)(6916009)(5660300001)(25786009)(72206003)(3846002)(54906003)(6116002)(316002)(2906002)(6436002)(7736002)(106356001)(305945005)(6486002)(68736007)(31686004)(99286004)(7416002)(478600001)(229853002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB2446;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: SmH9oJynMWGlKdZMM84luf6T5RODXyoG84cCgNBFqewzIDbTbwLGcl6yrk9sr80foZxxudQ65IeUWgv0hEH2KOJv9FDvmDZVsx8U3Lasau+xzjPXsxJRAevXUgEgeKlpNk0n/Eoy4hOZXZ1jkSibIH02vmIH6mrj/0qzHzUsFVb7MPJ9XX2eH2bnGldLzIr/aTbPiXuGVGuZV+zmV+5pOP5B3OHtf1qrLsuIaK72aZt56BMaIHPEeppWmSXekDF/kRXUfMOHevfnY0tjbDANusLq6rY00FA02bnqBfrTeviShFcVFYjW/X1lBH4LFlDT spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: 37dbd8e1-962d-4f8c-9481-08d65fba6097 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2018 22:45:41.2709 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2446 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTIvMTEvMjAxOCAwNDo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