virtio-blk: trace vdev so devices can be distinguished
commita576ceac393b8d7490224bf2be65e0eb8f44f556
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 14 Jun 2017 09:29:30 +0000 (14 10:29 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 29 Jun 2017 13:31:16 +0000 (29 14:31 +0100)
tree280981a4163a174a4551bb16f3ab05914161369f
parent464588675455afda2899e20a0b120e4075de50c7
virtio-blk: trace vdev so devices can be distinguished

It is hard to analyze trace logs with multiple virtio-blk devices
because none of the trace events include the VirtIODevice *vdev.

This patch adds vdev so it's clear which device a request is associated
with.

I considered using VirtIOBlock *s instead but VirtIODevice *vdev is more
general and may be correlated with generic virtio trace events like
virtio_set_status.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20170614092930.11234-1-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/trace-events
hw/block/virtio-blk.c