lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87cy7vz6pw.wl-maz@kernel.org>
Date: Fri, 12 Sep 2025 22:44:27 +0100
From: Marc Zyngier <maz@...nel.org>
To: Mark Brown <broonie@...nel.org>
Cc: Catalin Marinas <catalin.marinas@....com>,
	Will Deacon <will@...nel.org>,
	Oliver Upton <oliver.upton@...ux.dev>,
	Joey Gouly <joey.gouly@....com>,
	Suzuki K Poulose <suzuki.poulose@....com>,
	Shuah Khan <shuah@...nel.org>,
	linux-arm-kernel@...ts.infradead.org,
	linux-doc@...r.kernel.org,
	kvmarm@...ts.linux.dev,
	linux-kselftest@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v16 5/6] KVM: arm64: Allow GCS to be enabled for guests

On Fri, 12 Sep 2025 10:25:31 +0100,
Mark Brown <broonie@...nel.org> wrote:
> 
> Now that required functionality for GCS is in place expose
> ID_AA64PFR1_EL1.GCS, allowing guests to be given the feature.
> 
> Signed-off-by: Mark Brown <broonie@...nel.org>
> ---
>  arch/arm64/kvm/nested.c   | 7 ++++---
>  arch/arm64/kvm/sys_regs.c | 2 --
>  2 files changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm64/kvm/nested.c b/arch/arm64/kvm/nested.c
> index 153b3e11b115..d2d55e18c610 100644
> --- a/arch/arm64/kvm/nested.c
> +++ b/arch/arm64/kvm/nested.c
> @@ -1459,9 +1459,10 @@ u64 limit_nv_id_reg(struct kvm *kvm, u32 reg, u64 val)
>  
>  	case SYS_ID_AA64PFR1_EL1:
>  		/* Only support BTI, SSBS, CSV2_frac */
> -		val &= (ID_AA64PFR1_EL1_BT	|
> -			ID_AA64PFR1_EL1_SSBS	|
> -			ID_AA64PFR1_EL1_CSV2_frac);
> +		val &= (ID_AA64PFR1_EL1_BT		|
> +			ID_AA64PFR1_EL1_SSBS		|
> +			ID_AA64PFR1_EL1_CSV2_frac	|
> +			ID_AA64PFR1_EL1_GCS);

How about updating the comment?

	M.

-- 
Jazz isn't dead. It just smells funny.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ