From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEFC2C27C53 for ; Wed, 5 Jun 2024 12:13:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ot4Yux7MAFe4/OrqlmOTQZAhlUT97WVeZXne8dEOYug=; b=jmxwLRGBhYo9R+ jd7MBu2sf+H95Ls9SSZ8dSsnBYvuXio5+RG9Loqplutrir8lJckg4ozbK2ds+zeBR15+THnl0XflL rb2x8Jh9bbicQopz2aW3vdIjFWK/clq8/o/yYVEclxcdGUz2PG/vTELOy36o9WKOjm53BOsBT2wKX aMfnms41xasLEYFOPc7rTCH6U26/QmnFYMBdu0FUB3d0FG6VOWS1JBOXi0lXyYvyXywPrtaJhGUgj jLnlmArWRXi+ntfXxVWZQ8whYB9sSDcyp2sxE9XWzXDf3Rb+Oy0nw0gBEtVao6nPqHIMGt9HnKSpR TA7QotrdSzawnVJzY/NA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEpWF-00000005uin-3sii; Wed, 05 Jun 2024 12:13:31 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEpWC-00000005ugK-3OAG for linux-arm-kernel@lists.infradead.org; Wed, 05 Jun 2024 12:13:30 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id C81BECE1764; Wed, 5 Jun 2024 12:13:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12996C32786; Wed, 5 Jun 2024 12:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717589604; bh=8Qvk4GMBLPewcLA36ipcX0h+jn9RBJObf0Xl8i+W7II=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iDw0KfdNHkEJXKO88Lo2ognlhfMkF49pM/dIaJ7iKL8jZIbaF/fhxljH90xqLIRzs yRXNOudnzpNWaqMitLs7IsQCk1I0ndJ0VGJsNjfXvSSklh1gnHqw0qoeAkl3Btivg/ u3gTlJ3OiY/h6QTJoAn5pKuq2478DB1IAnqGwdcAVmZiFKHDDJCeagVamBMxN8MNf5 jTCmf0ixio6BWUWZwMdXPnQJNwu18AV8vhUV8f4cJJIRGLn56RP5Udhd6fdJua6eyD AGDV+lrzGU7xeJuBYZeISbCDX7zVLRu6rMAN3mfkCNkFFdZF6IqlRPeHRtWT1bj8rW /6+lUXkWot8UA== 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.95) (envelope-from ) id 1sEpW5-000vTV-4f; Wed, 05 Jun 2024 13:13:21 +0100 Date: Wed, 05 Jun 2024 13:13:20 +0100 Message-ID: <86bk4flh9b.wl-maz@kernel.org> From: Marc Zyngier To: Mark Brown Cc: Catalin Marinas , Will Deacon , Oliver Upton , James Morse , Suzuki K Poulose , Fuad Tabba , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev Subject: Re: [PATCH 2/4] arm64/fpsimd: Discover maximum vector length implemented by any CPU In-Reply-To: <20240605-kvm-arm64-fix-pkvm-sve-vl-v1-2-680d6b43b4c1@kernel.org> References: <20240605-kvm-arm64-fix-pkvm-sve-vl-v1-0-680d6b43b4c1@kernel.org> <20240605-kvm-arm64-fix-pkvm-sve-vl-v1-2-680d6b43b4c1@kernel.org> 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/29.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: broonie@kernel.org, catalin.marinas@arm.com, will@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, tabba@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240605_051329_070531_94705BE7 X-CRM114-Status: GOOD ( 15.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 05 Jun 2024 12:41:28 +0100, Mark Brown 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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel