From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D29C13D6664; Fri, 4 Sep 2026 05:28:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788499730; cv=none; b=YwgN8Na/YT6Rvi/uSsjRAl95a+zW0m6/FJAvgeWfeR+835Lh0tvKGCdRpEGkPEQB7F/TacplQXc6I+oPA/K6E3enBLgeLDgZbl/nGTWcaJO1dLFrJi09jI0viymlwE7VL0Q3M+Tx98dwwtDVvaI4r6BgztPTxicqPkOzt3yQeg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788499730; c=relaxed/simple; bh=WD8osbeEO/AlfHqnJvMVdLfnHqNQnUJiEzkZqaLhWHk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C5HBNWMui7X19y9z7RTj7sf2C3n0+9m8OcEr4qYYP3xGQ7owF9qq0DYwGuww7K52nNsUGYCh7L1ekC7BNNckby9uKgARkFVRYWxIiTURIHRZ/FHPpmKBmV1zHDYNKyROs1jzhfWF52szH1xKF/mixiGQGei39m+B4ObJK7kkJAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LOZ4seea; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LOZ4seea" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4098C1F00A3D; Fri, 4 Sep 2026 05:28:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788499728; bh=7M6PJhIr3onfS6156CVf9qAHt59lw/0vQJgfEMzNqlg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LOZ4seeawMQXFFMTMYzpmYAjHoaGSmp+8Mjf5Tv9M4Pzav0OjYABXjag6QUS9TE+2 /1FB1Q76Z8uWToEznM//QSJT1NzP/F0uCPrEjLlVFaC5iyV8Fpa+5BitTnexI5Us8p t4teuVCZW3bh8XW/CtTaoqAclRdwTblJQlSW/JGU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Long Li , Thomas Gleixner , Aditya Garg , Shradha Gupta , Naman Jain , Michael Kelley , Wei Liu Subject: [PATCH 7.2 520/713] PCI: hv: Set irq_retrigger callback for the Hyper-V PCI MSI irqchip Date: Fri, 4 Sep 2026 06:58:08 +0200 Message-ID: <20260904045815.475265684@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260904045803.810145556@linuxfoundation.org> References: <20260904045803.810145556@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Naman Jain commit 86bdd16e8f390d51bae9e77a4bc4164ca2f580fe upstream. The Hyper-V vPCI MSI irqchip never installs an irq_retrigger() callback. On CPU hot-unplug fixup_irqs() migrates the interrupts which are affine to the outgoing CPU to a new target. If an interrupt still has its pending bit set in the outgoing CPU's IRR at that point, fixup_irqs() resends it on the new target through the irqchip's irq_retrigger() callback. As the Hyper-V PCI/MSI chip does not provide that callback, the pending interrupt is silently dropped, which can result in lost interrupts, stalls and "No irq handler for vector" messages during CPU hotplug. Install irq_chip_retrigger_hierarchy() as the irq_retrigger() callback for the Hyper-V PCI/MSI irqchip, so that a pending interrupt is resent on its new target CPU via the parent x86 vector domain. Fixes: 4daace0d8ce85 ("PCI: hv: Add paravirtual PCI front-end for Microsoft Hyper-V VMs") Cc: stable@vger.kernel.org Suggested-by: Long Li Suggested-by: Thomas Gleixner Reviewed-by: Aditya Garg Reviewed-by: Shradha Gupta Signed-off-by: Naman Jain Reviewed-by: Michael Kelley Signed-off-by: Wei Liu Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/pci-hyperv.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/pci/controller/pci-hyperv.c +++ b/drivers/pci/controller/pci-hyperv.c @@ -2119,6 +2119,7 @@ static bool hv_pcie_init_dev_msi_info(st info->ops->msi_prepare = hv_msi_prepare; chip->irq_set_affinity = irq_chip_set_affinity_parent; + chip->irq_retrigger = irq_chip_retrigger_hierarchy; if (IS_ENABLED(CONFIG_X86)) chip->flags |= IRQCHIP_MOVE_DEFERRED;