Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3130507imu; Mon, 19 Nov 2018 11:05:33 -0800 (PST) X-Google-Smtp-Source: AJdET5egJd5cx8SLuwGqJqnCL7mmtt8zKULQzytQgHpF0rPcAWRzNTqBebNLz8FQV38l4Cr23MGc X-Received: by 2002:a62:f5da:: with SMTP id b87mr24630968pfm.253.1542654333617; Mon, 19 Nov 2018 11:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542654333; cv=none; d=google.com; s=arc-20160816; b=kx+Ctsdujb0F7bcp+96Qnn5+tS/DdNzSuiQ2jq48IiNBFmFcjjD2lK0m7r/xrx6ihY mOc3q2aqSJdfDG1QZPAF9Ylq05XOANeiNPFpQEg6+8XVVwXBu5AwDSkadEJsRQPLGBJa v03Vu4j77QjVrLEEWf0mT+j9PewwrY/3AybpKbo3V08s0uJqe3KKfSxXhZ6IpXdlUsIe k7qN1LvAGnxSSMlnjSaIGckaijMyhs5qKNiNuvK2vR/Hj2htpwh9aBK+Fq60c4H/SokH daJMU4OEFS5tFi0Y4L4VyIemSDpspp+BhVjJaZAIwGwHUI9dChttFGSnNEFOxXk9zBsS N/8Q== 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=lRfawgeaMVA3uEvQdJNacZ6681JCerXlEUeDn+dxmtw=; b=fJDXX7IIAmM48b7x3+VZkUGtjdWv0yVhbQ2ZYetMd5Wd3dZRo1k9gDtzXSVwWeNGU0 9FKe7UqCvqlud701NvzC5HE5Nxv1h+76o+1f0vM2ldjMsdx76rcWAckdRh1k8c24MznG 1is2zVCOYEyJ2NntcpgvM6AQgg+SllbFyVOpwcTYvotdnzvgZOiBYkH71+74PE4II+u4 8u9p+W/TQ9awuRMyIEnBwF4HzflvPEa0j/6VthiKSIXHhN/zV5KFCAYTU4TAUVp/dFZF F9+3pakKl8B/RCq7IMe8EvC5ofMm/ZuAr9Dz1w/A1FfVLgdaLTy48yJ77HqN0qLRSgic UNTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=n6Nfnwrt; 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 d10-v6si43309563pla.207.2018.11.19.11.05.16; Mon, 19 Nov 2018 11:05:33 -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=n6Nfnwrt; 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 S1728619AbeKTF2e (ORCPT + 99 others); Tue, 20 Nov 2018 00:28:34 -0500 Received: from mail-eopbgr790051.outbound.protection.outlook.com ([40.107.79.51]:19136 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725969AbeKTF2e (ORCPT ); Tue, 20 Nov 2018 00:28:34 -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=lRfawgeaMVA3uEvQdJNacZ6681JCerXlEUeDn+dxmtw=; b=n6NfnwrtofZWGflspxtoW2ncgKHcR0gU3Fd/hBMaFCiuM481JAx7dxaYa+emEwqLhss4Te5X75HK7dVailXBnB2SkRNuJbaJBKTyP3/sdg33lqZ0HqNzSkFwiN8BQtSkkoSb/vKNDh5kTvndDIx8dTFskcxGfG6I1bgId0zlRNE= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB0509.namprd12.prod.outlook.com (10.162.105.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.30; Mon, 19 Nov 2018 19:02:55 +0000 Received: from SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::c8a8:fa09:4724:f102]) by SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::c8a8:fa09:4724:f102%10]) with mapi id 15.20.1339.026; Mon, 19 Nov 2018 19:02:55 +0000 From: "Lendacky, Thomas" To: Borislav Petkov , X86 ML CC: LKML , Andy Lutomirski , "H. Peter Anvin" , John Stultz Subject: Re: [PATCH] x86/TSC: Use RDTSCP Thread-Topic: [PATCH] x86/TSC: Use RDTSCP Thread-Index: AQHUgDgjww2nHNM/gUioDqosgVVqMaVXdIAA Date: Mon, 19 Nov 2018 19:02:55 +0000 Message-ID: References: <20181119184556.11479-1-bp@alien8.de> In-Reply-To: <20181119184556.11479-1-bp@alien8.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0801CA0023.namprd08.prod.outlook.com (2603:10b6:803:29::33) To SN1PR12MB0175.namprd12.prod.outlook.com (2a01:111:e400:5143::15) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN1PR12MB0509;20:XYKsXfS0zGenrhu6xwVjBdZC5hSlEbc+gHxkuqDCpkQvywB2406sdZynG+p074wiHDki8L6bEDn9rCnQcZ3Ko5fsVxJm5EXg+RiESEgByt9zeqxr52XZckmzAgqhIeg4vcdKHmLuwT7G8C4W5+EOPB/SVk6mu7vgCPFx+4igXOLTtiUkTt64TT8lufohGkgzrdXHMf/6sB6QtyAXciYq3U5mZmRtIc/Rn5gCkAa0+uFMQ71hSYlUjwOscV26k67m x-ms-office365-filtering-correlation-id: 109e46dd-f189-41e7-578b-08d64e519cda 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:SN1PR12MB0509; x-ms-traffictypediagnostic: SN1PR12MB0509: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(788757137089)(767451399110); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231434)(944501410)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB0509;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0509; x-forefront-prvs: 08617F610C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(39860400002)(346002)(376002)(136003)(199004)(189003)(102836004)(53546011)(52116002)(6246003)(99286004)(386003)(6506007)(26005)(446003)(53936002)(76176011)(11346002)(6512007)(105586002)(72206003)(6436002)(2906002)(478600001)(186003)(106356001)(229853002)(6486002)(86362001)(68736007)(54906003)(81156014)(14454004)(8936002)(81166006)(31686004)(2900100001)(25786009)(8676002)(31696002)(486006)(110136005)(6116002)(3846002)(2616005)(14444005)(71200400001)(476003)(256004)(71190400001)(66066001)(7736002)(4326008)(5660300001)(36756003)(97736004)(316002)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0509;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: bhkWayi0/ONk0635mk2id32HnUr1hl1NnWziH/Tm0jkspLa0+ZWqEejZpuEtaMZyz5ScjisCNPdVmc6ZhgTfIfK8d1vhkdVnRhRiGTd8nW+P6oIy3stjnsGz39VPFVw0MEfiR+Ws9uTe8n7y8VyrrOsVxOFm6/VGWiWz2KULzciaPwYLdI7LEtPH2LwebzvWvXAqSaRBjen4NG94wFMoncSfhVNmH/nguvnKBzBbuV6snGIV/y3GZaJ1JtdniqPeNsKDK3YlfIlYwZ76WxNMZMnxSoGrhvYQnLl+7lpFjHMTq3cZus32g8qlZ1J+WTP7DCl9UzCGLoXzRt9ULZBeLaS1QHMfqzQ082nH7eSIXRs= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <411CEF78609A524CBDF438B6544B4816@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 109e46dd-f189-41e7-578b-08d64e519cda X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2018 19:02:55.5845 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0509 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTEvMTkvMjAxOCAxMjo0NSBQTSwgQm9yaXNsYXYgUGV0a292IHdyb3RlOg0KPiBGcm9tOiBC b3Jpc2xhdiBQZXRrb3YgPGJwQHN1c2UuZGU+DQo+IA0KP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