From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCdVN-00065f-GM for qemu-devel@nongnu.org; Tue, 27 Mar 2012 17:00:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCdVL-0002Py-Tj for qemu-devel@nongnu.org; Tue, 27 Mar 2012 17:00:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCdVL-0002Pb-LS for qemu-devel@nongnu.org; Tue, 27 Mar 2012 17:00:35 -0400 Date: Tue, 27 Mar 2012 17:00:30 -0400 From: Jason Baron Message-Id: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 2/2] qemu kvm: add better error reporting when kvm_get_irq_route_gsi() fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org Cc: aliguori@us.ibm.com, mst@redhat.com, jan.kiszka@siemens.com, qemu-devel@nongnu.org, alex.williamson@redhat.com, avi@redhat.com When kvm_get_irq_route_gsi() fails in assigned_dev_update_msix_mmio, it would be nice to have a better error message. Signed-off-by: Jason Baron --- hw/device-assignment.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/device-assignment.c b/hw/device-assignment.c index 89823f1..d017537 100644 --- a/hw/device-assignment.c +++ b/hw/device-assignment.c @@ -1023,8 +1023,10 @@ static int assigned_dev_update_msix_mmio(PCIDevice *pci_dev) } r = kvm_get_irq_route_gsi(); - if (r < 0) + if (r < 0) { + perror("assigned_dev_update_msix_mmio: kvm_get_irq_route_gsi"); return r; + } adev->entry[i].gsi = r; adev->entry[i].type = KVM_IRQ_ROUTING_MSI; -- 1.7.1