Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp305921lqr; Wed, 5 Jun 2024 06:46:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnVSAQTLzkndCnHvUY94CaPAO8+eXPklcOEzaIxFGEOk3YDJUasc0zNVJBdGtTWD8EpnBgv3CyjGBY86wGAtNX/+y93zaLnxpUKa+fuw== X-Google-Smtp-Source: AGHT+IG/MZ8Enlt/IOtwfveQ+u0ROrRTaP3zkwDxCSMaEg3hUMyETMjx9+j0R9QLYB15WkCa+13D X-Received: by 2002:a17:90a:578c:b0:2c1:a74d:653a with SMTP id 98e67ed59e1d1-2c27db0ac08mr2289989a91.16.1717595199871; Wed, 05 Jun 2024 06:46:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717595199; cv=pass; d=google.com; s=arc-20160816; b=v889o5gUd21xNxREGdx8YgFuRQmF0N8B2InLZJnBEymnLrwOwYgsOr+uKnXBPn3aQB 1fMlWZbz0e8UPp/1wiFJjVKD4nCbjQ1vQdGnpgx7BwYdp9hk8A8dg7xEm8h5LRcWn00+ 2KPTE8M5BbjGe2FAku7TmQ7FCbPewBGPN6g6KuqivQn9e7j4xQISeWSm574WFqQOjnpl I01REkrc/7XFNwJZzFJ2qwfBdf22vjQdi6FdBSXgquoQkkPm/a1hNBdRB1NcTzF0yWJm GkTm/CuvLMbjP4WmwcP2GmBDQqu4Ugt2hj2v7rvr5JHMcYMOYcrl3KeDJ9OkPAjlb0GY 8mCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zH0a740018G1VPzqs+xR9iJKUplQ22jRHYGZ+MBWkJ0=; fh=BGRpkRpJnIzIPmvG/y24YKXcikeMBVQuGO3WXNOYcps=; b=OK9RRl60GxECrQYAxGCW/nqGizRQqAuHf9EeesKJVM4psXZZOCX19J7waG60Cz2wbP 83qGulVbzA4R2qGLRfHBdrnOKzXgl0btgVkgCBoox0XAn1wn62T6eqaefKDhekMB8eQs 7fK/4wFHmnWphl4vZj1Jj/es104adxH2gbF8e4kbzDAxwl6NO312EglzgXLQiw8mVLdn rq8RrWa2/roz200ESYbgXfZmgupChvw8S5ouL5buq8BJVJt8+ZF4nOJJ2UJdFp03ezVt dtV359LaujVEfB6evhD3iGg1Q6tCf1kI+5/V8+CklKVDP+fTNamvk422usDnxMB9tive /jBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DIl2tBBZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806aed1csi587017a91.163.2024.06.05.06.46.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DIl2tBBZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B361281885 for ; Wed, 5 Jun 2024 13:13:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CE181953AD; Wed, 5 Jun 2024 12:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DIl2tBBZ" 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 4813D1953A3; Wed, 5 Jun 2024 12:31:43 +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=1717590704; cv=none; b=OLMBUNgYZpLUjZs/XxMhS2Gd9FPf/cFSjHnYblOkPVAK3wfpUwVxdWdyl06LiEREaLcdtUh0yHsQGq7HtpXX0a38f8QW2Ru+w6FN0K7iRvfrOrnxrM/8nP9wcNRQVxZ0DDb3dLvu8C6YtPf2ggWMS2Q+XMoYBncCyuMSLHJ83Go= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590704; c=relaxed/simple; bh=WqX/iaOAQS6MZ5oQl3ZCdSns0vW4s+x/vrm13fm7laY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZcBNz7EZ0UGm+fK18E4fgM4bw1MvikmP4R8RGCEyNN/hIRX0hPWl4SIpFWF75ss1tnVDZ6BT+G4A9NAyyyYjfjgckzlrpQw4DoaYMU1kHHBse/V+/v11wUhQL3IQ319LI6CgYoJyKKgWq9nO5gxDqPR9dR4FMS9b5VdYn8Gtlx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DIl2tBBZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE75BC3277B; Wed, 5 Jun 2024 12:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717590703; bh=WqX/iaOAQS6MZ5oQl3ZCdSns0vW4s+x/vrm13fm7laY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DIl2tBBZ6oihhI/f5/7BbeecgSbZ7aK+ZKiHZGsMPZkLUiGDSiY71IFcHbLIN+LHl /5SklmW8EF3ndFp5BSgUVb7d8wUzYF0kHDfD6BsiU9NVCl3J+Tigjr9gKz5pd0Njhp 3OmzuekhB/C051H6yFE/fEYxeMXHSqSeaKD93UXoZdv8f1LOlZWXacU4kOHUt9FPdv 2DWPxkGGjJLkIiiVeOoDMEiOJb8QLbnsaNQEf2swWOkU03v2EqLJOs/2A54L3S2Yp8 EJVyvCl9xGJ1X49jit06Aepfj7KS0+Gpp4j1nEBvprW8V66jPGicwITi9cpqjoQG0a VKUQJs+Ta454A== Date: Wed, 5 Jun 2024 13:31:38 +0100 From: Mark Brown To: Marc Zyngier 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 Message-ID: <1875ba4e-02c7-4331-b9c6-7ab68d2157b3@sirena.org.uk> 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> <86bk4flh9b.wl-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ysVZwPn+MwR2sALq" Content-Disposition: inline In-Reply-To: <86bk4flh9b.wl-maz@kernel.org> X-Cookie: Simulated picture. --ysVZwPn+MwR2sALq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 05, 2024 at 01:13:20PM +0100, Marc Zyngier wrote: > Mark Brown wrote: > > + /* > > + * 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()). Ah, that's a bit easier. Might still be worth keeping the check just in case that changes or we acquire some further use of this value but it's not currently needed and the comment could be updated. --ysVZwPn+MwR2sALq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZgWqkACgkQJNaLcl1U h9AyJQf+MY+KJBHvUdEZTyWsyWafn1JsdBv59+XpSqS/no1XW//XIGvcCvJvQ9/I /d+4iNDJO5KfECkTL2Zsp4w0k5ogpe14dxnNoSAk6coLY1C9O/QlVZveuR96VMEQ kFIqT86CC8zZ53FMJkiSPSvh4xCot2/jVaDEIZ7Hc6XTy4iAWZCcmt0NS4TYtIpf QtvfMeVCkKft6/Na8pjSWKlKkiNRxPbNxaXFBsKXdeltidzOuXdX/JS4J0QtANjo byDIxgwAy453h+6JGn5/9lqtVP/33/ZGAqqakPPhxVZRfg09C8+RuT/GVcs8r6Xz SAo4rWVbNS9hGnQxwuEOvSpQnnx/EQ== =kQnc -----END PGP SIGNATURE----- --ysVZwPn+MwR2sALq--