Re: [PATCH 3/4] hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header

2023-12-26 Thread Philippe Mathieu-Daudé

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é 
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-phi...@linaro.org/



Re: [PATCH 3/4] hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header

2023-12-14 Thread Eric Farman
On Tue, 2023-12-12 at 12:36 +0100, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé 
> ---
>  hw/s390x/ipl.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> 
Yup, this appears no longer relevant since commit 3549118b4988

Reviewed-by: Eric Farman 




Re: [PATCH 3/4] hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header

2023-12-13 Thread Christian Borntraeger

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é 
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



Re: [PATCH 3/4] hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header

2023-12-12 Thread Eric Farman
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é 
> > ---
> >   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 
> AuthorDate: Tue Apr 24 12:18:59 2018 +0200
> Commit: Cornelia Huck 
> 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é 
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.





Re: [PATCH 3/4] hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header

2023-12-12 Thread Christian Borntraeger




Am 12.12.23 um 12:36 schrieb Philippe Mathieu-Daudé:

Signed-off-by: Philippe Mathieu-Daudé 
---
  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 
AuthorDate: Tue Apr 24 12:18:59 2018 +0200
Commit: Cornelia Huck 
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?





[PATCH 3/4] hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header

2023-12-12 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé 
---
 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"
 
 #define KERN_IMAGE_START0x01UL
 #define LINUX_MAGIC_ADDR0x010008UL
-- 
2.41.0