Skip to contentSkip to conversation

hw/misc: move vmlaunchupdate.c to system_ss

PATCH In review Daniel P. Berrangé 3 participants 8 messages Nov 6 – Nov 9 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#5 lore raw

PATCH 4/4 MAINTAINERS: fix typo in test-multi-target.c filename

In reply to Daniel P. Berrangé
Fixes 8b395deb9475 ("target-info: add multi-target test binary")
---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index 55463103ff1..fa0c6d0c9bc 100644
@@ -2186,7 +2186,7 @@ M: Philippe Mathieu-Daudé <[email protected]>
 S: Supported
 F: include/qemu/target-info*.h
 F: target-info*.c
-F: tests/unit/test-multi-targets.c
+F: tests/unit/test-multi-target.c
 
 Xtensa Machines
 ---------------
Signature · 1 line
2.56.0
#2 lore raw

PATCH 2/4 tests/lcitool: add mips32r6el toolchain to refresh script

In reply to Daniel P. Berrangé

The debian-all-test-cross.docker file is auto-generated so the extra toolchains need to be listed in the prologue in the refresh script.

Fixes ace0b0b3d104 ("tests/docker: Add the mips32r6el toolchain on Debian cross container")
---
 tests/lcitool/refresh | 2 ++
 1 file changed, 2 insertions(+)
tests/lcitool/refresh +2 -0
index 94cab24bbdb..075acb82e1d 100755
@@ -200,6 +200,8 @@ RUN apt update && \
   libc6-dev-mips64el-cross \
   gcc-mipsel-linux-gnu \
   libc6-dev-mipsel-cross \
+  gcc-mipsisa32r6el-linux-gnu \
+  libc6-dev-mipsr6el-cross \
   gcc-mipsisa64r6-linux-gnuabi64 \
   libc6-dev-mips64r6-cross \
   gcc-mipsisa64r6el-linux-gnuabi64 \
Signature · 1 line
2.56.0
#1 lore raw

PATCH 1/4 hw/misc: move vmlaunchupdate.c from specific_ss to system_ss

In reply to Daniel P. Berrangé

test-multi-target fails when igvm is enabled if both arm and aarch64 targets are enabled:

  $ tests/unit/test-multi-target
  TAP version 14
  # random seed: R02S0c27cf3526927aa4a7f822f0a8315b3e
  1..2
  # Start of multi-targets tests
  # Start of qom-types-are-unique tests
  Registering `vm-launch-update' which already exists
  # child process (/multi-targets/qom-types-are-unique/aarch64 [1982534]) killed by signal 6 (Aborted)
  # child process (/multi-targets/qom-types-are-unique/aarch64 [1982534]) stdout: ""
  # child process (/multi-targets/qom-types-are-unique/aarch64 [1982534]) stderr: "Registering `vm-launch-update' which already exists\n"
  **
  ERROR:../tests/unit/test-multi-target.c:41:test_qom_types_are_unique: child process (/multi-targets/qom-types-are-unique/aarch64 [1982534]) failed unexpectedly
  not ok /multi-targets/qom-types-are-unique/aarch64 - ERROR:../tests/unit/test-multi-target.c:41:test_qom_types_are_unique: child process (/multi-targets/qom-types-are-unique/aarch64 [1982534]) failed unexpectedly
  Bail out!
  Aborted                    (core dumped) tests/unit/test-multi-target

This is because it is linked twice into test-multi-target and thus the same device class object code is duplicated and thus the class name gets registered twice.

---
 hw/misc/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/misc/meson.build +1 -1
index fc3800baec0..7a071af82b0 100644
@@ -170,7 +170,7 @@ specific_ss.add(when: 'CONFIG_MIPS_ITU', if_true: files('mips_itu.c'))
 specific_ss.add(when: 'CONFIG_RISCV_MIPS_CMGCR', if_true: files('riscv_cmgcr.c'))
 specific_ss.add(when: 'CONFIG_RISCV_MIPS_CPC', if_true: files('riscv_cpc.c'))
 if igvm.found()
-   specific_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('vmlaunchupdate.c'))
+   system_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('vmlaunchupdate.c'))
 endif
 
 system_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa_ec.c'))
Signature · 1 line
2.56.0
#0 lore raw

cover hw/misc: move vmlaunchupdate.c to system_ss

If building with IGVM enabled and both arm-softmmu and aarch64-softmmu, test-multi-target breaks because the vm-launch-update QOM class is linked in twice and thus registered twice.

Daniel P. Berrangé (4):
hw/misc: move vmlaunchupdate.c from specific_ss to system_ss tests/lcitool: add mips32r6el toolchain to refresh script tests/docker: add igvm to Fedora container images
MAINTAINERS: fix typo in test-multi-target.c filename

 MAINTAINERS                                         | 2 +-
 hw/misc/meson.build                                 | 2 +-
 tests/docker/dockerfiles/fedora-rust-nightly.docker | 1 +
 tests/docker/dockerfiles/fedora.docker              | 1 +
 tests/lcitool/projects/qemu.yml                     | 1 +
 tests/lcitool/refresh                               | 2 ++
 6 files changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
2.56.0
#4 lore raw

PATCH 3/4 tests/docker: add igvm to Fedora container images

The igvm-devel RPM is used for certain features on the x86 and arm platforms, so should be included to give build and test coverage in CI.

---
 tests/docker/dockerfiles/fedora-rust-nightly.docker | 1 +
 tests/docker/dockerfiles/fedora.docker              | 1 +
 tests/lcitool/projects/qemu.yml                     | 1 +
 3 files changed, 3 insertions(+)
tests/docker/dockerfiles/fedora-rust-nightly.docker +1 -0
index 144325ae1e7..7eae32f126a 100644
@@ -54,6 +54,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                        gtk-vnc2-devel \
                        gtk3-devel \
                        hostname \
+                       igvm-devel \
                        jemalloc-devel \
                        json-c-devel \
                        libaio-devel \
tests/docker/dockerfiles/fedora.docker +1 -0
index 8f7e9efc899..871b1ba3f20 100644
@@ -54,6 +54,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                        gtk-vnc2-devel \
                        gtk3-devel \
                        hostname \
+                       igvm-devel \
                        jemalloc-devel \
                        json-c-devel \
                        libaio-devel \
tests/lcitool/projects/qemu.yml +1 -0
index abbd3e3f0b8..37a0c931fb2 100644
@@ -35,6 +35,7 @@ packages:
  - gtk3
  - gtk-vnc
  - hostname
+ - igvm
  - json-c
  - libaio
  - libasan
Signature · 1 line
2.56.0
Reviewed-by on the v1 series
#6 lore raw
In reply to Daniel P. Berrangé
Quoted 11 lines · Daniel P. Berrangé

If building with IGVM enabled and both arm-softmmu and aarch64-softmmu, test-multi-target breaks because the vm-launch-update QOM class is linked in twice and thus registered twice.

Daniel P. Berrangé (4):
hw/misc: move vmlaunchupdate.c from specific_ss to system_ss tests/lcitool: add mips32r6el toolchain to refresh script tests/docker: add igvm to Fedora container images
MAINTAINERS: fix typo in test-multi-target.c filename

Quoted 8 lines
 MAINTAINERS                                         | 2 +-
 hw/misc/meson.build                                 | 2 +-
 tests/docker/dockerfiles/fedora-rust-nightly.docker | 1 +
 tests/docker/dockerfiles/fedora.docker              | 1 +
 tests/lcitool/projects/qemu.yml                     | 1 +
 tests/lcitool/refresh                               | 2 ++
 6 files changed, 7 insertions(+), 2 deletions(-)

Good catch, thanks.

Sending it for 11.2 as a multi-target fix, with the additional whpx fix.

Regards,
Pierrick

#7 lore raw
In reply to Daniel P. Berrangé
Quoted 11 lines · Daniel P. Berrangé

If building with IGVM enabled and both arm-softmmu and aarch64-softmmu, test-multi-target breaks because the vm-launch-update QOM class is linked in twice and thus registered twice.

Daniel P. Berrangé (4):
hw/misc: move vmlaunchupdate.c from specific_ss to system_ss tests/lcitool: add mips32r6el toolchain to refresh script tests/docker: add igvm to Fedora container images
MAINTAINERS: fix typo in test-multi-target.c filename

Quoted 8 lines
 MAINTAINERS                                         | 2 +-
 hw/misc/meson.build                                 | 2 +-
 tests/docker/dockerfiles/fedora-rust-nightly.docker | 1 +
 tests/docker/dockerfiles/fedora.docker              | 1 +
 tests/lcitool/projects/qemu.yml                     | 1 +
 tests/lcitool/refresh                               | 2 ++
 6 files changed, 7 insertions(+), 2 deletions(-)

This was merged into master (71f25c75417d31c214ba2cd26b273c114fc99987). Thank you for your contribution!

Regards,
Pierrick

Reviewed-by on v1 2/4
#3 lore raw

Re: [PATCH 2/4] tests/lcitool: add mips32r6el toolchain to refresh script

In reply to Daniel P. Berrangé
Quoted 9 lines · Daniel P. Berrangé

The debian-all-test-cross.docker file is auto-generated so the extra toolchains need to be listed in the prologue in the refresh script.

Fixes ace0b0b3d104 ("tests/docker: Add the mips32r6el toolchain on Debian cross container")
---
  tests/lcitool/refresh | 2 ++
  1 file changed, 2 insertions(+)

Oops thanks.