Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id B69CB1A9239 for ; Thu, 17 Sep 2020 17:33:52 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 2E4A084DCF; Thu, 17 Sep 2020 17:33:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A3D9984DCB for ; Thu, 17 Sep 2020 17:33:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id FiXLeN0Pat9l for ; Thu, 17 Sep 2020 17:33:51 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 3B75584D2D for ; Thu, 17 Sep 2020 17:33:51 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 32276FB28; Thu, 17 Sep 2020 17:33:51 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 17 Sep 2020 17:33:51 +0000 From: "Jonathan A. Kollasch" Subject: CVS commit: src/sys/dev/pci To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200917173351.32276FB28@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jonathan A. Kollasch" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: jakllsch Date: Thu Sep 17 17:33:51 UTC 2020 Modified Files: src/sys/dev/pci: virtio_pci.c Log Message: Ensure MSI-X is disabled if allocation of MSI-X interrupts fail. The virtio device config space moves out from under us when MSI-X remains enabled, and/or INTx interrupts are masked if we don't ensure this. This un-breaks virtio devices that run out of MSI-X interrupts. Particularly a problem on uniproc x86, where there are only 8 or 9 vectors available, allowing for only about 4 virtio devices to use MSI-X. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/pci/virtio_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.