Skip to content
  • Fam Zheng's avatar
    block: Introduce "null" drivers · e819ab22
    Fam Zheng authored
    
    
    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: default avatarFam Zheng <famz@redhat.com>
    Reviewed-by: default avatarBenoît Canet <benoit.canet@nodalink.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Message-id: 1410415798-20673-2-git-send-email-famz@redhat.com
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    e819ab22