[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86bk4flh9b.wl-maz@kernel.org>
Date: Wed, 05 Jun 2024 13:13:20 +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>,
James Morse <james.morse@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Fuad Tabba <tabba@...gle.com>,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
kvmarm@...ts.linux.dev
Subject: Re: [PATCH 2/4] arm64/fpsimd: Discover maximum vector length implemented by any CPU
On Wed, 05 Jun 2024 12:41:28 +0100,
Mark Brown <broonie@...nel.org> wrote:
>
> @@ -1083,6 +1095,18 @@ int vec_verify_vq_map(enum vec_type type)
> if (!IS_ENABLED(CONFIG_KVM) || !is_hyp_mode_available())
> return 0;
>
> + /*
> + * pKVM allocates and uses storage for host state based on the
> + * largest per-PE VL, reject new PEs with a larger maximum.
> + */
> + if (is_protected_kvm_enabled()) {
> + if (max_vl > info->max_cpu_vl) {
> + pr_warn("%s: cpu%d: would increase maximum VL\n",
> + info->name, smp_processor_id());
> + return -EINVAL;
> + }
> + }
> +
Once protected mode is enabled, no new CPU can be booted (see
psci_relay.c::psci_cpu_on()).
M.
--
Without deviation from the norm, progress is not possible.
Powered by blists - more mailing lists