From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BC9D606A69C for ; Wed, 2 Dec 2026 09:03:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=AHonfYZN; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BOi1iHex DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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-Unsubscribe-Post:List-Owner; bh=eZue3mAhWCpLKF+B7Zv8V04hllif+Qth0swcsuJc5Ng=; b=AHonfYZNBunU6REBjCnyEUpWtb x5v7GXDtMc6G7fJe567+cesqE4xhH/UOQf7ptqM0p1fnNXF1bxliBINryMcx4quUMDHmuKm2NolnT 2C50sCr68IfStx4fF67MGGKBe6MddJTTl5Jlw92MbiojfE0iuxHCdi847VtzQik2L38N4I6I95JCm gTABAINn8pEC7usIB1nL3a+4OcF0XJiUnfLIVfxqq9+9aIPMvoWNuuN7eTAKN+JQJW56sbn4XYbtr RjgWU3s56yRJIb2ZSAbbUzpyYkcBepoOchFNT79s52gVIuhvF9cOe1AjFiFOZkwDEFCzd2FqtcUIv ebXHrRRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYgEz-0000000Al1H-1Rqt; Wed, 02 Dec 2026 09:03:05 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYgEx-0000000Al0l-2uIo for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 09:03:03 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 55F86429DB; Wed, 2 Dec 2026 09:03:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3612B1F00893; Wed, 2 Dec 2026 09:03:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796202183; bh=eZue3mAhWCpLKF+B7Zv8V04hllif+Qth0swcsuJc5Ng=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=BOi1iHexve1TcOxqVi9uQmgdfT0YAPdGTh17l+LUxEFMbSdqv0CEBpFYje83Ew8de W6AFggyh3tpbs7JxYcBbvrvuTyH4ottd5f0e5TyBU4hTTrx+ezukWKMWsnJjimHQ+s RFLro7mzYXN4LvpWM2VmgufL+ZF9fcTTsN/ZJfCUDt6d/AlmuLbh9tz7c42yyiJfQR MrhxUAWZotdnqM74cTjqSy9XEuP67qp28EiR3Op6xhoDmBUDbHZ2Tc+3OasE6+b5pU yxzPFfxELFSZsIi2lL1M1c4ZoSVnvDvdYdL7/nPhXIZqwFMW5iJRH3KSO8fhb8FtkS V68NEoVd0rwBg== 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 1xYgEu-0000000600b-3yqO; Wed, 02 Dec 2026 09:03:01 +0000 Date: Wed, 02 Dec 2026 09:03:00 +0000 Message-ID: <86fqwgxdff.wl-maz@kernel.org> From: Marc Zyngier To: Brad Fitzpatrick Cc: Oliver Upton , Fuad Tabba , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, stable@vger.kernel.org Subject: Re: [PATCH] KVM: arm64: GICv3: Keep active LPIs in the LRs In-Reply-To: References: <20261126-bradfitz-kvm_lpi_active-v1-1-9ff28176bf66@tailscale.com> <86y0agx9om.wl-maz@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/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Archived-By: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: bradfitz@tailscale.com, oupton@kernel.org, fuad.tabba@linux.dev, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, stable@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed, 02 Dec 2026 05:27:40 +0000, Brad Fitzpatrick wrote: >=20 > On Thu, Nov 26, 2026 at 3:15=E2=80=AFPM Brad Fitzpatrick wrote: > > > > On Thu, Nov 26, 2026 at 12:45=E2=80=AFAM Marc Zyngier = wrote: > > > > > > Hi Brad, > > > > > > On Thu, 26 Nov 2026 01:42:04 +0000, > > > Brad Fitzpatrick via B4 Relay wrote: > > > > > > > > From: Brad Fitzpatrick > > > > > > > > Since commit 73c9726975af ("KVM: arm64: GICv3: Drop LPI active state > > > > when folding LRs"), the active state of a virtual LPI is discarded = on > > > > every exit. If the guest has acknowledged an LPI but not yet EOI'd = it > > > > when an exit happens, the LPI is then pruned from the ap_list, and = the > > > > guest's subsequent EOI targets an INTID that is not in any LR. KVM = then > > > > relies on the virtual CPU interface performing the priority drop > > > > regardless. > > > > > > > > That doesn't hold for Apple's emulated GICv3 interface, as exposed = by > > > > macOS Virtualization.framework to a Linux guest running with nested > > > > virtualization (M3 and later, e.g. "tart run --nested"). There, an = EOI > > > > of a vLPI that has no LR leaves the corresponding ICH_AP1R0_EL2 bit= set. > > > > The running priority of the vCPU stays at the LPI's priority foreve= r, > > > > and since Linux uses the same priority for all of its interrupts, > > > > nothing is ever delivered to that vCPU again. The nested guest's CPU > > > > spins on WFI, with KVM seeing pending interrupts and waking it up o= ver > > > > and over (about 30k WFI exits per second), while the guest itself > > > > reports a hard lockup on that CPU. With a 2-vCPU Debian guest, this > > > > happens within the first minute of boot, every time. > > > > > > [...] > > > > > > This is a known bug on Apple HW running MacOS, which has been reported > > > a number of times to Apple (both directly and through hypervisor > > > vendors), and resulted in a deafening silence. >=20 > To close this thread, I heard from contacts at Apple that it's fixed > in macOS 27.2, which I've confirmed (in macOS 27.2.1). The tests in > https://github.com/bradfitz/pve-on-macos-nested-virt-fix now pass. I > now see VM firmware version 2167.0.0.0.0. And Proxmox (Debian) boots > under macOS and started a nested Linux guest as well now. Ah, that's excellent news! I'm glad they finally addressed it. > (with same proxmox versions that failed prior) >=20 > Sorry for the distraction! Not at all, thank you for letting us know! M. --=20 Without deviation from the norm, progress is not possible.