hw/misc: move vmlaunchupdate.c to system_ss
PATCH 4/4 MAINTAINERS: fix typo in test-multi-target.c filename
In reply to Daniel P. Berrangé--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -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
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.
--- tests/lcitool/refresh | 2 ++ 1 file changed, 2 insertions(+)
tests/lcitool/refresh +2 -0
@@ -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
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
@@ -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
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
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
@@ -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
@@ -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
@@ -35,6 +35,7 @@ packages: - gtk3 - gtk-vnc - hostname + - igvm - json-c - libaio - libasan
Signature · 1 line
2.56.0
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: movevmlaunchupdate.cfromspecific_sstosystem_sstests/lcitool: add mips32r6el toolchain to refresh script tests/docker: add igvm to Fedora container images
MAINTAINERS: fix typo intest-multi-target.cfilename
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
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: movevmlaunchupdate.cfromspecific_sstosystem_sstests/lcitool: add mips32r6el toolchain to refresh script tests/docker: add igvm to Fedora container images
MAINTAINERS: fix typo intest-multi-target.cfilename
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
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")Signed-off-by Daniel P. Berrangé <[email protected]>--- tests/lcitool/refresh | 2 ++ 1 file changed, 2 insertions(+)
Oops thanks.