Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-25 Thread Markus Armbruster
Pierrick Bouvier writes: > On 4/25/25 08:38, Markus Armbruster wrote: >> Pierrick Bouvier writes: >> >>> Note: This RFC was posted to trigger a discussion around this topic, and >>> it's >>> not expected to merge it as it is. >>> >>> Context >>> === >>> >>> Linaro is working towards hetero

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-25 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 25/4/25 09:35, Daniel P. Berrangé wrote: >> On Thu, Apr 24, 2025 at 11:33:47AM -0700, Pierrick Bouvier wrote: >>> Feedback >>> >>> >>> The goal of this series is to be spark a conversation around following >>> topics: >>> >>> - Would you be open to su

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-25 Thread Philippe Mathieu-Daudé
On 25/4/25 09:35, Daniel P. Berrangé wrote: On Thu, Apr 24, 2025 at 11:33:47AM -0700, Pierrick Bouvier wrote: Feedback The goal of this series is to be spark a conversation around following topics: - Would you be open to such an approach? (expose all code, and restrict commands reg

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-25 Thread Pierrick Bouvier
On 4/25/25 14:07, Pierrick Bouvier wrote: QAPI/QMP introspection has all commands and events, and all types reachable from them. query-qmp-schema returns an array, where each array element describes one command, event, or type. When a command, event, or type is conditional in the schema, the el

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-25 Thread Pierrick Bouvier
On 4/25/25 08:38, Markus Armbruster wrote: Pierrick Bouvier writes: Note: This RFC was posted to trigger a discussion around this topic, and it's not expected to merge it as it is. Context === Linaro is working towards heterogeneous emulation, mixing several architectures in a single QEM

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-25 Thread Pierrick Bouvier
On 4/25/25 00:35, Daniel P. Berrangé wrote: On Thu, Apr 24, 2025 at 11:33:47AM -0700, Pierrick Bouvier wrote: Feedback The goal of this series is to be spark a conversation around following topics: - Would you be open to such an approach? (expose all code, and restrict commands reg

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-25 Thread Markus Armbruster
Pierrick Bouvier writes: > Note: This RFC was posted to trigger a discussion around this topic, and it's > not expected to merge it as it is. > > Context > === > > Linaro is working towards heterogeneous emulation, mixing several > architectures > in a single QEMU process. The first prerequi

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-25 Thread Daniel P . Berrangé
On Thu, Apr 24, 2025 at 11:33:47AM -0700, Pierrick Bouvier wrote: > Feedback > > > The goal of this series is to be spark a conversation around following topics: > > - Would you be open to such an approach? (expose all code, and restrict > commands > registered at runtime only for spe

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-24 Thread Pierrick Bouvier
On 4/24/25 13:43, Philippe Mathieu-Daudé wrote: What about function name clashes? I.e.: 389 ## 390 # @query-cpu-definitions: 391 # 392 # Return a list of supported virtual CPU definitions 393 # 394 # Returns: a list of CpuDefinitionInfo 395 # 396 # Since: 1.2 397 ## 398 { 'command': 'query-cpu-d

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-24 Thread Richard Henderson
On 4/24/25 13:43, Philippe Mathieu-Daudé wrote: What about function name clashes? I.e.: 389 ## 390 # @query-cpu-definitions: 391 # 392 # Return a list of supported virtual CPU definitions 393 # 394 # Returns: a list of CpuDefinitionInfo 395 # 396 # Since: 1.2 397 ## 398 { 'command': 'query-cpu-d

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-24 Thread Philippe Mathieu-Daudé
+Marc-André, Daniel & Dave On 24/4/25 20:33, Pierrick Bouvier wrote: Note: This RFC was posted to trigger a discussion around this topic, and it's not expected to merge it as it is. Context === Linaro is working towards heterogeneous emulation, mixing several architectures in a single QEMU

Re: [RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-24 Thread Philippe Mathieu-Daudé
On 24/4/25 20:33, Pierrick Bouvier wrote: QAPI QAPI generated files contain conditional clauses to define various structures, enums, and commands only for specific targets. This forces files to be compiled for every target. What we try to do here is to build them only once instead. In the

[RFC PATCH 0/3] single-binary: make QAPI generated files common

2025-04-24 Thread Pierrick Bouvier
Note: This RFC was posted to trigger a discussion around this topic, and it's not expected to merge it as it is. Context === Linaro is working towards heterogeneous emulation, mixing several architectures in a single QEMU process. The first prerequisite is to be able to build such a binary, w