Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp503979pxu; Thu, 26 Nov 2020 04:25:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwg2lIFlPHPQDqQObJNcnfTxTIA3h2Yo4kJxozFxaDz2OXt6tzz4xYawiYIRrRrdmK+fveL X-Received: by 2002:a17:906:2747:: with SMTP id a7mr2521993ejd.58.1606393548751; Thu, 26 Nov 2020 04:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606393548; cv=none; d=google.com; s=arc-20160816; b=j0NMgk0rlPW73Q7eWKdBkmr2WOEWrFCJ8fIrVkvxys5sjYDT8gnATWIdTsOXOpKSN0 TadiTOjp+Yv4hHOcVZAqeXgWdaTd8BVplOX+N3oRy0oP8ukW9HXbCpUNIA6vcryPxU5X uDRRoqVVE9vLunzbqC+HQwpUkC/Ftz5eYG3nvWSTlaaLtoRM+nhhpR27TPunwG/k0eGR vQac3dtLiSzsat0nT5+lyn9f8VC5K146nzp7SVfkjImyLOZ1Zpe9D88il8TpSUa4f3so 3QKn7p6EPLryexHZOJVzAKak6zKQfw6prTMGFlCSlXfw1P+YTrdVAbAgcMDuKRyx5hW6 Auvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=mxy39yWj5RVUiaFh1SEO1pqw1vyYRUxNHy3KF12oS/Q=; b=qvrEvv5tSrDK1h5mIx/ARnFjbdKF91ijGzwc/HdQOaXsmZALS47VPF+/+Az4trbKXN XGjyW8/gdqAX3w7NwVrRQRljPTI6s+LVBHHTvZoV1uiJ1u9T3+HV15689/NFe4iCBWG1 ql5gJbXeK3kPhqyOqZP2BovhwKPoH7QY076jOsD+nWRFMcxR11yNsVHq6PaKpmJ7IWVV EZA8WnqblxHYJGVja/LbaCNEbP/mIqIzUX+ZPXA95rnMNwM95HJ2x4AwPYO52LOnolpe YLryYYhw3Fzusk+XMjLHahzbcbc+eMrPG58LnKAF2/GCQiLlkpdyXIqXPIkU3sG2KQTK /vzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=TTPm4DK1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=M63xevgl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pv12si2925262ejb.613.2020.11.26.04.25.24; Thu, 26 Nov 2020 04:25:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=TTPm4DK1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=M63xevgl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387504AbgKZMOp (ORCPT + 99 others); Thu, 26 Nov 2020 07:14:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbgKZMOp (ORCPT ); Thu, 26 Nov 2020 07:14:45 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3BF0C0613D4; Thu, 26 Nov 2020 04:14:44 -0800 (PST) Date: Thu, 26 Nov 2020 12:14:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606392883; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mxy39yWj5RVUiaFh1SEO1pqw1vyYRUxNHy3KF12oS/Q=; b=TTPm4DK1Gp1MooGgbIJtCzIPQ4j1IU9UoKDUJEE6OJfUXsRmlikP3qRkWfSJBCycXBfwfd XRX2/6ipbqeDKs2YC1ziMgXfF9P2N8JT8DGj6P2qx0iCus27frUCD7GLTODPYoHr0mvbmG 3qxrWt5JJ9OHzVSn3mJXCwVdMqzKdIScqG/VMP3Dru99FE9R0uUigt8QDXzu3w3SZIKgDO Kyc2bZzwkV+7V6dQstm6Xrl7tahwCE0hedWkAi4DoHEZXwkj4MPOPsGBLouerISlN48Gv9 i2Ln81PALRoaYy3Wdikj7IGq0LoWSSPLDlfKK9E8m66JfRdKerypr6HudqKJ+g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606392883; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mxy39yWj5RVUiaFh1SEO1pqw1vyYRUxNHy3KF12oS/Q=; b=M63xevglf9+ZBRxYr3HKMA2nydFbU3v7My13ZILeE882w7iMMXUxvsjM1FcOjrqNW7NV8e 4aczMPDVQbYnfhAA== From: "tip-bot2 for Sean Christopherson" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/asm: Drop unused RDPID macro Cc: Sean Christopherson , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20201027214532.1792-1-sean.j.christopherson@intel.com> References: <20201027214532.1792-1-sean.j.christopherson@intel.com> MIME-Version: 1.0 Message-ID: <160639288228.3364.6749574723160205981.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 8539d3f06710a9e91b9968fa736549d7c6b44206 Gitweb: https://git.kernel.org/tip/8539d3f06710a9e91b9968fa736549d7c6b44206 Author: Sean Christopherson AuthorDate: Tue, 27 Oct 2020 14:45:32 -07:00 Committer: Borislav Petkov CommitterDate: Thu, 26 Nov 2020 12:58:56 +01:00 x86/asm: Drop unused RDPID macro Drop the GAS-compatible RDPID macro. RDPID is unsafe in the kernel because KVM loads guest's TSC_AUX on VM-entry and may not restore the host's value until the CPU returns to userspace. See 6a3ea3e68b8a ("x86/entry/64: Do not use RDPID in paranoid entry to accomodate KVM") for details. It can always be resurrected from git history, if needed. [ bp: Massage commit message. ] Signed-off-by: Sean Christopherson Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20201027214532.1792-1-sean.j.christopherson@intel.com --- arch/x86/include/asm/inst.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/x86/include/asm/inst.h b/arch/x86/include/asm/inst.h index bd7f024..438ccd4 100644 --- a/arch/x86/include/asm/inst.h +++ b/arch/x86/include/asm/inst.h @@ -143,21 +143,6 @@ .macro MODRM mod opd1 opd2 .byte \mod | (\opd1 & 7) | ((\opd2 & 7) << 3) .endm - -.macro RDPID opd - REG_TYPE rdpid_opd_type \opd - .if rdpid_opd_type == REG_TYPE_R64 - R64_NUM rdpid_opd \opd - .else - R32_NUM rdpid_opd \opd - .endif - .byte 0xf3 - .if rdpid_opd > 7 - PFX_REX rdpid_opd 0 - .endif - .byte 0x0f, 0xc7 - MODRM 0xc0 rdpid_opd 0x7 -.endm #endif #endif