* [PATCH] virtio-pci: fix the confusing error message
@ 2021-12-09 3:29 王贇
0 siblings, 0 replies; only message in thread
From: 王贇 @ 2021-12-09 3:29 UTC (permalink / raw)
To: Michael S. Tsirkin, Jason Wang,
open list:VIRTIO CORE AND NET DRIVERS, open list
The error message on the failure of pfn check should tell
virtio-pci rather than virtio-mmio, just fix it.
Signed-off-by: Michael Wang <yun.wang@linux.alibaba.com>
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
---
drivers/virtio/virtio_pci_legacy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/virtio/virtio_pci_legacy.c
b/drivers/virtio/virtio_pci_legacy.c
index d62e983..0ede3bf 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drivers/virtio/virtio_pci_legacy.c
@@ -144,7 +144,7 @@ static struct virtqueue *setup_vq(struct
virtio_pci_device *vp_dev,
q_pfn = virtqueue_get_desc_addr(vq) >> VIRTIO_PCI_QUEUE_ADDR_SHIFT;
if (q_pfn >> 32) {
dev_err(&vp_dev->pci_dev->dev,
- "platform bug: legacy virtio-mmio must not be used with RAM above
0x%llxGB\n",
+ "platform bug: legacy virtio-pci must not be used with RAM above
0x%llxGB\n",
0x1ULL << (32 + PAGE_SHIFT - 30));
err = -E2BIG;
goto out_del_vq;
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-09 3:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-09 3:29 [PATCH] virtio-pci: fix the confusing error message 王贇
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.