From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795426746; b=dzCovsgZIVWWAkCQON07VRevXYBiLxDEgRWtWqSdkl9kZEUTjXKUOKLFDh8+mx+Fuwns tySP3ra/N//Dz1Svh3lGyi7K1p+2Mxpqh2/eR2XxXFYrQYkVoMKftYXDABQKxbSoASDPt /BGDp1PGTWocNZxFUwer0KnMNzwKyIoV7ZqXt1Umh6wBisobPAXeeFU6F4G+/d9c3Yq+O UPT2RPtekr9KKn2198LKeK5Dh7U756LgU6knUYLzJCsmTzSm2eaGehg0lNSd/a25d+Im8 3aH6yfrqKSlq3fvTbfiCMbuWaNbEB6c7N+0AzGc8tr+0rc36dWcp/PFgIIqzcK7QElA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795426746; h=Received:DKIM-Signature:Received:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:User-Agent:MIME-Version:Content-Type: X-SA-Exim-Connect-IP:X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From: X-SA-Exim-Scanned; bh=5P+P9V+XiTSFIWj9hpol6NQ938uRg8J4DSJg9S94WN8=; b=gtfSLcshEexuFrup96yiRF8P+jDC1LIBeiot/umjHBJz+O4/0qcxU6+pKTwNigUGkYL0 R2S3g5ySgEbz/YtNnco3RIr18F3j1QSDdXKtQa4mmloDbY2PuuswOX4suMoZwskwKAz9f HC1+Gv9NoOHnBgUQHhc3ibB5WW9vtwBLHA0dLJqVREj+Yh81u5ol60bvcDww0QgipFGS2 MIz79ohIskq3ABNM5be1RLaJ9SrDYveUTUmHRUflhSp39QzgPYWk0TyDmmlnqp+KAsFBO 8hFT6HCewv2IpGoeScJYZDnodUf84Exc5fVyiOXmkXMtazOmXm7duC917xA+GcNfdNg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RUZk95m6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A468B606A31E for ; Mon, 23 Nov 2026 09:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RUZk95m6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAD7F1F000E0; Mon, 23 Nov 2026 09:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795426746; bh=5P+P9V+XiTSFIWj9hpol6NQ938uRg8J4DSJg9S94WN8=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=RUZk95m6TJ22Kl7gmxtMl7xtMQmYPY9VRpJWwgKxOIqvwQCi5cR46m9c0aRGwpY3D 2FknlMBR6tUAnOmaVlwZdxqbd1vGTl8eYtno9+kxeSeSLMkOGqHm7+pZdc5Ntgi62W mQedtpKoqwqEvkLSJIom/g92YzV8bgzstGesvRwDHooZqNwh8Q1mL5VZPTrTzRaciv GMw7/C4srvsX92sN4yuH6tybN4xbpK/36fpmTR2T6HsI07FtgQNskGAciQYIvy3If2 k+BBnYmuypL+bHL0f0hlbyY/J0enzoMqmSw+m+i3sxr0IkpTIBakcQtA8+LO3DYnpn 8tI31X1cQpSSw== 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.98.2) (envelope-from ) id 1xVQVr-00000001sKX-39xt; Mon, 23 Nov 2026 09:39:03 +0000 Date: Mon, 23 Nov 2026 09:39:03 +0000 Message-ID: <86ld6jzy2w.wl-maz@kernel.org> From: Marc Zyngier To: Jens Neubert <10jens@web.de> Cc: kvm@vger.kernel.org, pbonzini@redhat.com Subject: Re: Bug Report Linux kvm/qemu: Frequent Boot Issues with Windows 11 ARM64 VMs on NVIDIA DGX Spark due to Potential KVM PMU Migration Issues In-Reply-To: References: 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/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: 10jens@web.de, kvm@vger.kernel.org, pbonzini@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Mon, 23 Nov 2026 09:07:00 +0000, Jens Neubert <10jens@web.de> wrote: > > Hello, > > I am experiencing frequent boot failures when starting Windows 11 > ARM64 VMs on an NVIDIA DGX Spark system with a heterogeneous CPU > topology (Cortex-A725 and Cortex-X925 clusters). > The failures can consistently be resolved by pinning the vCPU threads > to a single CPU cluster (using taskset), which points to a PMU > migration issue between clusters with different PMU types. > I suspect a KVM bug where the PMU state (specifically PMCCNTR) is not > handled correctly when a vCPU thread migrates between physical CPUs > with different PMU architecture versions. Not a bug. Actually a feature. Different implementations have different events, and an event count on one CPU type doesn't mean the same thing on another. Therefore, migrating between PMUs is not supposed to work, and KVM makes a point in honouring the stupidity of the architecture (and of the implementations that lob two incompatible designs together). There is a vague plan to allow incompatible PMUs to be used by limiting them to the cycle counter only, but I haven't looked at the patches (life is too short for heterogeneous systems). Pinning threads to a single implementation is the correct approach. Thanks, M. -- Without deviation from the norm, progress is not possible.