summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorAarushi Mehta2020-01-20 15:18:46 +0100
committerStefan Hajnoczi2020-01-30 21:59:41 +0100
commit4c34ee366dbd0cf586827c3af505c2084541aa57 (patch)
tree9e37d5d300216f743f5f9c4a82aea882abd2b104 /include/block
parentqapi/block-core: add option for io_uring (diff)
downloadqemu-4c34ee366dbd0cf586827c3af505c2084541aa57.tar.gz
qemu-4c34ee366dbd0cf586827c3af505c2084541aa57.tar.xz
qemu-4c34ee366dbd0cf586827c3af505c2084541aa57.zip
block/block: add BDRV flag for io_uring
Signed-off-by: Aarushi Mehta <mehta.aaru20@gmail.com> Reviewed-by: Maxim Levitsky <maximlevitsky@gmail.com> Acked-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20200120141858.587874-4-stefanha@redhat.com Message-Id: <20200120141858.587874-4-stefanha@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 23c76421e4..19184d5850 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -114,6 +114,7 @@ typedef struct HDGeometry {
ignoring the format layer */
#define BDRV_O_NO_IO 0x10000 /* don't initialize for I/O */
#define BDRV_O_AUTO_RDONLY 0x20000 /* degrade to read-only if opening read-write fails */
+#define BDRV_O_IO_URING 0x40000 /* use io_uring instead of the thread pool */
#define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_NO_FLUSH)