diff options
author | Eugenio Pérez <eperezma@redhat.com> | 2022-04-05 08:36:28 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-04-26 12:32:47 +0200 |
commit | 5580b9f00e7210add5d9415664469932c96f9a40 (patch) | |
tree | b338ded9da5c1544f3facf7329da275602ca0880 /hw/virtio/vhost-vdpa.c | |
parent | 46c1ea01312b13b8aa4da286c9d868fe9b702758 (diff) | |
download | qemu-5580b9f00e7210add5d9415664469932c96f9a40.zip qemu-5580b9f00e7210add5d9415664469932c96f9a40.tar.gz qemu-5580b9f00e7210add5d9415664469932c96f9a40.tar.bz2 |
vdpa: Add missing tracing to batch mapping functions
These functions were not traced properly.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220405063628.853745-1-eperezma@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/virtio/vhost-vdpa.c')
-rw-r--r-- | hw/virtio/vhost-vdpa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c index b57be52..a30510e 100644 --- a/hw/virtio/vhost-vdpa.c +++ b/hw/virtio/vhost-vdpa.c @@ -129,6 +129,7 @@ static void vhost_vdpa_listener_begin_batch(struct vhost_vdpa *v) .iotlb.type = VHOST_IOTLB_BATCH_BEGIN, }; + trace_vhost_vdpa_listener_begin_batch(v, fd, msg.type, msg.iotlb.type); if (write(fd, &msg, sizeof(msg)) != sizeof(msg)) { error_report("failed to write, fd=%d, errno=%d (%s)", fd, errno, strerror(errno)); @@ -163,6 +164,7 @@ static void vhost_vdpa_listener_commit(MemoryListener *listener) msg.type = v->msg_type; msg.iotlb.type = VHOST_IOTLB_BATCH_END; + trace_vhost_vdpa_listener_commit(v, fd, msg.type, msg.iotlb.type); if (write(fd, &msg, sizeof(msg)) != sizeof(msg)) { error_report("failed to write, fd=%d, errno=%d (%s)", fd, errno, strerror(errno)); |