Commit 577f79e4 authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk Committed by Juergen Gross

xen/pci: Bubble up error and fix description.

The function is never called under PV guests, and only shows up
when MSI (or MSI-X) cannot be allocated. Convert the message
to include the error value.
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
parent 2466d4b9
...@@ -264,8 +264,8 @@ static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) ...@@ -264,8 +264,8 @@ static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
return 0; return 0;
error: error:
dev_err(&dev->dev, dev_err(&dev->dev, "Failed to create MSI%s! ret=%d!\n",
"Xen PCI frontend has not registered MSI/MSI-X support!\n"); type == PCI_CAP_ID_MSI ? "" : "-X", irq);
return irq; return irq;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment