Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1493859rdb; Tue, 30 Jan 2024 23:26:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8IiflseLM4oOugpZvGUPHpzbGRBwKNWp0EtBRz/RXrKI4Rlo+TK1eW0STfzVigQFrGfhF X-Received: by 2002:a05:620a:a50:b0:783:e017:198c with SMTP id j16-20020a05620a0a5000b00783e017198cmr728882qka.37.1706686007202; Tue, 30 Jan 2024 23:26:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706686007; cv=pass; d=google.com; s=arc-20160816; b=ojy3w5bXETmZf7J1JE4KPfjhqUTjEdFRQ/0kOpFzqxAeHiHIWwMT6aSPii3ntMprfS gM5g+SxGuZrMWV9yYXLXL4lcnBczAIDy689laiXiHVN1uddoPSm91OuBqGVsi6MUWZro R98SCIwJ33JtBzfB1Ez4yl06pumOQxlnK5L+INwr817TGiSF7BP469hFEWQWfX1qACNN i9NNL5SixNkC9nNJVFymU35wrv91h0pdiy5tcfdx0ruAPCyqPiNR8vJxCPskAS9bepuT 7lq9D8D+f78/2xTnYNrScXNx872WZLjNbCdEVdY6Uill1Qe4fedR+Rj938nAXbq59XM0 4knw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=zbssHTytXussJORHReP6crc7D+sb3cYHQhajzUG18Lk=; fh=l9Bns2ndTjRsZB4ZjPXJ4ugK/25oDhBrMgN+sIvXdu4=; b=W0Am6DKQ2goDk+4LgqMF288G5lFYycwyVcwLK9QTV+QkCbfPJmts1G77JTPcF56Jxd wgjpOOYWXuAb2M01Gw9/DaaQnzohnKaNh52zb61gAYJ0Ph0fdJ1RT8xkkscY7QPWZie7 /b3tMVXCI+M4bD94PZ9I9oeEdHgszZpB83w+CV+5Xp+eI9pVNPEPhnOYhNCUIlOzd8At VniGXQvRK9evh62kBZUgVjHtCOwsqpnV2RW1yCEx8p73GM6K4yS2AFgisTvbKCnOn1yt f/PFnBEngH9UJmVauXqZcibMxdfzAdbcdjdkpcmpL93UaxjVVe4V6x6NtL6AOrBfFGmp xvEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=r6fgI2eq; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-45917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=1; AJvYcCX2dJ/y4KY7FgUX89uaQis575v0vy81letNUXX58dhc5hFNQoHrXh8w3RObvbBHMC1j0v0BfYd2bTa3YaIhlBJAhlWiiRLqltZ6cmSyDw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q7-20020a05620a038700b00783f7c15750si7020073qkm.446.2024.01.30.23.26.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 23:26:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=r6fgI2eq; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-45917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F02461C25D53 for ; Wed, 31 Jan 2024 07:26:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E276880C14; Wed, 31 Jan 2024 07:21:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="r6fgI2eq"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XBp38Zrs" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08D107F46A; Wed, 31 Jan 2024 07:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706685691; cv=none; b=TOk3xwj6KlMH89hTDIUwRWSDtFQ04XjEnhOlfFWeOTNUfx88BnePeOUTQ6N+lgZMiUJUEM0sCQFcE+Eq8u0p0T4NV06iiT45JVKGO0eNBAj7a11RorM+rct+aKg7NtsdnDRtbxpRvZiXzAd9tNM+G085tLSolfXtZmH6R4YIrNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706685691; c=relaxed/simple; bh=1/8vwmwFCKTFrAgaDpSPt+AUdKPT/4rZ3+jhYi5F5cc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=TPbNw5XBBj2B3gacNG8KayVniXmPPwAxHQNx2phB/r4n4yU9ZE6QaDOKFbZ29tbwiwRzbkJ3KJ5lMnd5oP+1g5wHAYCwjGT3qWF0lyhkOA6tGb4rjgDJnJW+XJj9J2qYBf6MMl6YDKxTvEEcY/SRqARQLQqUO6RL/NbSLTYgh+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=r6fgI2eq; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XBp38Zrs; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 31 Jan 2024 07:21:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1706685688; 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=zbssHTytXussJORHReP6crc7D+sb3cYHQhajzUG18Lk=; b=r6fgI2eqlNfiKGWxKiiTZo9XdR6KSd3gOgWOsFkrJy1smtaXGY5ta5BoOkaAEiuu0X4GTf gnZ2juDCRLvKTtrI6O7IZmBNrdMmO4qgfDLpNtUxFiNZYpB0RmgD5mOgsjD6k1bltPXRIV WtzTUUlSujrPhEddPyLqH8YBWbehxA/yVmIhjIsFvM30WsEUbGWggkfNU/se0VRMbnfCFR AVKlYm1vckKfAxFOOsmdPuXluiUqMleKwfiCyCaet3EdFxui/hlsKws1bGdLVxn5jm2sb9 K8OkTfYSrP+cywGiEWhRUbMPLdD0KtW/rfJ1pGURUFbsOSDjZnxBTPsGqNFHzw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706685688; 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=zbssHTytXussJORHReP6crc7D+sb3cYHQhajzUG18Lk=; b=XBp38ZrsdtcdIsjkJXEfb6EXgD4ttUqRswYAGqxBvJ8zJh6zXv9+4KthVT8q8KsI2C80zx ntbD/zYOAOtCW8Ag== From: "tip-bot2 for H. Peter Anvin (Intel)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/fred] x86/opcode: Add ERET[US] instructions to the x86 opcode map Cc: "H. Peter Anvin (Intel)" , Xin Li , Thomas Gleixner , Shan Kang , "Masami Hiramatsu (Google)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231205105030.8698-10-xin3.li@intel.com> References: <20231205105030.8698-10-xin3.li@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170668568785.398.7623458617973699748.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/fred branch of tip: Commit-ID: 567f7205dd7a0e168314b480e4bd80c77cbe71cb Gitweb: https://git.kernel.org/tip/567f7205dd7a0e168314b480e4bd80c77cbe71cb Author: H. Peter Anvin (Intel) AuthorDate: Tue, 05 Dec 2023 02:49:58 -08:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 30 Jan 2024 18:20:34 +01:00 x86/opcode: Add ERET[US] instructions to the x86 opcode map ERETU returns from an event handler while making a transition to ring 3, and ERETS returns from an event handler while staying in ring 0. Add instruction opcodes used by ERET[US] to the x86 opcode map; opcode numbers are per FRED spec v5.0. Signed-off-by: H. Peter Anvin (Intel) Signed-off-by: Xin Li Signed-off-by: Thomas Gleixner Tested-by: Shan Kang Reviewed-by: Masami Hiramatsu (Google) Link: https://lore.kernel.org/r/20231205105030.8698-10-xin3.li@intel.com --- arch/x86/lib/x86-opcode-map.txt | 2 +- tools/arch/x86/lib/x86-opcode-map.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/lib/x86-opcode-map.txt b/arch/x86/lib/x86-opcode-map.txt index 1efe1d9..12af572 100644 --- a/arch/x86/lib/x86-opcode-map.txt +++ b/arch/x86/lib/x86-opcode-map.txt @@ -1052,7 +1052,7 @@ EndTable GrpTable: Grp7 0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) | WRMSRNS (110),(11B) -1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) +1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) | ERETU (F3),(010),(11B) | ERETS (F2),(010),(11B) 2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) | ENCLU (111),(11B) 3: LIDT Ms 4: SMSW Mw/Rv diff --git a/tools/arch/x86/lib/x86-opcode-map.txt b/tools/arch/x86/lib/x86-opcode-map.txt index 1efe1d9..12af572 100644 --- a/tools/arch/x86/lib/x86-opcode-map.txt +++ b/tools/arch/x86/lib/x86-opcode-map.txt @@ -1052,7 +1052,7 @@ EndTable GrpTable: Grp7 0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) | WRMSRNS (110),(11B) -1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) +1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) | ERETU (F3),(010),(11B) | ERETS (F2),(010),(11B) 2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) | ENCLU (111),(11B) 3: LIDT Ms 4: SMSW Mw/Rv