@@ -386,6 +386,8 @@ static void extract_common_blockdev_options(QemuOpts *opts, int *bdrv_flags,
if ((aio = qemu_opt_get(opts, "aio")) != NULL) {
if (!strcmp(aio, "native")) {
*bdrv_flags |= BDRV_O_NATIVE_AIO;
+ } else if (!strcmp(aio, "io_uring")) {
+ *bdrv_flags |= BDRV_O_IO_URING;
} else if (!strcmp(aio, "threads")) {
/* this is the default */
} else {
@@ -4547,7 +4549,7 @@ QemuOptsList qemu_common_drive_opts = {
},{
.name = "aio",
.type = QEMU_OPT_STRING,
- .help = "host AIO implementation (threads, native)",
+ .help = "host AIO implementation (threads, native, io_uring)",
},{
.name = BDRV_OPT_CACHE_WB,
.type = QEMU_OPT_BOOL,
Signed-off-by: Aarushi Mehta <mehta.aaru20@gmail.com> --- blockdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1