Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1386313rwi; Thu, 3 Nov 2022 04:52:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5KVoPW4v/t+5hRLVILhoFmmK5nc9lTvSiUOt3YKDWh02hN3iemG7Ov5+VUz3gwpkApUMdZ X-Received: by 2002:a63:e348:0:b0:46f:25cc:d554 with SMTP id o8-20020a63e348000000b0046f25ccd554mr26427569pgj.598.1667476329993; Thu, 03 Nov 2022 04:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667476329; cv=none; d=google.com; s=arc-20160816; b=u2AC3T3stFsc18N1O+fCQ1WIOSPPSq7NgJhVGibMJGyfFPc1tc4fgSAbU4jsryLd4F FNttUEDoxOpcdRcggMkZqH8KhjWLOOQmtqdEed1UrB4pfwH6QvMup+LTqyLYX9l0JIuv osJRq9BFfmNHh2pcB7Z7O/3MCUIAnyjRkeSjaS1vE9/Ys1u8D+0ooa5/Nkc647X3x/Kc zHwo8DJ8z2UvgX7ftKljON9VdK5ivQZE2yyuIJ5s609ajt/96yrxpk0/IUoQEQzddhgv XzOdZKEzQ3p1vBF3VzQjSbltySRpv22ktDisxXCmUP6b8YuQzg+l2TERPf6tIG9jaXvE rwmg== 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=R2jqME7F+qdUftTzWR72PDDjTzwv0qCQjs1xhw+ZdsU=; b=wyUfFm9bFhD3wgTozKPDrpMPot8p3LunnWZhN0MgfsdVMPb8nCh5aYn1WiAbnjOB5Y PAqV+xitgrz+spYohkrHPcsjxka3UfwdH2hdQo3pluEPyydLnrHZBMuWM4lEqfPea5O5 RZp5g/EqdRDsfF0nGGiXPxYa1dEips1UdIBxo/pez9zYW2szhGHmLNKKWccdwud6ETuj oM7HrEnxb4snrBacvAJoH3iWRLyTWIynZsXWgYQOmqbHQUnGmjizTGdWUNteIlBZ6SMz RkOizl6tJ87JRW8y2ZZfPeINSn4mUVyHEx9Wxsc6BgljHF/6QubKiqHv+EC2SoGoF8Zo Bcag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=lMyg6ETc; 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 h3-20020a17090a648300b00213393ff173si943806pjj.75.2022.11.03.04.51.56; Thu, 03 Nov 2022 04:52:09 -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=lMyg6ETc; 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 S230489AbiKCLgy (ORCPT + 98 others); Thu, 3 Nov 2022 07:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231151AbiKCLgu (ORCPT ); Thu, 3 Nov 2022 07:36:50 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89A8C6401 for ; Thu, 3 Nov 2022 04:36:46 -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 0B6971F88C; Thu, 3 Nov 2022 11:36:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1667475405; 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=R2jqME7F+qdUftTzWR72PDDjTzwv0qCQjs1xhw+ZdsU=; b=lMyg6ETc97azzoW47K210vpzsQEyM8fTV4c+5WVVzcj+0lcLDHxabMpcsuQMWDFQvtAZN4 0hHPII4l8tRuDyGpgjP5TscidSmhQjiCJvhdysgX8my9WIWoEW2vGXjt+IpIi1/24B0r9O Dk7aO6PBwgzOCy9oygMAKvYkeLf/lvk= 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 A806913480; Thu, 3 Nov 2022 11:36:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id zT6jJ8ynY2PoHgAAMHmgww (envelope-from ); Thu, 03 Nov 2022 11:36:44 +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" , Pu Wen , Andy Lutomirski , Peter Zijlstra Subject: [PATCH 0/4] Switch X86_FEATURE_XENPV to cpu_feature_enabled() use Date: Thu, 3 Nov 2022 12:36:32 +0100 Message-Id: <20221103113636.25543-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. Juergen Gross (4): 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: 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 | 2 +- 9 files changed, 18 insertions(+), 15 deletions(-) -- 2.35.3