vhost: add trace for IOTLB miss
commitffcbbe722fcb3c162318cba1b94a115498e25acd
authorPeter Xu <peterx@redhat.com>
Fri, 27 Apr 2018 09:07:24 +0000 (27 17:07 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 23 May 2018 00:14:41 +0000 (23 03:14 +0300)
tree39d0dd6539a56592896ceebd38741e26c9721dfc
parentb7b126442977dcfa5641e38b084bd13a0b366cff
vhost: add trace for IOTLB miss

Add some trace points for IOTLB translation for vhost. After vhost-user
is setup, the only IO path that QEMU will participate should be the
IOMMU translation, so it'll be good we can track this with explicit
timestamps when needed to see how long time we take to do the
translation, and whether there's anything stuck inside.  It might be
useful for triaging vhost-user problems.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/trace-events
hw/virtio/vhost.c