[PATCH] Only advertise aio=io_uring if support is actually available

2022-04-19 Thread Dirk Müller
This allows $qemu --help runtime configure checks for detecting the host support. Signed-off-by: Dirk Müller --- block/file-posix.c | 4 qemu-nbd.c | 4 qemu-options.hx| 6 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/block/file-posix.c b/block

[PATCH v2] Only advertise aio=io_uring if support is actually available

2022-04-21 Thread Dirk Müller
Change --help output for aio option to only list the aio backend options that are actually available. io_uring is an optional, linux only backend option so hide it for cases where it isn't there. Reviewed-by: Eric Blake Signed-off-by: Dirk Müller --- block/file-posix.c | 4 qemu-

Re: [PATCH] Only advertise aio=io_uring if support is actually available

2022-04-21 Thread Dirk Müller
On Mittwoch, 20. April 2022 10:33:38 CEST Daniel P. Berrangé wrote: Hi Daniel, > That all said, the patch itself is OK, because for human targetted > interactive usage, it is desirable for --help to be representative > of what's available. > > IOW, I'm just complaining about the commit message j

Re: [PATCH] Only advertise aio=io_uring if support is actually available

2022-04-25 Thread Dirk Müller
On Mittwoch, 20. April 2022 10:33:38 CEST Daniel P. Berrangé wrote: Hi Daniel, > If we're going to conditionalize this, then we really ought to be > address it fully, because 'native' is also platform specific. Good point. I can do that as well. > IOW, we would end up needing something more li