Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1886282imu; Wed, 12 Dec 2018 06:06:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/XRq13mp25UVTC5z8jSP/UYDKG5CrhCT1mCqva0Ts2s2mCf91mVuvyvp1dQJhrVIJ5OI1P+ X-Received: by 2002:a63:f962:: with SMTP id q34mr12942578pgk.315.1544623600561; Wed, 12 Dec 2018 06:06:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544623600; cv=none; d=google.com; s=arc-20160816; b=z97bdbrkAchJ6tRfdgy/Xylnas+lGHo1gAhYXXgw4e+S4D1Jqtis8yJXq5h61DHe4M mAeXeogcPpsbwTTkKdo47rrsK9WvCC3Gtj2Q95NrfdNRvDzq2t5L4MKmCQ96hdNPrp0o NczKgykUHMC9EQ1NmcB0WWUt/RUzZ8Hw+hFb92aeIinkH+qNRaCYUo9Gy2WADLX+UAyi UfUhTU8/Na6p7N7k3VE8MtiNmE4oOZYc3ELwUJmAbrza8gzpr50Rrg4db4zwANmq7nst Urj+/hPmz4yJBRCNgFMcDz6QJY3sxUExiA12V2iEDJZZWSsdRpPrkR8gxzKN0gxw8Ugl VVVA== 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=FAgLHqRi5vhWQMVcknnGIFV5yzsegTEN+Ar9MHyH82c=; b=K6pWBx2yUS8LAEkhH7nLjtm4k0RHAvJPBYzu+D+p8ppc3Np/L9hdz30zZ2tJ+DwArN OTO/YRzx9sLgvlJbTfQTqL/UeuIfJQGskg/RTypZLVf9LjYxv6tL/F00UJoZUnAq6C43 e2q4PgCN7kaVGWEF5+K75mpKQhWppTnDgt+9BBsuA7qXQC1NOqPFVkbtjIHrTs2p4g7B KUOi7C3jIdGESBwLgK3r8GSoPnhNIZSSv6PbJLBvx/Ia1lSfAZzgEXo4nuT4Dq5+s1iA G0VW6Q912bwVGwnPWhm1Zj0jlIGeQOoBzEmu27zDEvhSY7DqthK36HwjhCXtx75QAXVF YVtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=D5wi52AE; 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 g21si13929430pgl.114.2018.12.12.06.06.21; Wed, 12 Dec 2018 06:06:40 -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=D5wi52AE; 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 S1727638AbeLLOEH (ORCPT + 99 others); Wed, 12 Dec 2018 09:04:07 -0500 Received: from mail-eopbgr800083.outbound.protection.outlook.com ([40.107.80.83]:39280 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726232AbeLLOEH (ORCPT ); Wed, 12 Dec 2018 09:04:07 -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=FAgLHqRi5vhWQMVcknnGIFV5yzsegTEN+Ar9MHyH82c=; b=D5wi52AEPbXlviTQ+FAcAibZwt1UvllYxkeg1E21X2rzR5OhKZ+8Cd5/Q6PnpSABdkppOSK9YtpNGGEJRhIMz+KzbgbcQBMZe/BT7yOLsfkrjL5FMAhlui0QukY+tP008bzM4mU/RK0zcEiwcrl0absbp8LTAqwrB7GlW0ySiRE= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB0189.namprd12.prod.outlook.com (10.162.3.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.23; Wed, 12 Dec 2018 14:03:57 +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; Wed, 12 Dec 2018 14:03:57 +0000 From: "Lendacky, Thomas" To: Thomas Gleixner , Borislav Petkov CC: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Andrea Arcangeli , Konrad Rzeszutek Wilk , Jiri Kosina , Ingo Molnar , Tim Chen , David Woodhouse Subject: Re: [PATCH v2] x86/speculation: Add support for STIBP always-on preferred mode Thread-Topic: [PATCH v2] x86/speculation: Add support for STIBP always-on preferred mode Thread-Index: AQHUkaNTNctPywnCTEqVxIZjhKo+laV6OXQAgAA7RQCAAK8IAA== Date: Wed, 12 Dec 2018 14:03:56 +0000 Message-ID: <38aca18b-4312-5e03-fdd9-86e47c332e44@amd.com> References: <20181211224615.5373.65736.stgit@tlendack-t1.amdoffice.net> <20181212000518.GX27375@zn.tnic> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR08CA0013.namprd08.prod.outlook.com (2603:10b6:805:66::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;SN1PR12MB0189;20:HIXwjmVpD6OJjpeIhrTDq0esAcw+FGJCIPcHx3ImdB9p6uXsuX7GJTG0MVUh6lQXaJuR1lJsP3AUOUzl9ugcQRDQEWu4BrRrWq6bXjfOkcG632mXAUEmFdEukOXmfnXg4JGOsz5OwOF8DPNrutIlDEij0BVH96YvojOFdSZVFAD44pwFwDdFd/oHTah0KxO1GPVH5ptZ7VQwJPwL18TYINDVbZZ/iKxefbCm4kkaN6bvOWVD8v5yAxcyF6KSrok/ x-ms-office365-filtering-correlation-id: 5b79965c-7e8e-47b7-4966-08d6603aa82d 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:SN1PR12MB0189; x-ms-traffictypediagnostic: SN1PR12MB0189: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230017)(999002)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231472)(944501520)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB0189;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0189; x-forefront-prvs: 0884AAA693 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(39860400002)(346002)(136003)(396003)(199004)(189003)(52314003)(71190400001)(99286004)(71200400001)(6306002)(86362001)(66066001)(36756003)(68736007)(3846002)(6116002)(4326008)(53936002)(6512007)(31696002)(6246003)(229853002)(256004)(8936002)(81166006)(8676002)(81156014)(6436002)(486006)(476003)(2616005)(11346002)(446003)(97736004)(14444005)(6486002)(105586002)(106356001)(186003)(31686004)(72206003)(386003)(2906002)(53546011)(6506007)(26005)(102836004)(76176011)(52116002)(5660300001)(54906003)(25786009)(110136005)(966005)(7736002)(305945005)(7416002)(478600001)(316002)(14454004);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0189;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: JsU0Lf/PfAWwZzbUBznCu9e1lsD+Ix3XHESlDFV2IKiyZUPN0g6umyX428CUUewMPRioDx4rM1gpagWiudrxBHJkXG4b8p6xla8082h/dXxwsPae76wgMLEsSZHCvmGXFCZyFqmAQpxYNvOX+DhP06eYY/VhUipYdL18obvfVI9OewExhdUNzsKYCZsvQ/7JhBxiXWwQOHWh5oiIN86DEqjzL/at5MPdnoU1pvDj+Ud2+nrxEYNg7kHZSACCjCUHZR0Ynlwz9zLaW6a8mSnis8SDgIhyLxhnunmATw5H3S27Jiso7HIIFmXNSaj+VhAy spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <854E731FFC90754682CA6A451684C867@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b79965c-7e8e-47b7-4966-08d6603aa82d X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2018 14:03:57.1278 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0189 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTIvMTE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