Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp395584rwl; Fri, 4 Nov 2022 01:32:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4fBuFPVrkGr2IR6JNHCvHf7+I9JJbb3qVmxM5+GWfcQjoPcFcDDBHv04DF7qoCqJQiYSXw X-Received: by 2002:a63:1349:0:b0:44b:2240:b311 with SMTP id 9-20020a631349000000b0044b2240b311mr29273391pgt.405.1667550746591; Fri, 04 Nov 2022 01:32:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667550746; cv=none; d=google.com; s=arc-20160816; b=pbQAbElPe8uT1x3V1jR5iTYHbtnFyd9v3qJBv9DCVCY/HBlTLN9jKX1MGYay2oMiDC S7s44aAd5WD+NlM69mHtpEX39BntFzQ4krIWqPew9SF7lmR9PmloGSPbZ7tqNH/3Gcny VVK75b6x5u+HjpxjFtfFaaA/QLfCKgid7WGYzZkPS8iAp7597Sfwij1sJfcvUmtFwZE8 9rQlwrftBNKs/G1fIWM8UeWdpUImGU2jci3coKSpUwfOsoDvzYPtNC07HF0iVfop25o0 1DrwCQPmCLXPlH6D0kyYuQ4s4p3h5Um3qK0BOiSdYXAIcFqyo+Xccz3daFoWGEUdtEMG gQRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bESrsZp5nkJG/KdIDLKESNyabZqvX9dwTKnh7zplFPc=; b=agVEZbSd44cznrgOW0dOTmy7j6VcqsYTJfd+rOn4f8Z+42pXWFUdkI+2d1kJXXek7V lD7m8OmftK49WZFoFyGFKEuXWib6Wca/0fw93Tmye8D5YJjXX1fM63TapFcbS/uDOK/N ZEthVC6eSGXELHfKZtIBZBnM3HdQq7Si5Q9sTviRlneXOolSUROJvCZc8//6+JX1vNUs /N0XrPt6Wk4dXKfgFc1ycMasHH7cH5lttx0ACytro/1Xb7vnYFki0rxC/FFGd7uOtYH+ 2WWUEWlR0pDhtjmTXAdNsQmEEvbSenVSYIgRM8pIb4eAZKXNXA6z/AMIZh4hhH5JwrCZ vn3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=n9o+6s3U; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k71-20020a63844a000000b0046f9f4985cfsi3704628pgd.513.2022.11.04.01.32.14; Fri, 04 Nov 2022 01:32:26 -0700 (PDT) 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=@suse.com header.s=susede1 header.b=n9o+6s3U; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231328AbiKDH1T (ORCPT + 96 others); Fri, 4 Nov 2022 03:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbiKDH1G (ORCPT ); Fri, 4 Nov 2022 03:27:06 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5A9D29C8F for ; Fri, 4 Nov 2022 00:27:05 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 023DE1F74A; Fri, 4 Nov 2022 07:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1667546824; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=bESrsZp5nkJG/KdIDLKESNyabZqvX9dwTKnh7zplFPc=; b=n9o+6s3UG78TbvKngU6Oi+3uY2MUMWfFweD7Wtr6ymwqRx4TqaGq8uvAMGtf83rd5scylQ CVX9dPWF40VZMavSSC6wYSTPb4UhtbL+OspARLblOSHwGV3nXiydvJ94caPsOJUvkYjpCW ITxrIbaCKjSBJNpgH6PrJran/aYm0MA= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A76AD1346F; Fri, 4 Nov 2022 07:27:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MCOfJ8e+ZGPWQAAAMHmgww (envelope-from ); Fri, 04 Nov 2022 07:27:03 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Pu Wen Subject: [PATCH v2 0/5] x86: Switch X86_FEATURE_XENPV to cpu_feature_enabled() use Date: Fri, 4 Nov 2022 08:26:56 +0100 Message-Id: <20221104072701.20283-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Make especially kernels without CONFIG_XEN_PV more efficient by using cpu_feature_enabled(X86_FEATURE_XENPV) instead of boot_cpu_has() and friends. Changes in V2: - new patch 4 Juergen Gross (5): x86: add X86_FEATURE_XENPV to disabled-features.h x86: remove unneeded 64-bit dependency in arch_enter_from_user_mode() x86: drop 32-bit Xen PV guest code in update_task_stack() x86: remove X86_FEATURE_XENPV usage in setup_cpu_entry_area() x86: switch to cpu_feature_enabled() for X86_FEATURE_XENPV arch/x86/include/asm/disabled-features.h | 8 +++++++- arch/x86/include/asm/entry-common.h | 4 ++-- arch/x86/include/asm/switch_to.h | 7 ++----- arch/x86/kernel/cpu/amd.c | 2 +- arch/x86/kernel/cpu/bugs.c | 2 +- arch/x86/kernel/cpu/hygon.c | 2 +- arch/x86/kernel/process_64.c | 4 ++-- arch/x86/kernel/topology.c | 2 +- arch/x86/mm/cpu_entry_area.c | 8 ++------ 9 files changed, 19 insertions(+), 20 deletions(-) -- 2.35.3