Message ID | 20190527080327.10780-3-mehta.aaru20@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add support for io_uring | expand |
On Mon, May 27, 2019 at 9:04 AM Aarushi Mehta <mehta.aaru20@gmail.com> wrote: > diff --git a/qapi/block-core.json b/qapi/block-core.json > index 7ccbfff9d0..2773803890 100644 > --- a/qapi/block-core.json > +++ b/qapi/block-core.json > @@ -2776,11 +2776,13 @@ > # > # @threads: Use qemu's thread pool > # @native: Use native AIO backend (only Linux and Windows) > +# @io_uring: Use linux io_uring (only Linux) > # > -# Since: 2.9 > +# Since: 2.9 @iouring Since: 4.1 The convention in QAPI schema files is to mark the newly added parameter: +# @io_uring: Use linux io_uring (only Linux, since 4.1)
diff --git a/qapi/block-core.json b/qapi/block-core.json index 7ccbfff9d0..2773803890 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -2776,11 +2776,13 @@ # # @threads: Use qemu's thread pool # @native: Use native AIO backend (only Linux and Windows) +# @io_uring: Use linux io_uring (only Linux) # -# Since: 2.9 +# Since: 2.9 @iouring Since: 4.1 ## { 'enum': 'BlockdevAioOptions', - 'data': [ 'threads', 'native' ] } + 'data': [ 'threads', 'native', + { 'name': 'io_uring', 'if': 'defined(CONFIG_LINUX_IO_URING)' } ] } ## # @BlockdevCacheOptions:
Signed-off-by: Aarushi Mehta <mehta.aaru20@gmail.com> --- qapi/block-core.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)