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 X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74186C433DF for ; Sat, 22 Aug 2020 14:33:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 510ED20825 for ; Sat, 22 Aug 2020 14:33:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728180AbgHVOdj convert rfc822-to-8bit (ORCPT ); Sat, 22 Aug 2020 10:33:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:41512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727899AbgHVOdj (ORCPT ); Sat, 22 Aug 2020 10:33:39 -0400 From: bugzilla-daemon@bugzilla.kernel.org To: kvm@vger.kernel.org Subject: [Bug 207489] Kernel panic due to Lazy update IOAPIC EOI on an x86_64 *host*, when two (or more) PCI devices from different IOMMU groups are passed to Windows 10 guest, upon guest boot into Windows, with more than 4 VCPUs Date: Sat, 22 Aug 2020 14:33:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo virtualization_kvm@kernel-bugs.osdl.org X-Bugzilla-Product: Virtualization X-Bugzilla-Component: kvm X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: high X-Bugzilla-Who: linux-kernel@polvanaubel.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: CODE_FIX X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: virtualization_kvm@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=207489 Pol Van Aubel (linux-kernel@polvanaubel.com) changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |CODE_FIX --- Comment #17 from Pol Van Aubel (linux-kernel@polvanaubel.com) --- (In reply to Yani Stoyanov from comment #16) > Kernel 5.8+ > on Fedora 32 > > I have the same issue with macos (sierra and catalina) virtual machines with > passed through gpus. > > What I do to identify the problem: > > Try adding different cards to the mac vm's no matter amd/nvidia the vm hangs > and if you try to restart/force restart it the whole libvirt process hangs. > > I get the same kernel overflow as mentioned in the bug. > > How I am sure its the same problem: > > I checked out the kernel source comment the problematic: > > if (edge && kvm_apicv_activated(ioapic->kvm)) > ioapic_lazy_update_eoi(ioapic, irq); > > Rebuild the kernel and try with my version and it was working fine. I also > try kernel 5.5.19 where it was fine also since it didn't have the check. > > I assume macos have some special way of treating the interrupts but since I > am new to the linux kernel and linux as hole I can not identify what exactly > case the problem. The fix to the bug I reported works for me and has made it into kernel 5.7 since v5.7-rc5. I'm therefore updating the status of this particular bug to resolved. Your problem seems to be with the ioapic_lazy_update_eoi mechanism regardless of how it is triggered, and you should open a new report -- with all the relevant information like debug logs -- for your issue if it's not been resolved yet. -- You are receiving this mail because: You are on the CC list for the bug. You are watching the assignee of the bug.