Skip to content

Commit 577f79e

Browse files
konradwilkjgross1
authored andcommitted
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: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent 2466d4b commit 577f79e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/pci/xen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
264264
return 0;
265265

266266
error:
267-
dev_err(&dev->dev,
268-
"Xen PCI frontend has not registered MSI/MSI-X support!\n");
267+
dev_err(&dev->dev, "Failed to create MSI%s! ret=%d!\n",
268+
type == PCI_CAP_ID_MSI ? "" : "-X", irq);
269269
return irq;
270270
}
271271

0 commit comments

Comments
 (0)