From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796533975; b=2PmLrhEplUqr1ESlk9JaKVc2GRNEOyTPhPpZ8pl+DIxGOYUiQTUlUjta3ZM4QjQBF1DH qUQmsB15WnMlm3XkppTin92XJ71eeheo0sZ2SEi0WhN2Ngj/fmKIrQf21RaKoAZM2TOxi d788hjjptusuDQBnOX6ANPCX7+vFR5vjSq6qeCF+EYlN9KqlW8p7kcvBbL4kNyvQinW0U dlonVq9Y4aDY3hlU7AfkuZytUltMAsiqfBN0OxwTXQu0JfjdKuY2Ui4zImFQBvwdsS5z+ B3oMcWnWw+nS12Jgv+/x/qbb/2SmJ4/2FGkL0FIU6vm2Phm3ypBhMKRl4ORotkC+WOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796533975; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=4dketo1uGB5NXuapFpA1fDtvDt6Drq5ACnnk29dTjhE=; b=BI1ev5Hvo35MB9jn4kEmFH3apTBZ65/xcnZha2nN6GQuvMt0v3Wpw0PlVeVmue/t/Dsi 7zCkhVySarcN86Yx3M4JrEjI5sT+pOB1DawOMKqIhd6w26JLAoFXeLa1SLdMrW6xfoaZG ywJT6lKqZ9pJHB58ImAG8Ucn7hV84x73CItyPMdM4mFlp4hqz9m6PjqQoSPMGqEIfizoW iDSEkipgNfNwRLsMufwhY/QlfIBY8kbTSQYpSgXOmw5wgl5l+CJVuqUSMiQTMgIJDGUU4 bdXreV4NyX/Kh5teJXHGp6wmkc3O1rsTbnd1iBdWL+dVlAMR4LZeqppA4yOwLjg/2bw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WcIrtxs5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E2BC606A31F for ; Sun, 6 Dec 2026 05:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WcIrtxs5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 491271F0092B; Sun, 6 Dec 2026 05:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796533974; bh=4dketo1uGB5NXuapFpA1fDtvDt6Drq5ACnnk29dTjhE=; h=From:To:Cc:Subject:Date; b=WcIrtxs5PsPYGzp4XmQp1yPI4Nm4b1IiRKWEnAw/ZjabBpXgS1IP6tOt3NXDU39wQ G1dLh1J3GV0XVp6fmAhi6Wl1ckHSxB8ZOmk8KBRq7DVeH5MQKWLfdcyt/2SBMSgZYP /lrygLNW/7eWIGRd7OMhPe5rtSzetCuMHwsrKKVetSgsIjNAKeUy5LH34QeWgRn20X 1gJUMLVDy3uWskV0fbrvxLvlPS42pWY6nZ9xpLttjk877rGfuUokUTmH36KUdzrdjv WbR/rTtq5WJdFCVCry5Pa0N/E9O9ZbzG/LnCZ880FB4Vu8UsSURP5UYA6rxo5USxhy BynPwKKp7ifNQ== From: Eric Biggers To: x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , Dapeng Mi , Kan Liang , Peter Zijlstra , Jiaming Zhang , Eric Biggers Subject: [PATCH 0/4] x86/fpu: Complete the removal of cpu_has_xfeatures() Date: Sat, 5 Dec 2026 21:12:21 -0800 Message-ID: <20261206051225.298193-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series completes the removal of cpu_has_xfeatures(), which was originally attempted in https://lore.kernel.org/all/20260901145740.42337-1-ebiggers@kernel.org/ but the actual removal was delayed because a new caller appeared. Patches 1-3 address that new caller, then patch 4 removes cpu_has_xfeatures(). Patch 1 also happens to fix the get_xsave_addr() warning reported by Jiaming Zhang. (I know it's debatable whether it's really a "bug", as it requires a buggy CPU or hypervisor. I'll let the x86 maintainers decide whether they want to add Fixes and Cc stable to patch 1.) This applies to next-20261204. Eric Biggers (4): x86/fpu: Check for missing CET_USER xstate component x86/fpu: Check for missing APX xstate component perf/x86/intel: Remove redundant cpu_has_xfeatures() checks x86/fpu: Remove cpu_has_xfeatures() arch/x86/events/intel/core.c | 22 ++++-------- arch/x86/include/asm/fpu/api.h | 9 ----- arch/x86/kernel/cpu/cpuid-deps.c | 1 + arch/x86/kernel/fpu/xstate.c | 60 ++++++++++---------------------- 4 files changed, 25 insertions(+), 67 deletions(-) base-commit: 29beb21c21ada7207692b2d69fc58dcd15dab6e9 -- 2.56.1