Re: [Qemu-devel] [PATCH v5] block: Introduce "null" drivers

2014-09-03 Thread Kevin Wolf
Am 01.09.2014 um 11:22 hat Fam Zheng geschrieben: > 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:/

Re: [Qemu-devel] [PATCH v5] block: Introduce "null" drivers

2014-09-03 Thread Fam Zheng
On Wed, 09/03 12:10, Kevin Wolf wrote: > Am 01.09.2014 um 11:22 hat Fam Zheng geschrieben: > > 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

Re: [Qemu-devel] [PATCH v5] block: Introduce "null" drivers

2014-09-02 Thread Stefan Hajnoczi
On Mon, Sep 01, 2014 at 05:22:04PM +0800, Fam Zheng wrote: > +{ 'type': 'BlockdevOptionsNull', > + 'base': 'BlockdevOptionsFile', > + 'data': { '*size': 'int' } } Why inherit from BlockdevOptionsFile? No other blockdev options type does that. Unless there is a real inheritance relationship, pl

[Qemu-devel] [PATCH v5] block: Introduce "null" drivers

2014-09-01 Thread Fam Zheng
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. Sign