[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/5] log: Add more details to virtio_report in virtqueue_pop
From: |
Peng Liang |
Subject: |
[PATCH 3/5] log: Add more details to virtio_report in virtqueue_pop |
Date: |
Thu, 6 Aug 2020 17:37:18 +0800 |
Add virtio device name and virtqueue info to virtio_report in
virtqueue_pop so that we can find out which device's virtqueue is
broken.
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
---
hw/virtio/virtio.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
index f3568f5267..6b35bed1d7 100644
--- a/hw/virtio/virtio.c
+++ b/hw/virtio/virtio.c
@@ -1439,7 +1439,9 @@ static void *virtqueue_split_pop(VirtQueue *vq, size_t sz)
max = vq->vring.num;
if (vq->inuse >= vq->vring.num) {
- virtio_error(vdev, "Virtqueue size exceeded");
+ virtio_error(vdev, "Virtio device %s vq->inuse=%d vq->vring.num=%d, "
+ "virtqueue size exceeded",
+ vdev->name, vq->inuse, vq->vring.num);
goto done;
}
--
2.18.4
- [PATCH 0/5] log: Add logs for some modules, Peng Liang, 2020/08/06
- [PATCH 3/5] log: Add more details to virtio_report in virtqueue_pop,
Peng Liang <=
- [PATCH 1/5] log: Add logs for vm start and destroy, Peng Liang, 2020/08/06
- [PATCH 2/5] log: Add log for each modules, Peng Liang, 2020/08/06
- [PATCH 4/5] log: Add log at boot & cpu init for aarch64, Peng Liang, 2020/08/06
- [PATCH 5/5] log: Add logs during qemu start, Peng Liang, 2020/08/06
- Re: [PATCH 0/5] log: Add logs for some modules, Daniel P . Berrangé, 2020/08/06