From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796057378; b=f4rXZOPpdp7Xrf34cULExOJQ7D89vyzJDd5JabjXwnfLTdyLy47NZHhy7VlcD7fbkH9H 1EU78mJJ2DW/5upCHPxo8y9EcpzlG+8h8QnAUvLVSMfdJk1FHTwzHXRxG1Wx68nFaalFX nLWy+LKS4IcGCMgFE2xWjolF0ZrRYdEoozA+bgdSGfwKquZSNaxOpWXSCcqZngHH5/lbx N6dNoWtlo9qFqGMvi6JA/95EjVqXEtYtKYKOy6X//1tVLhpkhug5ah5Q+otF+eXMimib8 kfzKWouMi6G6ZL91Qzw8e2xwYf45ec5JerjARvd5LoOKIEzncXX6K0Adu1DcA/8iDGg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796057378; h=DMARC-Filter:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Disposition:Content-Transfer-Encoding; bh=5uHPzLUg/fPvxtGICtW4IDm/eeFz0McI4aMZ/pdyjOw=; b=M/bSd7owUpzfcjmynasvj3DKeAKSnsHjczTOWLZy5xAfLyjiMjsTf2Xm6shgg4Rvo2zh uXtLoR/JfoPU/N1qdmZnHPBM37J/liI33PwqHDeCIpHNgo1qEm21NvDNwZzXCQFdZUWKJ iTzB8AYeIo8KSCVpcSXOyR0mgaonUQgjRRBRp/yFGRYt4orBCX5kHYjfiRgz7RIt4QVsP hz9JpUvuq0YXqxq/bw8ust/ughMxdSY04KNbfEKWpvn8Z4sphYkIgY4A5GcV/iYW/Yr9N nKdqPlRFIbgb3EdT9uj3wj89ijt4KQ1W+T6gf5S8M50pITJEYOc3iXPf/2C/gsajR8A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b="AHLiT9b/"; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13B6A606A320; Mon, 30 Nov 2026 16:49:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 13B6A606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=AHLiT9b/ Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 82F1D1575; Mon, 30 Nov 2026 08:49:34 -0800 (PST) Received: from LeoBrasDK.cambridge.arm.com (LeoBrasDK.cambridge.arm.com [10.2.212.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D0CF73F632; Mon, 30 Nov 2026 08:49:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796057377; bh=0dvtg0IWRe5DzM53vZlBCRgx2JXs8KIggXkla52Pdhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AHLiT9b/PMzSSzzXqgJkKu1TKcDmNiDACdFUyes+hlL1DQ26H92j2t83cTFugUZ5R r5ik294tcnJ54buErKItOiQPvBb5835bBDtY0sazKQC6txBG5u/14TvpUEAbMgzjky ZjBHuHUVBEjaQZc/9FzkhUM/aUo9gqm4ayyS+Vmw= From: Leonardo Bras To: Mark Brown Cc: Leonardo Bras , Catalin Marinas , Will Deacon , Marc Zyngier , Joey Gouly , Suzuki K Poulose , Shuah Khan , Oliver Upton , Fuad Tabba , Peter Maydell , Wei-Lin Chang , Yao Yuan , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v22 03/16] KVM: arm64: Manage GCS access and registers for guests Date: Mon, 30 Nov 2026 16:49:24 +0000 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261130-arm64-gcs-v22-3-80454edf47ea@kernel.org> References: <20261130-arm64-gcs-v22-0-80454edf47ea@kernel.org> <20261130-arm64-gcs-v22-3-80454edf47ea@kernel.org> X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Nov 30, 2026 at 04:35:44PM +0000, Mark Brown wrote: > GCS introduces a number of system registers, on systems with GCS we need > to context switch them and expose them to VMMs to allow guests to use > GCS, including forwarding of traps for the EL2 registers with nested > guests. > > Since the effects of GCSCR_ELx.EXLOCKEN are not controlled by > HCRX_EL2.GCSEn we always load GCSCR_EL1 for guests, even if they are not > using GCS. > > In order to allow guests to use GCS we also need to configure > HCRX_EL2.GCSEn, if this is not set GCS instructions will be noops and > CHKFEAT will report GCS as disabled. > > Signed-off-by: Mark Brown As per [1], feel free to add my R-b. Thx, Leo [1]https://lore.kernel.org/all/aphSYqKrgUq5Qycu@LeoBrasDK/