dataplane: use the QEMU block layer for I/O
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:55 +0000 (16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:12 +0000 (09:56 +0200)
commit580b6b2aa2fea42ee42921ef5812b40224ab1b49
treee251c22f0f563b633733c8ff91b4f301daf81267
parentc75f3bdf46f74c9f1c199ace3d2b291e430dcda3
dataplane: use the QEMU block layer for I/O

Stop using a custom Linux AIO request queue from ioq.h and instead use
the QEMU block layer for I/O.

This patch adjusts the VirtIOBlockRequest struct with fields needed for
bdrv_aio_readv()/bdrv_aio_writev().  ioq.h used struct iovec and struct
iocb, which we don't need directly anymore.

Modify dataplane start/stop to set the AioContext on the
BlockDriverState.  We also no longer need to get the raw-posix file
descriptor.  This means image formats are now supported with dataplane!

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/dataplane/virtio-blk.c