* [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include
@ 2023-06-06 13:49 Philippe Mathieu-Daudé
2023-06-06 13:59 ` Paolo Bonzini
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-06-06 13:49 UTC (permalink / raw)
To: qemu-devel
Cc: Thomas Huth, Stefan Hajnoczi, Jagannathan Raman, Elena Ufimtseva,
John G Johnson, Philippe Mathieu-Daudé
event_notifier-posix.c is registered in meson's util_ss[] source
set, which is built as libqemuutil.a.p library. Both tools and
system emulation binaries are linked with qemuutil, so there is
no point in including this source file.
Introduced in commit bd36adb8df ("multi-process: create IOHUB
object to handle irq").
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Note, --enable-multiprocess doesn't seem to be covered in CI.
---
hw/remote/proxy.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/remote/proxy.c b/hw/remote/proxy.c
index 1c7786b52c..2052d721e5 100644
--- a/hw/remote/proxy.c
+++ b/hw/remote/proxy.c
@@ -22,7 +22,6 @@
#include "qom/object.h"
#include "qemu/event_notifier.h"
#include "sysemu/kvm.h"
-#include "util/event_notifier-posix.c"
static void probe_pci_info(PCIDevice *dev, Error **errp);
static void proxy_device_reset(DeviceState *dev);
--
2.38.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include
2023-06-06 13:49 [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include Philippe Mathieu-Daudé
@ 2023-06-06 13:59 ` Paolo Bonzini
2023-06-06 13:59 ` Peter Maydell
2023-06-06 14:19 ` Thomas Huth
2 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2023-06-06 13:59 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Thomas Huth, Stefan Hajnoczi, Jagannathan Raman,
Elena Ufimtseva, John G Johnson
Queued, thanks.
Paolo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include
2023-06-06 13:49 [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include Philippe Mathieu-Daudé
2023-06-06 13:59 ` Paolo Bonzini
@ 2023-06-06 13:59 ` Peter Maydell
2023-06-06 14:07 ` Philippe Mathieu-Daudé
2023-06-06 14:19 ` Thomas Huth
2 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2023-06-06 13:59 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Thomas Huth, Stefan Hajnoczi, Jagannathan Raman,
Elena Ufimtseva, John G Johnson
On Tue, 6 Jun 2023 at 14:50, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> event_notifier-posix.c is registered in meson's util_ss[] source
> set, which is built as libqemuutil.a.p library. Both tools and
> system emulation binaries are linked with qemuutil, so there is
> no point in including this source file.
>
> Introduced in commit bd36adb8df ("multi-process: create IOHUB
> object to handle irq").
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Note, --enable-multiprocess doesn't seem to be covered in CI.
> ---
> hw/remote/proxy.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/hw/remote/proxy.c b/hw/remote/proxy.c
> index 1c7786b52c..2052d721e5 100644
> --- a/hw/remote/proxy.c
> +++ b/hw/remote/proxy.c
> @@ -22,7 +22,6 @@
> #include "qom/object.h"
> #include "qemu/event_notifier.h"
> #include "sysemu/kvm.h"
> -#include "util/event_notifier-posix.c"
Including one .c file from another is definitely very weird;
if it is by some chance not incorrect then it needs a big
comment describing why it's necessary...
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include
2023-06-06 13:59 ` Peter Maydell
@ 2023-06-06 14:07 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-06-06 14:07 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-devel, Thomas Huth, Stefan Hajnoczi, Jagannathan Raman,
Elena Ufimtseva, John G Johnson, Paolo Bonzini
On 6/6/23 15:59, Peter Maydell wrote:
> On Tue, 6 Jun 2023 at 14:50, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>>
>> event_notifier-posix.c is registered in meson's util_ss[] source
>> set, which is built as libqemuutil.a.p library. Both tools and
>> system emulation binaries are linked with qemuutil, so there is
>> no point in including this source file.
>>
>> Introduced in commit bd36adb8df ("multi-process: create IOHUB
>> object to handle irq").
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> Note, --enable-multiprocess doesn't seem to be covered in CI.
>> ---
>> hw/remote/proxy.c | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/hw/remote/proxy.c b/hw/remote/proxy.c
>> index 1c7786b52c..2052d721e5 100644
>> --- a/hw/remote/proxy.c
>> +++ b/hw/remote/proxy.c
>> @@ -22,7 +22,6 @@
>> #include "qom/object.h"
>> #include "qemu/event_notifier.h"
>> #include "sysemu/kvm.h"
>> -#include "util/event_notifier-posix.c"
>
> Including one .c file from another is definitely very weird;
> if it is by some chance not incorrect then it needs a big
> comment describing why it's necessary...
Building QEMU configured with --enable-multiprocess still works,
so this doesn't look (anymore?) necessary.
$ git grep TYPE_PCI_PROXY_DEV
hw/remote/proxy.c:218: .name = TYPE_PCI_PROXY_DEV,
include/hw/remote/proxy.h:17:#define TYPE_PCI_PROXY_DEV "x-pci-proxy-dev"
$ ./qemu-system-x86_64 -device help | fgrep proxy
name "x-pci-proxy-dev", bus PCI
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include
2023-06-06 13:49 [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include Philippe Mathieu-Daudé
2023-06-06 13:59 ` Paolo Bonzini
2023-06-06 13:59 ` Peter Maydell
@ 2023-06-06 14:19 ` Thomas Huth
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2023-06-06 14:19 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Stefan Hajnoczi, Jagannathan Raman, Elena Ufimtseva,
John G Johnson, QEMU Trivial
On 06/06/2023 15.49, Philippe Mathieu-Daudé wrote:
> event_notifier-posix.c is registered in meson's util_ss[] source
> set, which is built as libqemuutil.a.p library. Both tools and
> system emulation binaries are linked with qemuutil, so there is
> no point in including this source file.
>
> Introduced in commit bd36adb8df ("multi-process: create IOHUB
> object to handle irq").
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Note, --enable-multiprocess doesn't seem to be covered in CI.
> ---
> hw/remote/proxy.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/hw/remote/proxy.c b/hw/remote/proxy.c
> index 1c7786b52c..2052d721e5 100644
> --- a/hw/remote/proxy.c
> +++ b/hw/remote/proxy.c
> @@ -22,7 +22,6 @@
> #include "qom/object.h"
> #include "qemu/event_notifier.h"
> #include "sysemu/kvm.h"
> -#include "util/event_notifier-posix.c"
>
> static void probe_pci_info(PCIDevice *dev, Error **errp);
> static void proxy_device_reset(DeviceState *dev);
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-06 14:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06 13:49 [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include Philippe Mathieu-Daudé
2023-06-06 13:59 ` Paolo Bonzini
2023-06-06 13:59 ` Peter Maydell
2023-06-06 14:07 ` Philippe Mathieu-Daudé
2023-06-06 14:19 ` Thomas Huth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).