summaryrefslogtreecommitdiff
path: root/hw/block/trace-events
diff options
context:
space:
mode:
authorPaul Durrant <paul.durrant@citrix.com>2017-11-07 05:46:53 -0500
committerStefano Stabellini <sstabellini@kernel.org>2017-12-14 15:24:22 -0800
commit1491ede74dd441d77e7d8df5c65892ddfa140879 (patch)
treec836be89c5d704245dd61adec8a361f1fa1e4f0a /hw/block/trace-events
parent0a0dc59d27527b78a195c2d838d28b7b49e5a639 (diff)
downloadqemu-1491ede74dd441d77e7d8df5c65892ddfa140879.tar.gz
xen-disk: use an IOThread per instance
This patch allocates an IOThread object for each xen_disk instance and sets the AIO context appropriately on connect. This allows processing of I/O to proceed in parallel. The patch also adds tracepoints into xen_disk to make it possible to follow the state transtions of an instance in the log. Signed-off-by: Paul Durrant <paul.durrant@citrix.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'hw/block/trace-events')
-rw-r--r--hw/block/trace-events7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/block/trace-events b/hw/block/trace-events
index cb6767b3ee..962a3bfa24 100644
--- a/hw/block/trace-events
+++ b/hw/block/trace-events
@@ -10,3 +10,10 @@ virtio_blk_submit_multireq(void *vdev, void *mrb, int start, int num_reqs, uint6
# hw/block/hd-geometry.c
hd_geometry_lchs_guess(void *blk, int cyls, int heads, int secs) "blk %p LCHS %d %d %d"
hd_geometry_guess(void *blk, uint32_t cyls, uint32_t heads, uint32_t secs, int trans) "blk %p CHS %u %u %u trans %d"
+
+# hw/block/xen_disk.c
+xen_disk_alloc(char *name) "%s"
+xen_disk_init(char *name) "%s"
+xen_disk_connect(char *name) "%s"
+xen_disk_disconnect(char *name) "%s"
+xen_disk_free(char *name) "%s"