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 <jbaron@xxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html