From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDEAE30BF65 for ; Fri, 19 Dec 2025 10:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766140071; cv=none; b=D/YwOpREtmIpQWgXSicALLM9gqc/id30tGr+JY2FIuIQNNL0Oi6i9e2YDSVkXuMiQfeEP0iwK5ZDAGtAtmzvB0k7iamSFMTCxO20LomfNLxhyXzQPDxB+duP73efJFwSPXw/hvEEZD5KbwhWee93IYV+/wbBcYw7pC0QmKtHMZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766140071; c=relaxed/simple; bh=P3YIs7ujvRNv4jYY9L24QTgajE4FWifdYTp2cM0hGn8=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=rreeHujS3dsL3LwL0FBM61zJr+24wulCN5QSvX+CIwRSH1hu6Iu9zMFHLTcCZ3lLolABbBojW1CnaEFPky02n/vcKp3MS4QRpFr6VeVDVoYZDPj+wevux7jYFXG4sjmC5jHFjzlZenYWgJGq0+uy9xF8u6ANQb71F0x/D8bi3GM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NMEB9DQp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NMEB9DQp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47B7DC4CEF1; Fri, 19 Dec 2025 10:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1766140071; bh=P3YIs7ujvRNv4jYY9L24QTgajE4FWifdYTp2cM0hGn8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NMEB9DQpEs4wqWhKeCFNKKknXeJYJyv+1l5mhp2y1I/QyVfrzbNvPB7Ak08js8DUh odz+QelOAt24P/K5JSbyE0P9nQyDze1YV08fW1GzcdasQ/YaRGirnzh8pwG6OhPyGm J3XR9xTqMomPSkVNMSmTU3128dmssojoz4XQ9ULKJ/JpHBg96hs7QDaxomrT+VSo7i w+pq4F/otBeIDbtn6ppIFiyuO4qMH9K5Us6gZNurE3T9vmGu/cnq/R46uOdz0QmKBg PXf23OnNneTIS3bXzJ1uSDD8gO5f4Lc0T++ir6dGUJ69EjF+bh7eLHDiwzxvwRARMo B03ZDLsHs2q+Q== 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 1vWXi9-0000000DvXQ-0S5B; Fri, 19 Dec 2025 10:27:49 +0000 Date: Fri, 19 Dec 2025 10:27:48 +0000 Message-ID: <86sed6n4uz.wl-maz@kernel.org> From: Marc Zyngier To: Wei-Lin Chang Cc: stable@vger.kernel.org, Mark Rutland Subject: Re: [PATCH 6.12.y 0/3] arm64: Early system register initialization fixes In-Reply-To: <20251219102123.730823-1-weilin.chang@arm.com> References: <20251219102123.730823-1-weilin.chang@arm.com> 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) Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: weilin.chang@arm.com, stable@vger.kernel.org, mark.rutland@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Fri, 19 Dec 2025 10:21:20 +0000, Wei-Lin Chang wrote: > > Hi, > > This series is a v6.12-only backport (based on v6.12.62) of fixes for > system register initialization issues affecting protected KVM on arm64. > This affects some contemporary and upcoming hardware which will run the > v6.12.y stable kernel, or something derived from it, such as the Android > common kernel. > > The FEAT_E2H0 patches fix code introduced after v6.6, and so only > need to be backported to v6.12. > > The SCTLR_EL1 patch fixes code introduced in v5.11, but practically > speaking only affects recent hardware which is unlikely to run > something older than v6.12. > > Note: Marc Zyngier performed the initial backport, which I have > rebased and tested, hence both of our sign-offs being added to the > tags from the upstream commits. > > I have tested the backport and observed they solve the problems as > expected. > > Ahmed Genidi (1): > KVM: arm64: Initialize SCTLR_EL1 in __kvm_hyp_init_cpu() > > Marc Zyngier (1): > arm64: Revamp HCR_EL2.E2H RES1 detection > > Mark Rutland (1): > KVM: arm64: Initialize HCR_EL2.E2H early > > arch/arm64/include/asm/el2_setup.h | 57 +++++++++++++++++++++++++--- > arch/arm64/kernel/head.S | 22 ++--------- > arch/arm64/kvm/hyp/nvhe/hyp-init.S | 10 +++-- > arch/arm64/kvm/hyp/nvhe/psci-relay.c | 3 ++ > 4 files changed, 65 insertions(+), 27 deletions(-) > Great, thanks for going through this and having tested it! Hopefully Greg will be able to take it at the next opportunity for a stable 6.12 release. Cheers, M. -- Without deviation from the norm, progress is not possible.