From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6CB7CEDF148 for ; Fri, 13 Feb 2026 10:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fbxz+9iae9EskUTjKGGFOvl34dFZakr6srmNCT/GDGc=; b=ut0I8c0yTmapD19ghXAdx8qPzT Lf9w8EvM7OjQRjTSLmbGsNBZWO3KIbtjva+/Ytoz/Tu6HkUhoQsOZfWfYVHgzGl3W+5lUnjmYt0Ds MapuxCueI5ze20BoeKVj6O2gGJslnsfYXFv1CQlsov6ihHATufL8LxgsZ0BRG0vSn1RAqqou/0mZf loP3h/hAH5RzdqTP8vOADgDWEao+L/Co43oSQV53elz9s2KUA+n+w1W9ZOJ1eqoOvX5CanrDg9hAa fAfY4FEIRAwKzsCKt7aplQAM+7hj+fUGcjPPnrMHCD77YwCT1l8jJCJoLP+8ejHLF9WwUEkoEQ0o7 QLf0oK4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vqqar-00000003KxX-0suL; Fri, 13 Feb 2026 10:40:13 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vqqap-00000003KxN-2Kdp for linux-arm-kernel@lists.infradead.org; Fri, 13 Feb 2026 10:40:11 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 063716091C; Fri, 13 Feb 2026 10:40:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA286C116C6; Fri, 13 Feb 2026 10:40:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770979209; bh=Xqz6za0FavxiZ7fDMciG090joG/GKFc1LpHoJfcba0w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IpjTBKin7B81H+bwSfU+aUQh7ariYE9q67Gk6wzrek0HB0CLhpMF9utWlVFmsSg5a p+bKzkpCNCbcFFCmTJugmHeb3Gl1kKdW+sX0NiI19crR9kSoOCSN4pB/PRjEv8JWT0 VEHYv3P882F97T0x78MSbCN4EjDymneEqWOW/Zx9/Sk0YU3qrH2aR9oRDW5lDiEdAn u1eeI6LO8Rtit1nX6T+lURFD2tJziUCldf1gs/GHFkGvRQsNOMRH7xp0UZf2pvZa6B qbbkDP03/zTHFBnCwK/Q8Ecatv9beYxm9kbFC1G3Fgm6LbZmZMP/krH6Lob9TVDWBT xMijghpMH5Fgw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vqqal-0000000Ar8t-1BHt; Fri, 13 Feb 2026 10:40:07 +0000 Date: Fri, 13 Feb 2026 10:40:06 +0000 Message-ID: <86fr75apvd.wl-maz@kernel.org> From: Marc Zyngier To: Fuad Tabba Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v1 1/3] KVM: arm64: Hide S1POE from guests when not supported by the host In-Reply-To: References: <20260212090252.158689-1-tabba@google.com> <20260212090252.158689-2-tabba@google.com> <86jywib98e.wl-maz@kernel.org> <86ikc2asa8.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: tabba@google.com, kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, stable@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 12 Feb 2026 18:53:05 +0000, Fuad Tabba wrote: > Ouch! Yeah, no easy solutions here. For now, as a fix to be able to > backport, would you like me to respin this without the change to > kvm_has_s1poe(), or with that change as a separate patch? I'll remove the hunk myself when applying the series, no need to resend (unless I find another issue in the rest of the series, but it looks good so far). FWIW, I have an alternative set of hacks at [1], which appear to work, but we need to collectively convince ourselves that this is the correct thing to do (i.e. the required traps are always set, irrespective of the configuration). This affects PAuth, SVE, MTE and S1POE. SME and GCS are not supported in KVM, and BTI has no additional state, so these shouldn't be affected. Thanks, M. [1] https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=arm64/ftr_config -- Without deviation from the norm, progress is not possible.