Message ID | 20231212113640.30287-4-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | hw: Remove 'exec/exec-all.h' header when unused | expand |
Am 12.12.23 um 12:36 schrieb Philippe Mathieu-Daudé: > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > --- > hw/s390x/ipl.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c > index 515dcf51b5..62182d81a0 100644 > --- a/hw/s390x/ipl.c > +++ b/hw/s390x/ipl.c > @@ -35,7 +35,6 @@ > #include "qemu/cutils.h" > #include "qemu/option.h" > #include "standard-headers/linux/virtio_ids.h" > -#include "exec/exec-all.h" Philippe, This include came with commit a30fb811cbe940020a498d2cdac9326cac38b4d9 Author: David Hildenbrand <david@redhat.com> AuthorDate: Tue Apr 24 12:18:59 2018 +0200 Commit: Cornelia Huck <cohuck@redhat.com> CommitDate: Mon May 14 17:10:02 2018 +0200 s390x: refactor reset/reipl handling And I think one reason was cpu_loop_exit This is still part of ipl.c a30fb811cbe (David Hildenbrand 2018-04-24 12:18:59 +0200 664) /* as this is triggered by a CPU, make sure to exit the loop */ a30fb811cbe (David Hildenbrand 2018-04-24 12:18:59 +0200 665) if (tcg_enabled()) { a30fb811cbe (David Hildenbrand 2018-04-24 12:18:59 +0200 666) cpu_loop_exit(cs); a30fb811cbe (David Hildenbrand 2018-04-24 12:18:59 +0200 667) } So why do you think exec-all.h is unused?
On Tue, 2023-12-12 at 14:08 +0100, Christian Borntraeger wrote: > > > Am 12.12.23 um 12:36 schrieb Philippe Mathieu-Daudé: > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > > --- > > hw/s390x/ipl.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c > > index 515dcf51b5..62182d81a0 100644 > > --- a/hw/s390x/ipl.c > > +++ b/hw/s390x/ipl.c > > @@ -35,7 +35,6 @@ > > #include "qemu/cutils.h" > > #include "qemu/option.h" > > #include "standard-headers/linux/virtio_ids.h" > > -#include "exec/exec-all.h" > > Philippe, > > This include came with > commit a30fb811cbe940020a498d2cdac9326cac38b4d9 > Author: David Hildenbrand <david@redhat.com> > AuthorDate: Tue Apr 24 12:18:59 2018 +0200 > Commit: Cornelia Huck <cohuck@redhat.com> > CommitDate: Mon May 14 17:10:02 2018 +0200 > > s390x: refactor reset/reipl handling > > And I think one reason was > > cpu_loop_exit > > This is still part of ipl.c > > a30fb811cbe (David Hildenbrand 2018-04-24 12:18:59 +0200 > 664) /* as this is triggered by a CPU, make sure to exit the loop > */ > a30fb811cbe (David Hildenbrand 2018-04-24 12:18:59 +0200 > 665) if (tcg_enabled()) { > a30fb811cbe (David Hildenbrand 2018-04-24 12:18:59 +0200 > 666) cpu_loop_exit(cs); > a30fb811cbe (David Hildenbrand 2018-04-24 12:18:59 +0200 > 667) } > > So why do you think exec-all.h is unused? > > I think because that got moved out of exec-all.h a few months ago, via commit 3549118b498873c84b442bc280a5edafbb61e0a4 Author: Philippe Mathieu-Daudé <philmd@linaro.org> Date: Thu Sep 14 20:57:08 2023 +0200 exec: Move cpu_loop_foo() target agnostic functions to 'cpu- common.h' While these functions are not TCG specific, they are not target specific. Move them to "exec/cpu-common.h" so their callers don't have to be tainted as target specific.
Am 12.12.23 um 16:28 schrieb Eric Farman: >> So why do you think exec-all.h is unused? >> >> > > I think because that got moved out of exec-all.h a few months ago, via > > commit 3549118b498873c84b442bc280a5edafbb61e0a4 > Author: Philippe Mathieu-Daudé <philmd@linaro.org> > Date: Thu Sep 14 20:57:08 2023 +0200 > > exec: Move cpu_loop_foo() target agnostic functions to 'cpu- > common.h' > > While these functions are not TCG specific, they are not target > specific. Move them to "exec/cpu-common.h" so their callers don't > have to be tainted as target specific. > Ah right, I was looking at an old QEMU version....
On Tue, 2023-12-12 at 12:36 +0100, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > --- > hw/s390x/ipl.c | 1 - > 1 file changed, 1 deletion(-) > > Yup, this appears no longer relevant since commit 3549118b4988 Reviewed-by: Eric Farman <farman@linux.ibm.com>
On 13/12/23 09:18, Christian Borntraeger wrote: > Am 12.12.23 um 16:28 schrieb Eric Farman: >>> So why do you think exec-all.h is unused? >> I think because that got moved out of exec-all.h a few months ago, via >> >> commit 3549118b498873c84b442bc280a5edafbb61e0a4 >> Author: Philippe Mathieu-Daudé <philmd@linaro.org> >> Date: Thu Sep 14 20:57:08 2023 +0200 >> >> exec: Move cpu_loop_foo() target agnostic functions to 'cpu- >> common.h' >> While these functions are not TCG specific, they are not target >> specific. Move them to "exec/cpu-common.h" so their callers don't >> have to be tainted as target specific. Indeed, thanks Eric for justifying this patch. > Ah right, I was looking at an old QEMU version.... FYI I tried to clarify a bit these header patterns here: https://lore.kernel.org/qemu-devel/20231226150441.97501-1-philmd@linaro.org/
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index 515dcf51b5..62182d81a0 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -35,7 +35,6 @@ #include "qemu/cutils.h" #include "qemu/option.h" #include "standard-headers/linux/virtio_ids.h" -#include "exec/exec-all.h" #define KERN_IMAGE_START 0x010000UL #define LINUX_MAGIC_ADDR 0x010008UL
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/s390x/ipl.c | 1 - 1 file changed, 1 deletion(-)