xen-disk: use an IOThread per instance
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 7 Nov 2017 10:46:53 +0000 (05:46 -0500)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 14 Dec 2017 23:24:22 +0000 (15:24 -0800)
commit1491ede74dd441d77e7d8df5c65892ddfa140879
treec836be89c5d704245dd61adec8a361f1fa1e4f0a
parent0a0dc59d27527b78a195c2d838d28b7b49e5a639
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>
hw/block/trace-events
hw/block/xen_disk.c