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 D10973A961B; Mon, 23 Mar 2026 13:50:45 +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=1774273845; cv=none; b=ksATRsDrFoMCDg3JcN47OHN3uItB5QYBXiqbxZEdpdF0cVUbtQgVhmbEhB8y2aHCbm0xqJt/c4jDZTCoeiu7VxrDyNBEStg79PHnBHBKzixFS+3vbAWtZ1o38QgXkinUC/EBOjGc6+ds+jXGjcC8K0DzbRU1FSdA+FIAeadB0Ss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774273845; c=relaxed/simple; bh=0baWZXNjINTZ3z2SxZs2QXw3tAwYKeKFF0/2CnhzC2c=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=gMlYDWiqmSNEPpbAo/n8eB8b3CsDKAmzmgfTV17Q1JpZUjFJtV/YjUVFYKrDkOqvQ/VprJzgIYp+/cPm16VGcwhIQFr8xHmLnYMTakH+yy7aIHkqnjYe0LOALR9JXhWtNBNJHagwgRyP78q5Oz6dtzykFGP2rLfSmpfgmmZYqVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u0y/GdpE; 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="u0y/GdpE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71B44C4CEF7; Mon, 23 Mar 2026 13:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774273845; bh=0baWZXNjINTZ3z2SxZs2QXw3tAwYKeKFF0/2CnhzC2c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u0y/GdpE99QHygF9m+wNkdy4t8wCswklFo1dQ5gOCESsWbY98SpCCLRJ3T0pJbmA3 R4XFr8fdSyzCJo45Lhgt0yMOg0Zsu8NyB+0t3AHZmnQTllrtB8UFd2nFjBom5q3j6H i8HqXaDvQ9eDYrA0px1eb+bKBXlKazZ6lB1mZucueNpyMK5lP2GfuvONa7R570NX+n qZ0o+0fjFlywoFrw1y4Y6hCz7llzT759NGkbce6e0saJWoxAe16Qbofv866gLk0dda z/8VyWItC1wfZa+y1kDH8Xogwx6Sd3ge/kYMaIEBLfm29LszQZhBLn7QiiOFCm/Fg6 7+Fh4rR8thsWw== 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 1w4fg3-00000004ke5-19cj; Mon, 23 Mar 2026 13:50:43 +0000 Date: Mon, 23 Mar 2026 13:50:42 +0000 Message-ID: <86y0ji4pu5.wl-maz@kernel.org> From: Marc Zyngier To: Mark Brown Cc: Sascha Bischoff , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.linux.dev" , "kvm@vger.kernel.org" , nd , "oliver.upton@linux.dev" , Joey Gouly , Suzuki Poulose , "yuzenghui@huawei.com" , "peter.maydell@linaro.org" , "lpieralisi@kernel.org" , Timothy Hayes , "jonathan.cameron@huawei.com" Subject: Re: [PATCH v7 12/41] KVM: arm64: gic-v5: Sanitize ID_AA64PFR2_EL1.GCIE In-Reply-To: <3be4971e-31a4-4033-9583-88d7fc96104f@sirena.org.uk> References: <20260319154937.3619520-1-sascha.bischoff@arm.com> <20260319154937.3619520-13-sascha.bischoff@arm.com> <3be4971e-31a4-4033-9583-88d7fc96104f@sirena.org.uk> 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: kvm@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: broonie@kernel.org, Sascha.Bischoff@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, nd@arm.com, oliver.upton@linux.dev, Joey.Gouly@arm.com, Suzuki.Poulose@arm.com, yuzenghui@huawei.com, peter.maydell@linaro.org, lpieralisi@kernel.org, Timothy.Hayes@arm.com, jonathan.cameron@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Mon, 23 Mar 2026 13:37:59 +0000, Mark Brown wrote: > > [1 ] > On Thu, Mar 19, 2026 at 03:52:50PM +0000, Sascha Bischoff wrote: > > Add in a sanitization function for ID_AA64PFR2_EL1, preserving the > > already-present behaviour for the FPMR, MTEFAR, and MTESTOREONLY > > fields. Add sanitisation for the GCIE field, which is set to IMP if > > the host supports a GICv5 guest and NI, otherwise. > > ... > > > All of this extra work is required to make sure that "legacy" GICv3 > > guests based on QEMU transparently work on compatible GICv5 hosts > > without modification. > > I'm seeing a regression in -next in set_id_regs on a range of platforms, > including physical ones like the Toradex Verdin AM62 and i.MX8MP-EVK, > with a GICv3: What CPUs do these machines have? M. -- Without deviation from the norm, progress is not possible.