[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC 2/4] libvhost-user: print invalid address on vu_panic
From: |
Marc Hartmayer |
Subject: |
[RFC 2/4] libvhost-user: print invalid address on vu_panic |
Date: |
Thu, 25 Jun 2020 12:04:28 +0200 |
This can be helpful for debugging.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
---
contrib/libvhost-user/libvhost-user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/libvhost-user/libvhost-user.c
b/contrib/libvhost-user/libvhost-user.c
index d315db139606..9e8750a9dabc 100644
--- a/contrib/libvhost-user/libvhost-user.c
+++ b/contrib/libvhost-user/libvhost-user.c
@@ -2432,7 +2432,7 @@ virtqueue_map_desc(VuDev *dev,
iov[num_sg].iov_base = vu_gpa_to_va(dev, &len, pa);
if (iov[num_sg].iov_base == NULL) {
- vu_panic(dev, "virtio: invalid address for buffers");
+ vu_panic(dev, "virtio: invalid address 0x%lx for buffers", pa);
return;
}
iov[num_sg].iov_len = len;
--
2.25.4
- [RFC 0/4] Enable virtio-fs on s390x, Marc Hartmayer, 2020/06/25
- [RFC 1/4] virtio: add vhost-user-fs-ccw device, Marc Hartmayer, 2020/06/25
- [RFC 4/4] HACK: Hard-code the libvhost-user.o-cflags for s390x, Marc Hartmayer, 2020/06/25
- [RFC 3/4] libvhost-user: handle endianness as mandated by the spec, Marc Hartmayer, 2020/06/25
- [RFC 2/4] libvhost-user: print invalid address on vu_panic,
Marc Hartmayer <=
- Re: [RFC 0/4] Enable virtio-fs on s390x, no-reply, 2020/06/25
- Re: [RFC 0/4] Enable virtio-fs on s390x, no-reply, 2020/06/25
- Re: [RFC 0/4] Enable virtio-fs on s390x, Cornelia Huck, 2020/06/25
- Re: [RFC 0/4] Enable virtio-fs on s390x, Daniel P . Berrangé, 2020/06/25
- Re: [RFC 0/4] Enable virtio-fs on s390x, Dr. David Alan Gilbert, 2020/06/25
- Re: [RFC 0/4] Enable virtio-fs on s390x, Halil Pasic, 2020/06/25