Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1130540imm; Wed, 26 Sep 2018 12:11:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV63HoV1LSKWxU7lg0NUUvk3hhie/tPm8vBbsa2jvAmjeDp3iZEBViGMIInbStM7BqKpECL9+ X-Received: by 2002:a63:ac56:: with SMTP id z22-v6mr6913053pgn.444.1537989107191; Wed, 26 Sep 2018 12:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537989107; cv=none; d=google.com; s=arc-20160816; b=tG4p95AHTO4oHsEWm8nFpsQflAcfHMxEJyaPHdRd9tgKMU7nqBi53nYA/O5cEpG7nr olO7VhRq/a2lMbuzmqwqfyYwtTDngZLnKJz02SGemWGlJ1XRTg46n+IUEekeGn5IfB6w VyLg5GDc4oAgxRyNHfDavNVZx8F5exhi3JjafUuiipssMaw4g5cRV2haH9t0zTzxFeRk qyUwkf3LuW9R8gzSm6v8JJnKolSriRCXHxJQMH2WGlV2qMjVDzTBqFWbRzUyz55+mpXR HWHVtVgAo6IBVVARP6xRV9fYxywD9DPCQf8WnySVlUrlSoDSJeHly7lLVFhXeIRrHkec PfRg== 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=D00xAK8WgNemTCfSnTVJBkMqpBnKrFx3QK/zpPX08TA=; b=I6R3338LpnABeaDowXuNVcsbpwVm3mlPkOMMxfID4NjDQNtFD5oA5Qb84Ppu5e6VPE 4SLgmzwu+dXvFB1AMILVwZjL/rLfgQXgwS+/ZcYC35ukbdx8JWk3HZPqwBj75MVSzMAJ 5OJweTM7JoPrCvTGJ3Wvx4czd0l0MTcA7eeG3mtWXPvC2TT9tqgSGbMelL5zvivxPVf1 cseosgCotSs9f/fJsxnkjYLH/oJVrqSb61gaMTh/PQ7r2zEAeWtwUfH7IpY3Yq9JdyHq 19HJcc9y4E9M1zvDAAoAoqPQ3AaANPNtzY/dzhLBGtwAzGeOJWYU/Zxt69oL0Ad2zB8E TaEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=YMmSQWTK; 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 v126-v6si5865182pgv.10.2018.09.26.12.11.32; Wed, 26 Sep 2018 12:11:47 -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=YMmSQWTK; 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 S1727493AbeI0BZd (ORCPT + 99 others); Wed, 26 Sep 2018 21:25:33 -0400 Received: from mail-eopbgr700072.outbound.protection.outlook.com ([40.107.70.72]:10018 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726304AbeI0BZc (ORCPT ); Wed, 26 Sep 2018 21:25:32 -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=D00xAK8WgNemTCfSnTVJBkMqpBnKrFx3QK/zpPX08TA=; b=YMmSQWTK8AAMJPv7tcDklTho/YF9k5TUmVEBVLl9Nj0l0umgIhfU0ZgYg48YDi0pL8PfYZFnEeKTi4UKjWQ0zZp4BV0wY9zpukdc+9mvstVYZejr+ZqYpqOMM+Sliml3Zu0bGc+gvWsAqOkNWt2+4Ati9Sp9bmSfkD/xeFW6uww= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB2576.namprd12.prod.outlook.com (52.132.197.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Wed, 26 Sep 2018 19:11:04 +0000 Received: from SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::2d1b:5638:5680:80e7]) by SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::2d1b:5638:5680:80e7%5]) with mapi id 15.20.1143.022; Wed, 26 Sep 2018 19:11:03 +0000 From: "Lendacky, Thomas" To: Tim Chen , Jiri Kosina , Thomas Gleixner CC: Ingo Molnar , Peter Zijlstra , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Andi Kleen , Dave Hansen , Casey Schaufler , Asit Mallick , Arjan van de Ven , Jon Masters , "linux-kernel@vger.kernel.org" , "x86@kernel.org" Subject: Re: [Patch v2 3/4] x86/speculation: Extend per process STIBP to AMD cpus. Thread-Topic: [Patch v2 3/4] x86/speculation: Extend per process STIBP to AMD cpus. Thread-Index: AQHUVTbpuNPfpG7ENUK1PyuvJmZ7v6UC0QyAgAAd0wA= Date: Wed, 26 Sep 2018 19:11:03 +0000 Message-ID: <769e4725-754b-9185-7d91-c0f4dfb06b09@amd.com> References: <705b51cba5b5e7805aeb08af7f7d21e6ec897a17.1537920575.git.tim.c.chen@linux.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR05CA0008.namprd05.prod.outlook.com (2603:10b6:102:2::18) 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;SN1PR12MB2576;20:E6mirWw8V0RXXZCRBCF64+KZEYHH/+3AO40KgSU8oRFqXXgYftaRaEOz5FacgHjHu1kkKm4vT4NvxgjgOuoMPVn3TIG3rOF/UkiXV9iYJfn2ObYDJM0UObd7knVA/hjib+7tphpfw3ceCA8k6T3okhU/hLcXsV5yydBcvyeWdCMalc5kEDCHMdNaOJXj0nKdVTCxzgthQM7EerM7M446FkLV94kk9HOw1G+uJayzI4Y/lkfbARJTUN76BwzUJQxw x-ms-office365-filtering-correlation-id: 54585d41-a95d-4ec5-f063-08d623e3cd6b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB2576; x-ms-traffictypediagnostic: SN1PR12MB2576: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(767451399110)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(201708071742011)(7699051);SRVR:SN1PR12MB2576;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB2576; x-forefront-prvs: 08076ABC99 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(366004)(396003)(136003)(39860400002)(43544003)(189003)(199004)(36756003)(6486002)(72206003)(486006)(14454004)(53936002)(229853002)(6246003)(316002)(3846002)(6116002)(71200400001)(25786009)(71190400001)(6512007)(8936002)(6436002)(8676002)(81166006)(81156014)(2616005)(4326008)(476003)(66066001)(11346002)(31696002)(446003)(256004)(106356001)(14444005)(54906003)(110136005)(478600001)(7416002)(86362001)(31686004)(105586002)(386003)(2900100001)(53546011)(6506007)(305945005)(34290500001)(76176011)(7736002)(52116002)(26005)(97736004)(68736007)(186003)(2906002)(5660300001)(99286004)(5250100002)(102836004);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB2576;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: 0lJfrBj+cgS2I7JxhlD4o/6UsX+SkWiOUGQ+Hlnrr1MP4uNwGFpK44apP4LgTNxkqrQIWO0E81hwLhbhERBTKHnDiuvuv1+/dc2wcjiqorNDiQr4IU8mmQ2axUYNv8odJ6TeoFt1bNHzVFLB5icM4Xm8bu7RHoVxxqqYGVrDfxOkYe6CqMZu8ALuQRiCkv3eG5cj6BCAWuAGXlM4BMIvXSb68/tbleI4B3DMQgQqAJo2e/4LBONiyTMx4l0tbwxQpy7Uf4zfbuhhvcRL+bpWbDWsyQxLQqgMvfyEJDHTBSkSJsTWSOhUuDPrCofoa6jQBQzLV7TvQ9hc0zuPp5b1yXp4qhGpsYVB/UVRF8rQ9QQ= 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: 54585d41-a95d-4ec5-f063-08d623e3cd6b X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2018 19:11:03.8268 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-C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