[PATCH v2 0/3] target-info: expose full target variant

Pierrick Bouvier posted 3 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261007184612.24073-1-pierrick.bouvier@oss.qualcomm.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>, "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>, Markus Armbruster <armbru@redhat.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>
meson.build            | 11 +++++++++--
target-info-stub.c     |  2 +-
tests/qtest/qmp-test.c | 13 +++++++++++++
3 files changed, 23 insertions(+), 3 deletions(-)
[PATCH v2 0/3] target-info: expose full target variant
Posted by Pierrick Bouvier 1 month, 2 weeks ago
Recently, a regression was introduced that restricted list of targets returned
by target-info by ignoring endianness variants. As a result, qmp query_target
output changed compared to previous releases.

Fix that by exporting the full variant, and use that to define arch in
target_info, thus giving us back a 1:1 mapping with SYS_EMU_TARGET enum.

v2
--

- Add Suggested-by for Yonggang on two first patches
- Add test patch from Yonggang

Pierrick Bouvier (2):
  meson.build: export TARGET_ARCH_VARIANT in target config
  target-info: use TARGET_ARCH_VARIANT

Yonggang Luo (1):
  tests/qtest: check query-target architecture

 meson.build            | 11 +++++++++--
 target-info-stub.c     |  2 +-
 tests/qtest/qmp-test.c | 13 +++++++++++++
 3 files changed, 23 insertions(+), 3 deletions(-)

-- 
2.43.0
Re: [PATCH v2 0/3] target-info: expose full target variant
Posted by Pierrick Bouvier 1 month, 2 weeks ago
On 10/7/2026 11:46 AM, Pierrick Bouvier wrote:
> Recently, a regression was introduced that restricted list of targets returned
> by target-info by ignoring endianness variants. As a result, qmp query_target
> output changed compared to previous releases.
> 
> Fix that by exporting the full variant, and use that to define arch in
> target_info, thus giving us back a 1:1 mapping with SYS_EMU_TARGET enum.
> 
> v2
> --
> 
> - Add Suggested-by for Yonggang on two first patches
> - Add test patch from Yonggang
> 
> Pierrick Bouvier (2):
>   meson.build: export TARGET_ARCH_VARIANT in target config
>   target-info: use TARGET_ARCH_VARIANT
> 
> Yonggang Luo (1):
>   tests/qtest: check query-target architecture
> 
>  meson.build            | 11 +++++++++--
>  target-info-stub.c     |  2 +-
>  tests/qtest/qmp-test.c | 13 +++++++++++++
>  3 files changed, 23 insertions(+), 3 deletions(-)
> 

This was merged into master (14c00f0e5d4ed837050a7fa1a41e4c1e9ba84cb9).

Regards,
Pierrick