From nobody Wed Feb 11 04:39:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1562107201; cv=none; d=zoho.com; s=zohoarc; b=c9vciny5bkg0T6UpzRV6Ps63p0twKm2qiYhgXpJG1sWCkrNo0xL1UX3Rywm3lkAf+lg4pYe5EVS6BJ2zbAGZZVDpsFQjG/wDgBD7TI95qk2win+muugGUZEwwRi+3ot5kV6QUWCLV8eiScDmp6VH+z0aeHGDMncI/QTXlSaTB9I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562107201; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=KPTwx0T7F0ejR3nKwBRMUJIh5SEnw6dWan+57rITx0c=; b=C5OjUkidjUvsWKYSORtGt0mO37buKt/2vrAdkTnd0OHgyBsxjXaAxlz3OFWm9PZfLE3VWqTXEBamek2kw6oKpPDM693ClZycKC9QxULHLzFFMhSWw6fvBLnYSWfs8jiZ4QWHZBYKWPUfKmX0RvfaVcQJr9EG6EBgUea1fIQRpD4= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1562107201498805.0944646340571; Tue, 2 Jul 2019 15:40:01 -0700 (PDT) Received: from localhost ([::1]:58072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiRRN-0003eH-9v for importer@patchew.org; Tue, 02 Jul 2019 18:39:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57438) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiRKz-0000GK-Sr for qemu-devel@nongnu.org; Tue, 02 Jul 2019 18:33:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiRKx-0004ZP-PK for qemu-devel@nongnu.org; Tue, 02 Jul 2019 18:33:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36748) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hiRKu-0004NG-0Y for qemu-devel@nongnu.org; Tue, 02 Jul 2019 18:33:17 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ACFD9C049589; Tue, 2 Jul 2019 22:33:12 +0000 (UTC) Received: from gimli.home (ovpn-116-83.phx2.redhat.com [10.3.116.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id B4E36411B; Tue, 2 Jul 2019 22:33:07 +0000 (UTC) From: Alex Williamson To: qemu-devel@nongnu.org Date: Tue, 02 Jul 2019 16:33:07 -0600 Message-ID: <156210678718.19884.1742619809608268205.stgit@gimli.home> In-Reply-To: <156210666074.19884.7711861336532593819.stgit@gimli.home> References: <156210666074.19884.7711861336532593819.stgit@gimli.home> User-Agent: StGit/0.19-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 02 Jul 2019 22:33:12 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 2/2] vfio/pci: Trace vfio_set_irq_signaling() failure in vfio_msix_vector_release() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: eric.auger@redhat.com, farosas@linux.ibm.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" From: Eric Auger Report an error in case we fail to set a trigger action on any VFIO_PCI_MSIX_IRQ_INDEX subindex. This might be useful in debugging a device that is not working properly. Signed-off-by: Eric Auger Reported-by: Coverity (CID 1402196) Signed-off-by: Alex Williamson --- hw/vfio/pci.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index ce3fe96efe2c..d7a4e1875c05 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -551,9 +551,12 @@ static void vfio_msix_vector_release(PCIDevice *pdev, = unsigned int nr) */ if (vector->virq >=3D 0) { int32_t fd =3D event_notifier_get_fd(&vector->interrupt); + Error *err =3D NULL; =20 - vfio_set_irq_signaling(&vdev->vbasedev, VFIO_PCI_MSIX_IRQ_INDEX, n= r, - VFIO_IRQ_SET_ACTION_TRIGGER, fd, NULL); + if (vfio_set_irq_signaling(&vdev->vbasedev, VFIO_PCI_MSIX_IRQ_INDE= X, nr, + VFIO_IRQ_SET_ACTION_TRIGGER, fd, &err))= { + error_reportf_err(err, VFIO_MSG_PREFIX, vdev->vbasedev.name); + } } } =20