]> git.proxmox.com Git - mirror_qemu.git/commit - block/null.c
block: Introduce "null" drivers
authorFam Zheng <famz@redhat.com>
Thu, 11 Sep 2014 06:09:56 +0000 (14:09 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 22 Sep 2014 10:39:23 +0000 (11:39 +0100)
commite819ab22777fd455d5b130afe48c808d35ef7e93
tree7701c3c369c7c9e03e17e84aca651c679b8d67ac
parenta90d411e63ef29bb99b984e0fdb7796aeee1c724
block: Introduce "null" drivers

This is an analogue to Linux null_blk. It can be used for testing or
benchmarking block device emulation and general block layer
functionalities such as coroutines and throttling, where disk IO is not
necessary or wanted.

Use null-aio:// for AIO version, and null-co:// for coroutine version.

[Resolved conflict with Fam's async bdrv_aio_cancel() series:
1. Drop .bdrv_aio_cancel() since it is now done by block.c
2. Rename qemu_aio_release() to qemu_aio_unref()
--Stefan]

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1410415798-20673-2-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/Makefile.objs
block/null.c [new file with mode: 0644]
qapi/block-core.json