* [PATCH] meson: fix condition for io_uring stubs
@ 2021-07-12 12:39 Paolo Bonzini
2021-07-12 12:56 ` Alex Bennée
2021-07-12 13:40 ` Daniel P. Berrangé
0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2021-07-12 12:39 UTC (permalink / raw)
To: qemu-devel; +Cc: alex.bennee
CONFIG_LINUX_IO_URING is not included in config-host.mak and therefore is
not usable in "when" clauses. Just include it unconditionally, it will
be quietly elided by the linker if liburing is not available (including
on non-Linux).
At this point, the difference between libraries that have config-host.mak
entries and those that do not is quite confusing. The remaining ~dozen
should be converted in 6.2.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
stubs/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stubs/meson.build b/stubs/meson.build
index 2e79ff9f4d..42e81ab5c3 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -15,7 +15,7 @@ stub_ss.add(files('fdset.c'))
stub_ss.add(files('fw_cfg.c'))
stub_ss.add(files('gdbstub.c'))
stub_ss.add(files('get-vm-name.c'))
-stub_ss.add(when: 'CONFIG_LINUX_IO_URING', if_true: files('io_uring.c'))
+stub_ss.add(files('io_uring.c'))
stub_ss.add(files('iothread-lock.c'))
stub_ss.add(files('isa-bus.c'))
stub_ss.add(files('is-daemonized.c'))
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] meson: fix condition for io_uring stubs
2021-07-12 12:39 [PATCH] meson: fix condition for io_uring stubs Paolo Bonzini
@ 2021-07-12 12:56 ` Alex Bennée
2021-07-12 13:40 ` Daniel P. Berrangé
1 sibling, 0 replies; 3+ messages in thread
From: Alex Bennée @ 2021-07-12 12:56 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel
Paolo Bonzini <pbonzini@redhat.com> writes:
> CONFIG_LINUX_IO_URING is not included in config-host.mak and therefore is
> not usable in "when" clauses. Just include it unconditionally, it will
> be quietly elided by the linker if liburing is not available (including
> on non-Linux).
>
> At this point, the difference between libraries that have config-host.mak
> entries and those that do not is quite confusing. The remaining ~dozen
> should be converted in 6.2.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Queued to pr/120721-testing-and-plugins-1, thanks.
--
Alex Bennée
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meson: fix condition for io_uring stubs
2021-07-12 12:39 [PATCH] meson: fix condition for io_uring stubs Paolo Bonzini
2021-07-12 12:56 ` Alex Bennée
@ 2021-07-12 13:40 ` Daniel P. Berrangé
1 sibling, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2021-07-12 13:40 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: alex.bennee, qemu-devel
On Mon, Jul 12, 2021 at 02:39:17PM +0200, Paolo Bonzini wrote:
> CONFIG_LINUX_IO_URING is not included in config-host.mak and therefore is
> not usable in "when" clauses. Just include it unconditionally, it will
> be quietly elided by the linker if liburing is not available (including
> on non-Linux).
>
> At this point, the difference between libraries that have config-host.mak
> entries and those that do not is quite confusing. The remaining ~dozen
> should be converted in 6.2.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> stubs/meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Tested-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-12 13:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 12:39 [PATCH] meson: fix condition for io_uring stubs Paolo Bonzini
2021-07-12 12:56 ` Alex Bennée
2021-07-12 13:40 ` Daniel P. Berrangé
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.