Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1225265imu; Tue, 11 Dec 2018 15:14:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/VdfglDk+T4/x7B8hwxvEEASB6sBGakiWXjwmvX0YTX2ZQXdJcRxdEj7AMWfeNdJ5U3dELZ X-Received: by 2002:a17:902:6e0f:: with SMTP id u15mr17528572plk.175.1544570047562; Tue, 11 Dec 2018 15:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544570047; cv=none; d=google.com; s=arc-20160816; b=gEuzTjAaL3BBnRk71ih5JVVWdkbsOWi+XooY4SfhOFyOJsPyh38+SC22qg344pdV3h PjMXA8aHQH0sIdlk+I8evQ5dZtFYiiHMFx4KCBzyNeVTdIHEpmG5xlC9lDnzf87rWBfA DejTN1dO4sqeTr76VaToc2ep0h+ZJ8XoeYqeviF5eERMPDvxoPG2xca7w7+OLO+If4+F mdsPQOntr6AoZc5h7ApBNwMUwOhXRV4/jGEErXFik9JB5dTRuFbNcHICYEemYrwMIWm1 NVT8qX89HIE3tLqRKgPd7kcXcxEJSykFFo37d5EJgx742RmtfJhzfLrEqtLt1bjEM0v1 nPsg== 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=0i1KbrZqiattuFQY4R+faW61pIwLO6O6eYsfQhyO0qg=; b=wAesHUb7jkb2b8NFMQQD999DJxBygFwmvM6P2SBJ6H8etNESi6BeeKF3hc7/KOVdoP JhdAUkOTpjXu+0UMgx6XQaPsfzQMjghEmsHjO2wP3nTRaJ4lHxhiNES+qFjqcpFK1wZ/ 0AY57dl/spUT5oujY88PgBkSI1QNDWc/NYeV5qwB3aT6YNpbJAcQChuNoQQ2Zhg/jLpT fsBlUrESKp9e36H4WDAHSFxLwPvvfj6jJvpCSyukaEXx5oDLn2UWbG+o9yi+Va3+AXKL +qmtruLrmPsUpb9VT8pYSL90gflwzolPz/B/rQu53/IUSN3HegNHji1c+rmPy3YxU/DM 6/zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=A4Tntj+8; 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 c6si13357231plr.414.2018.12.11.15.13.52; Tue, 11 Dec 2018 15:14:07 -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=A4Tntj+8; 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 S1726256AbeLKXMp (ORCPT + 99 others); Tue, 11 Dec 2018 18:12:45 -0500 Received: from mail-eopbgr810087.outbound.protection.outlook.com ([40.107.81.87]:2290 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726158AbeLKXMp (ORCPT ); Tue, 11 Dec 2018 18:12:45 -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=0i1KbrZqiattuFQY4R+faW61pIwLO6O6eYsfQhyO0qg=; b=A4Tntj+8WCjK+PJAb6c9VWAzc/dwrhfGOvEgeOx14K5k8Y2AWKeRpq2ZqlQQUriw8FSa2ZWGgfJFn8dsRIAgVFUfylSK0lKbOTRoeEJPG41lSvyZDMrSle4X1CQNJTKSKfoOenc5Z3RNC2qzbQ7QrrKLlUpnPWYsXzmu72l308Q= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB2384.namprd12.prod.outlook.com (52.132.194.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.19; Tue, 11 Dec 2018 23:12: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 23:12:41 +0000 From: "Lendacky, Thomas" To: Andy Lutomirski , Borislav Petkov CC: LKML , X86 ML , "H. Peter Anvin" , Josh Poimboeuf , Peter Zijlstra , John Stultz Subject: Re: [RFC PATCH 4/4] x86/TSC: Use RDTSCP Thread-Topic: [RFC PATCH 4/4] x86/TSC: Use RDTSCP Thread-Index: AQHUkaAqfD7bV8pvnUyLofBVRH7Ye6V6JxMAgAADsYA= Date: Tue, 11 Dec 2018 23:12:41 +0000 Message-ID: <59aad362-4a5b-dd8b-642f-0dc3f83cf7ee@amd.com> References: <20181211222326.14581-1-bp@alien8.de> <20181211222326.14581-5-bp@alien8.de> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR04CA0023.namprd04.prod.outlook.com (2603:10b6:805:3e::36) 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;SN1PR12MB2384;20:K33qwu+sTLRrCjxxC1zDb9tku7Q49PSDGq4DKv6To4H+M+10bROfXiCDQ1PHpqMxfmJYfWQwMm307CwIH8g+smuXmvi+7AB0hFrfDNFYm6+WnbMVz3su76j8St5bLIArMwu4Yb3slNFgcbVlPiOkIjb7MF8wZB7x91tlNIkUNvXxdO3qFFOoVb1suXqvuGq8CTSW/glLSMJWOHlteQ6KoHIC8LvcvrNqAiwsn6AL9FLPFcsS8M7qB97bIf/PglhT x-ms-office365-filtering-correlation-id: 2a90dcfc-92a3-452e-cd1c-08d65fbe2655 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:SN1PR12MB2384; x-ms-traffictypediagnostic: SN1PR12MB2384: 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)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231472)(944501520)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB2384;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB2384; x-forefront-prvs: 08831F51DC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(346002)(366004)(396003)(136003)(199004)(189003)(8936002)(99286004)(7736002)(229853002)(81166006)(305945005)(86362001)(25786009)(31696002)(6512007)(81156014)(6306002)(316002)(53936002)(8676002)(54906003)(6486002)(6436002)(110136005)(6246003)(71190400001)(36756003)(4326008)(14454004)(31686004)(76176011)(52116002)(386003)(53546011)(6506007)(2906002)(68736007)(5660300001)(478600001)(476003)(11346002)(105586002)(486006)(2616005)(256004)(446003)(102836004)(71200400001)(14444005)(97736004)(26005)(966005)(66066001)(3846002)(6116002)(106356001)(186003)(72206003)(217873002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB2384;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: y9M15Wbn3K1UDDz7iqFbjgigJA4AhOgOcBCRgplguWBVfYUzBoq0HMMUub8RX8mGt4FsWMv0G6AtZvzipZBhIDcd0PDP/qF8E6By2E5g4LAiq84SeWMgfDjSvOxOcJsPXIK7fDgREaIYt6X4ELfXJH/5VkpzaW8qW27O3+clOYpQmG4LsHJdbavvaldyX+Rpw0GCMy4QHg0v0+we13d6Zg/Eoj9nNIJ4VlgxqgRe+0sElUOMApBcNeONdv4K3tnUu+h80Qac5N5qImyq8MHEA0dOCIjprV/jwx3n6x1IV+tDQQno35CpMJsUELpRrigI spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <8E4085E9D0F76847B2B8109AB6F6DCC5@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a90dcfc-92a3-452e-cd1c-08d65fbe2655 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2018 23:12:41.4648 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2384 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTIvMTEvMjAxOCAwNDo1OSBQTSwgQW5keSBMdXRvbWlyc2tpIHdyb3RlOg0KPiBPbiBUdW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