Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6254528rwb; Tue, 22 Nov 2022 10:43:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf6KMH9mq6vo+WYy4y19sRBHa9POjavVdo0eL62SwqsSQRa8wb4hNsY6nSK9WkF3kqOzd5wN X-Received: by 2002:a17:906:c406:b0:7ac:db70:2f90 with SMTP id u6-20020a170906c40600b007acdb702f90mr20812516ejz.297.1669142605222; Tue, 22 Nov 2022 10:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669142605; cv=none; d=google.com; s=arc-20160816; b=JwvCxgLkC+JWnUXti5tYiyOcAzN3noP2GOkqZwBqDzFv3IczIZLWiZl3Xj+odjM2gx XLqIicalBpjF7XFN8Lz3JfU0+WdtbhVHQkhQtFa7HF+ldrtAQnbZOWGn1qPIS9tEmFeX cBZ3rzsAzTzD2V6kqKKCcaEQsuS6byUvqrEYkQV+nqO9rzz/UqCNzzvOcpobhdZGztwy w0c7vYkF4iY6MYADj2tdAbALbWjuzspe07MAYDPrW0fzEmNpWSfsgT5bkiGIWO/wf9/G a5SjIrD6QbWmcz+oVsA6k9XNm58P0txqbd+5PDLyqofgLuPlWDnW55xE5AvHTRLH3XdR sQ2w== 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=OmY8pSPebN5KMTP5tVAW5IE+k8QrOqxPf8qBgU+NO3o=; b=Znen2jV0dYuc8OEy0yvUXpqElsAdbO8ym6hPjRby+Uq3+0hGMy/DtsMXYZK8z2EYZJ zULld+R8UMVRNbJVf5Ic0nIvDO5MjLkuSitOAmFbPr4Woh2Vo5dzp2YDDw29YjIREejK mFPK8kvLvvNS2XXMW2a4gROYIK0UH22fbAI1AKz/Dc94HHrhbP0Dou70a5acBKRNGXPq uFFOX71BZyx+R5I5V4REosl6kDQ6DzESSx1LZDyy6Rr/7mXhbkVRwdQAOC+02YmvUxIS 0VFvTKOe2nOOju1uqFJs1l86N1maQ+Wwlmmsu2aUuwK10UCN6z+sSwNRFAMaHPlcRpK6 rOgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jfBxqfQc; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu9-20020a170906eec900b007ad821844fcsi13111829ejb.528.2022.11.22.10.43.00; Tue, 22 Nov 2022 10:43:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jfBxqfQc; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234309AbiKVSFJ (ORCPT + 90 others); Tue, 22 Nov 2022 13:05:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234126AbiKVSEz (ORCPT ); Tue, 22 Nov 2022 13:04:55 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 048AF69DFC; Tue, 22 Nov 2022 10:04:54 -0800 (PST) Date: Tue, 22 Nov 2022 18:04:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669140292; 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=OmY8pSPebN5KMTP5tVAW5IE+k8QrOqxPf8qBgU+NO3o=; b=jfBxqfQckW2PXWKSLVmYb+Mg9uMDbja+88ZNRfZiW7jF7jo07jCCP/yg3SORXETLuYGpWA 5PfwvIH3NU/uzgD882kjthqXDWp2/bAkuDuVrW7rcX9rl3tgooE0f0zpp3jDH+6Z91LhkT T1Ud+FfB8LG4Emn2gppH+rdh3Dqi4+HGQmN102cZ7L9UTk5+WHJwjmoXX61vpL+pioQhZa +S73bGDmwxSfWg8l4v+tmVDIPmJBgYNIaiux0rBYV41KnFp2WYC4a1kQX+r1/dN7nAqi3V LwxTYFJDPt95Jxsh9UwWH2/IMJREy0vJgFmoQeUqkzXpOaqKZF8lx/DMIQr64g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669140292; 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=OmY8pSPebN5KMTP5tVAW5IE+k8QrOqxPf8qBgU+NO3o=; b=HEModx1gu9K/ILQigAw1AOQeYoQTCqjbEl+z/347Iq9LTwJY0yltpVwRZw+FxnD5eW4Dm3 vrbJfVituH4OiwCA== From: "tip-bot2 for Juergen Gross" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/cpufeatures: Add X86_FEATURE_XENPV to disabled-features.h Cc: Juergen Gross , Borislav Petkov , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221104072701.20283-2-jgross@suse.com> References: <20221104072701.20283-2-jgross@suse.com> MIME-Version: 1.0 Message-ID: <166914029143.4906.11843439869317994745.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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 15e15d64bd8e12d835f6bb1b1ce3ffa13fa03a66 Gitweb: https://git.kernel.org/tip/15e15d64bd8e12d835f6bb1b1ce3ffa13fa03a66 Author: Juergen Gross AuthorDate: Fri, 04 Nov 2022 08:26:57 +01:00 Committer: Borislav Petkov CommitterDate: Tue, 22 Nov 2022 15:42:33 +01:00 x86/cpufeatures: Add X86_FEATURE_XENPV to disabled-features.h Add X86_FEATURE_XENPV to the features handled specially in disabled-features.h. Signed-off-by: Juergen Gross Signed-off-by: Borislav Petkov Acked-by: Dave Hansen Link: https://lore.kernel.org/r/20221104072701.20283-2-jgross@suse.com --- arch/x86/include/asm/disabled-features.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/disabled-features.h b/arch/x86/include/asm/disabled-features.h index 33d2cd0..c862552 100644 --- a/arch/x86/include/asm/disabled-features.h +++ b/arch/x86/include/asm/disabled-features.h @@ -81,6 +81,12 @@ # define DISABLE_SGX (1 << (X86_FEATURE_SGX & 31)) #endif +#ifdef CONFIG_XEN_PV +# define DISABLE_XENPV 0 +#else +# define DISABLE_XENPV (1 << (X86_FEATURE_XENPV & 31)) +#endif + #ifdef CONFIG_INTEL_TDX_GUEST # define DISABLE_TDX_GUEST 0 #else @@ -98,7 +104,7 @@ #define DISABLED_MASK5 0 #define DISABLED_MASK6 0 #define DISABLED_MASK7 (DISABLE_PTI) -#define DISABLED_MASK8 (DISABLE_TDX_GUEST) +#define DISABLED_MASK8 (DISABLE_XENPV|DISABLE_TDX_GUEST) #define DISABLED_MASK9 (DISABLE_SGX) #define DISABLED_MASK10 0 #define DISABLED_MASK11 (DISABLE_RETPOLINE|DISABLE_RETHUNK|DISABLE_UNRET)