summaryrefslogtreecommitdiffstats
path: root/drivers/xen/xen-pciback
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2015-02-27 16:11:06 -0500
committerDavid Vrabel <david.vrabel@citrix.com>2015-03-16 10:49:14 -0400
commit74beaf6270f5b08159f1df8208322a24bb2905e6 (patch)
tree2eec6a83e56f76dfa653ae76c611916ccb844af6 /drivers/xen/xen-pciback
parent526abeaed4971def462f209632b88fd7b8c4a09c (diff)
xen/pciback: Don't print scary messages when unsupported by hypervisor.
We print at the warninig level messages such as: pciback 0000:90:00.5: MSI-X preparation failed (-38) which is due to the hypervisor not supporting this sub-hypercall (which was added in Xen 4.3). Instead of having scary messages all the time - only have it when the hypercall is actually supported. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen/xen-pciback')
-rw-r--r--drivers/xen/xen-pciback/pci_stub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xen-pciback/pci_stub.c b/drivers/xen/xen-pciback/pci_stub.c
index cc3cbb4435f8..258b7c325649 100644
--- a/drivers/xen/xen-pciback/pci_stub.c
+++ b/drivers/xen/xen-pciback/pci_stub.c
@@ -118,7 +118,7 @@ static void pcistub_device_release(struct kref *kref)
118 int err = HYPERVISOR_physdev_op(PHYSDEVOP_release_msix, 118 int err = HYPERVISOR_physdev_op(PHYSDEVOP_release_msix,
119 &ppdev); 119 &ppdev);
120 120
121 if (err) 121 if (err && err != -ENOSYS)
122 dev_warn(&dev->dev, "MSI-X release failed (%d)\n", 122 dev_warn(&dev->dev, "MSI-X release failed (%d)\n",
123 err); 123 err);
124 } 124 }
@@ -402,7 +402,7 @@ static int pcistub_init_device(struct pci_dev *dev)
402 }; 402 };
403 403
404 err = HYPERVISOR_physdev_op(PHYSDEVOP_prepare_msix, &ppdev); 404 err = HYPERVISOR_physdev_op(PHYSDEVOP_prepare_msix, &ppdev);
405 if (err) 405 if (err && err != -ENOSYS)
406 dev_err(&dev->dev, "MSI-X preparation failed (%d)\n", 406 dev_err(&dev->dev, "MSI-X preparation failed (%d)\n",
407 err); 407 err);
408 } 408 }