Skip to contentSkip to conversation

Testing and misc patches

GIT PULL Applied Thomas Huth 2 participants 16 messages Jul 5, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

Hi Richard!

The following changes since commit dfe2382f0641f537fdd33399d579215077c8f68c:

Merge tag 'kraxel-20220704-pull-request' of https://gitlab.com/kraxel/qemu into staging (2022-07-04 14:57:21 +0530)

are available in the Git repository at:

https://gitlab.com/thuth/qemu.git tags/pull-request-2022-07-05

for you to fetch changes up to 7a890b756620223f35f8056baddf0406526ae025:

include/qemu/host-utils: Remove unused code in the *_overflow wrappers (2022-07-05 10:15:49 +0200)

----------------------------------------------------------------
* Fix memory leak in test-cutils
* Fix edk2/opensbi jobs to not run automatically by accident
* Improve timings in the migration qtest
* Remove libvixl disassembler
* Add ukrainian translation
* Require a recent version of libpng

----------------------------------------------------------------

Andrij Mizyk (1):
po: add ukrainian translation

Daniel P. Berrangé (7):
gitlab: normalize indentation in edk2/opensbi rules
gitlab: tweak comments in edk2/opensbi jobs
gitlab: honour QEMU_CI variable in edk2/opensbi jobs
tests: wait max 120 seconds for migration test status changes
tests: wait for migration completion before looking for STOP event
tests: increase migration test converge downtime to 30 seconds
tests: use consistent bandwidth/downtime limits in migration tests

Marc-André Lureau (1):
tests: fix test-cutils leaks

Philippe Mathieu-Daudé (1):
tests/fp: Do not build softfloat3 tests if TCG is disabled

Richard Henderson (1):
gitlab-ci: Extend timeout for ubuntu-20.04-s390x-all to 75m

Thomas Huth (3):
disas: Remove libvixl disassembler
meson.build: Require a recent version of libpng include/qemu/host-utils: Remove unused code in the *_overflow wrappers

 meson.build                                   |    6 +-
 disas/libvixl/vixl/a64/assembler-a64.h        | 4624 -----------------
 disas/libvixl/vixl/a64/constants-a64.h        | 2116 --------
 disas/libvixl/vixl/a64/cpu-a64.h              |   83 -
 disas/libvixl/vixl/a64/decoder-a64.h          |  275 -
 disas/libvixl/vixl/a64/disasm-a64.h           |  177 -
 disas/libvixl/vixl/a64/instructions-a64.h     |  757 ---
 disas/libvixl/vixl/code-buffer.h              |  113 -
 disas/libvixl/vixl/compiler-intrinsics.h      |  155 -
 disas/libvixl/vixl/globals.h                  |  155 -
 disas/libvixl/vixl/invalset.h                 |  775 ---
 disas/libvixl/vixl/platform.h                 |   39 -
 disas/libvixl/vixl/utils.h                    |  286 -
 include/exec/poison.h                         |    2 -
 include/qemu/host-utils.h                     |   65 -
 disas.c                                       |    3 -
 target/arm/cpu.c                              |    7 -
 tests/qtest/migration-helpers.c               |   14 +
 tests/qtest/migration-test.c                  |   59 +-
 tests/unit/test-cutils.c                      |   42 +-
 .../custom-runners/ubuntu-20.04-s390x.yml     |    1 +
 .gitlab-ci.d/edk2.yml                         |  133 +-
 .gitlab-ci.d/opensbi.yml                      |  134 +-
 MAINTAINERS                                   |    4 -
 disas/arm-a64.cc                              |  101 -
 disas/libvixl/LICENCE                         |   30 -
 disas/libvixl/README                          |   11 -
 disas/libvixl/meson.build                     |    7 -
 disas/libvixl/vixl/a64/decoder-a64.cc         |  877 ----
 disas/libvixl/vixl/a64/disasm-a64.cc          | 3495 -------------
 disas/libvixl/vixl/a64/instructions-a64.cc    |  622 ---
 disas/libvixl/vixl/compiler-intrinsics.cc     |  144 -
 disas/libvixl/vixl/utils.cc                   |  142 -
 disas/meson.build                             |    5 -
 po/LINGUAS                                    |    1 +
 po/uk.po                                      |   75 +
 scripts/clean-header-guards.pl                |    4 +-
 scripts/clean-includes                        |    2 +-
 scripts/coverity-scan/COMPONENTS.md           |    3 -
 tests/fp/meson.build                          |    3 +
 40 files changed, 314 insertions(+), 15233 deletions(-)
 delete mode 100644 disas/libvixl/vixl/a64/assembler-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/constants-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/cpu-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/decoder-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/disasm-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/instructions-a64.h
 delete mode 100644 disas/libvixl/vixl/code-buffer.h
 delete mode 100644 disas/libvixl/vixl/compiler-intrinsics.h
 delete mode 100644 disas/libvixl/vixl/globals.h
 delete mode 100644 disas/libvixl/vixl/invalset.h
 delete mode 100644 disas/libvixl/vixl/platform.h
 delete mode 100644 disas/libvixl/vixl/utils.h
 delete mode 100644 disas/arm-a64.cc
 delete mode 100644 disas/libvixl/LICENCE
 delete mode 100644 disas/libvixl/README
 delete mode 100644 disas/libvixl/meson.build
 delete mode 100644 disas/libvixl/vixl/a64/decoder-a64.cc
 delete mode 100644 disas/libvixl/vixl/a64/disasm-a64.cc
 delete mode 100644 disas/libvixl/vixl/a64/instructions-a64.cc
 delete mode 100644 disas/libvixl/vixl/compiler-intrinsics.cc
 delete mode 100644 disas/libvixl/vixl/utils.cc
 create mode 100644 po/uk.po
Signature · 1 line
2.31.1
#1 lore raw

[PULL 02/14] tests/fp: Do not build softfloat3 tests if TCG is disabled

From: Philippe Mathieu-Daudé <[email protected]>

Technically we don't need the TCG accelerator to run the softfloat3 tests. However it is unlikely an interesting build combination. Developers using softfloat3 likely use TCG too. Similarly, developers disabling TCG shouldn't mind much about softfloat3 tests.

This reduces a non-TCG build by 474 objects!

Message-Id: <[email protected]>

---
 tests/fp/meson.build | 3 +++
 1 file changed, 3 insertions(+)
tests/fp/meson.build +3 -0
index 8bd0979f67..2b4f00b916 100644
@@ -1,3 +1,6 @@
+if 'CONFIG_TCG' not in config_all
+  subdir_done()
+endif
 # There are namespace pollution issues on Windows, due to osdep.h
 # bringing in Windows headers that define a FLOAT128 type.
 if targetos == 'windows'
Signature · 1 line
2.31.1
#2 lore raw

[PULL 03/14] gitlab: normalize indentation in edk2/opensbi rules

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

The edk2/opensbi gitlab CI config was using single space indents which is not consistent with the rest of the gitlab CI config files.

Message-Id: <[email protected]>

---
 .gitlab-ci.d/edk2.yml    | 108 +++++++++++++++++++-------------------
 .gitlab-ci.d/opensbi.yml | 110 +++++++++++++++++++--------------------
 2 files changed, 109 insertions(+), 109 deletions(-)
.gitlab-ci.d/edk2.yml +54 -54
index 13d0f8b019..fbe763a282 100644
@@ -1,60 +1,60 @@
 # All jobs needing docker-edk2 must use the same rules it uses.
 .edk2_job_rules:
- rules: # Only run this job when ...
- - changes:
-   # this file is modified
-   - .gitlab-ci.d/edk2.yml
-   # or the Dockerfile is modified
-   - .gitlab-ci.d/edk2/Dockerfile
-   # or roms/edk2/ is modified (submodule updated)
-   - roms/edk2/*
-   when: on_success
- - if: '$CI_COMMIT_REF_NAME =~ /^edk2/' # or the branch/tag starts with 'edk2'
-   when: on_success
- - if: '$CI_COMMIT_MESSAGE =~ /edk2/i' # or last commit description contains 'EDK2'
-   when: on_success
+  rules: # Only run this job when ...
+    - changes:
+        # this file is modified
+        - .gitlab-ci.d/edk2.yml
+        # or the Dockerfile is modified
+        - .gitlab-ci.d/edk2/Dockerfile
+        # or roms/edk2/ is modified (submodule updated)
+        - roms/edk2/*
+      when: on_success
+    - if: '$CI_COMMIT_REF_NAME =~ /^edk2/' # or the branch/tag starts with 'edk2'
+      when: on_success
+    - if: '$CI_COMMIT_MESSAGE =~ /edk2/i' # or last commit description contains 'EDK2'
+      when: on_success
 
 docker-edk2:
- extends: .edk2_job_rules
- stage: containers
- image: docker:19.03.1
- services:
- - docker:19.03.1-dind
- variables:
-  GIT_DEPTH: 3
-  IMAGE_TAG: $CI_REGISTRY_IMAGE:edk2-cross-build
-  # We don't use TLS
-  DOCKER_HOST: tcp://docker:2375
-  DOCKER_TLS_CERTDIR: ""
- before_script:
- - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- script:
- - docker pull $IMAGE_TAG || true
- - docker build --cache-from $IMAGE_TAG --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
-                                        --tag $IMAGE_TAG .gitlab-ci.d/edk2
- - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- - docker push $IMAGE_TAG
+  extends: .edk2_job_rules
+  stage: containers
+  image: docker:19.03.1
+  services:
+    - docker:19.03.1-dind
+  variables:
+    GIT_DEPTH: 3
+    IMAGE_TAG: $CI_REGISTRY_IMAGE:edk2-cross-build
+    # We don't use TLS
+    DOCKER_HOST: tcp://docker:2375
+    DOCKER_TLS_CERTDIR: ""
+  before_script:
+    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
+  script:
+    - docker pull $IMAGE_TAG || true
+    - docker build --cache-from $IMAGE_TAG --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
+                                           --tag $IMAGE_TAG .gitlab-ci.d/edk2
+    - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
+    - docker push $IMAGE_TAG
 
 build-edk2:
- extends: .edk2_job_rules
- stage: build
- needs: ['docker-edk2']
- artifacts:
-   paths: # 'artifacts.zip' will contains the following files:
-   - pc-bios/edk2*bz2
-   - pc-bios/edk2-licenses.txt
-   - edk2-stdout.log
-   - edk2-stderr.log
- image: $CI_REGISTRY_IMAGE:edk2-cross-build
- variables:
-   GIT_DEPTH: 3
- script: # Clone the required submodules and build EDK2
- - git submodule update --init roms/edk2
- - git -C roms/edk2 submodule update --init --
-     ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3
-     BaseTools/Source/C/BrotliCompress/brotli
-     CryptoPkg/Library/OpensslLib/openssl
-     MdeModulePkg/Library/BrotliCustomDecompressLib/brotli
- - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
- - echo "=== Using ${JOBS} simultaneous jobs ==="
- - make -j${JOBS} -C roms efi 2>&1 1>edk2-stdout.log | tee -a edk2-stderr.log >&2
+  extends: .edk2_job_rules
+  stage: build
+  needs: ['docker-edk2']
+  artifacts:
+    paths: # 'artifacts.zip' will contains the following files:
+      - pc-bios/edk2*bz2
+      - pc-bios/edk2-licenses.txt
+      - edk2-stdout.log
+      - edk2-stderr.log
+  image: $CI_REGISTRY_IMAGE:edk2-cross-build
+  variables:
+    GIT_DEPTH: 3
+  script: # Clone the required submodules and build EDK2
+    - git submodule update --init roms/edk2
+    - git -C roms/edk2 submodule update --init --
+       ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3
+       BaseTools/Source/C/BrotliCompress/brotli
+       CryptoPkg/Library/OpensslLib/openssl
+       MdeModulePkg/Library/BrotliCustomDecompressLib/brotli
+    - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
+    - echo "=== Using ${JOBS} simultaneous jobs ==="
+    - make -j${JOBS} -C roms efi 2>&1 1>edk2-stdout.log | tee -a edk2-stderr.log >&2
.gitlab-ci.d/opensbi.yml +55 -55

116 lines not on this page · raw message

Signature · 1 line
2.31.1
#3 lore raw

[PULL 08/14] tests: wait for migration completion before looking for STOP event

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

When moving into the convergance phase, the precopy tests will first look for a STOP event and once found will look for migration completion status. If the test VM is not converging, the test suite will be waiting for the STOP event forever. If we wait for the migration completion status first, then we will trigger the previously added timeout and prevent the test hanging forever.

Message-Id: <[email protected]>

---
 tests/qtest/migration-test.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tests/qtest/migration-test.c +4 -1
index d33e8060f9..ac9e303b1f 100644
@@ -1232,6 +1232,10 @@ static void test_precopy_common(MigrateCommon *args)
 
         migrate_set_parameter_int(from, "downtime-limit", CONVERGE_DOWNTIME);
 
+        /* We do this first, as it has a timeout to stop us
+         * hanging forever if migration didn't converge */
+        wait_for_migration_complete(from);
+
         if (!got_stop) {
             qtest_qmp_eventwait(from, "STOP");
         }
@@ -1239,7 +1243,6 @@ static void test_precopy_common(MigrateCommon *args)
         qtest_qmp_eventwait(to, "RESUME");
 
         wait_for_serial("dest_serial");
-        wait_for_migration_complete(from);
     }
 
     if (args->finish_hook) {
Signature · 1 line
2.31.1
#4 lore raw

[PULL 04/14] gitlab: tweak comments in edk2/opensbi jobs

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

Get rid of comments stating the obvious and re-arrange remaining comments. The opensbi split of rules for file matches is also merged into one rule.

Message-Id: <[email protected]>

---
 .gitlab-ci.d/edk2.yml    | 14 ++++++++------
 .gitlab-ci.d/opensbi.yml | 15 ++++++++-------
 2 files changed, 16 insertions(+), 13 deletions(-)
.gitlab-ci.d/edk2.yml +8 -6
index fbe763a282..905e02440f 100644
@@ -1,17 +1,19 @@
 # All jobs needing docker-edk2 must use the same rules it uses.
 .edk2_job_rules:
-  rules: # Only run this job when ...
+  rules:
+    # Run if any files affecting the build output are touched
     - changes:
-        # this file is modified
         - .gitlab-ci.d/edk2.yml
-        # or the Dockerfile is modified
         - .gitlab-ci.d/edk2/Dockerfile
-        # or roms/edk2/ is modified (submodule updated)
         - roms/edk2/*
       when: on_success
-    - if: '$CI_COMMIT_REF_NAME =~ /^edk2/' # or the branch/tag starts with 'edk2'
+
+    # Run if the branch/tag starts with 'edk2'
+    - if: '$CI_COMMIT_REF_NAME =~ /^edk2/'
       when: on_success
-    - if: '$CI_COMMIT_MESSAGE =~ /edk2/i' # or last commit description contains 'EDK2'
+
+    # Run if last commit msg contains 'EDK2' (case insensitive)
+    - if: '$CI_COMMIT_MESSAGE =~ /edk2/i'
       when: on_success
 
 docker-edk2:
.gitlab-ci.d/opensbi.yml +8 -7
index 0745ccdf10..753a003f93 100644
@@ -1,18 +1,19 @@
 # All jobs needing docker-opensbi must use the same rules it uses.
 .opensbi_job_rules:
-  rules: # Only run this job when ...
+  rules:
+    # Run if any files affecting the build output are touched
     - changes:
-        # this file is modified
         - .gitlab-ci.d/opensbi.yml
-        # or the Dockerfile is modified
         - .gitlab-ci.d/opensbi/Dockerfile
-      when: on_success
-    - changes: # or roms/opensbi/ is modified (submodule updated)
         - roms/opensbi/*
       when: on_success
-    - if: '$CI_COMMIT_REF_NAME =~ /^opensbi/' # or the branch/tag starts with 'opensbi'
+
+    # Run if the branch/tag starts with 'opensbi'
+    - if: '$CI_COMMIT_REF_NAME =~ /^opensbi/'
       when: on_success
-    - if: '$CI_COMMIT_MESSAGE =~ /opensbi/i' # or last commit description contains 'OpenSBI'
+
+    # Run if the last commit msg contains 'OpenSBI' (case insensitive)
+    - if: '$CI_COMMIT_MESSAGE =~ /opensbi/i'
       when: on_success
 
 docker-opensbi:
Signature · 1 line
2.31.1
#5 lore raw

[PULL 05/14] gitlab: honour QEMU_CI variable in edk2/opensbi jobs

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

To preserve contributor CI credits we don't want jobs to run by default unless the QEMU_CI variable is set. For most jobs we can achieve this using the base template, but the edk2/opensbi jobs are a little special as they have some complex conditions we can't easily model in the base template.

We duplicate existing rules and put them under control of QEMU_CI variable, such that QEMU_CI=1 creates manual jobs and QEMU_CI=2 immediately runs jobs.

Message-Id: <[email protected]>

[thuth: Fixed "on_success" <-> "manual" copy-n-paste bug]
---
 .gitlab-ci.d/edk2.yml    | 23 +++++++++++++++++++++++
 .gitlab-ci.d/opensbi.yml | 23 +++++++++++++++++++++++
 2 files changed, 46 insertions(+)
.gitlab-ci.d/edk2.yml +23 -0
index 905e02440f..314e101745 100644
@@ -1,6 +1,29 @@
 # All jobs needing docker-edk2 must use the same rules it uses.
 .edk2_job_rules:
   rules:
+    # Forks don't get pipelines unless QEMU_CI=1 or QEMU_CI=2 is set
+    - if: '$QEMU_CI != "1" && $QEMU_CI != "2" && $CI_PROJECT_NAMESPACE != "qemu-project"'
+      when: never
+
+    # In forks, if QEMU_CI=1 is set, then create manual job
+    # if any of the files affecting the build are touched
+    - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project"'
+      changes:
+        - .gitlab-ci.d/edk2.yml
+        - .gitlab-ci.d/edk2/Dockerfile
+        - roms/edk2/*
+      when: manual
+
+    # In forks, if QEMU_CI=1 is set, then create manual job
+    # if the branch/tag starts with 'edk2'
+    - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project" && $CI_COMMIT_REF_NAME =~ /^edk2/'
+      when: manual
+
+    # In forks, if QEMU_CI=1 is set, then create manual job
+    # if last commit msg contains 'EDK2' (case insensitive)
+    - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project" && $CI_COMMIT_MESSAGE =~ /edk2/i'
+      when: manual
+
     # Run if any files affecting the build output are touched
     - changes:
         - .gitlab-ci.d/edk2.yml
.gitlab-ci.d/opensbi.yml +23 -0
index 753a003f93..04ed5a3ea1 100644
@@ -1,6 +1,29 @@
 # All jobs needing docker-opensbi must use the same rules it uses.
 .opensbi_job_rules:
   rules:
+    # Forks don't get pipelines unless QEMU_CI=1 or QEMU_CI=2 is set
+    - if: '$QEMU_CI != "1" && $QEMU_CI != "2" && $CI_PROJECT_NAMESPACE != "qemu-project"'
+      when: never
+
+    # In forks, if QEMU_CI=1 is set, then create manual job
+    # if any files affecting the build output are touched
+    - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project"'
+      changes:
+        - .gitlab-ci.d/opensbi.yml
+        - .gitlab-ci.d/opensbi/Dockerfile
+        - roms/opensbi/*
+      when: manual
+
+    # In forks, if QEMU_CI=1 is set, then create manual job
+    # if the branch/tag starts with 'opensbi'
+    - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project" && $CI_COMMIT_REF_NAME =~ /^opensbi/'
+      when: manual
+
+    # In forks, if QEMU_CI=1 is set, then create manual job
+    # if the last commit msg contains 'OpenSBI' (case insensitive)
+    - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project" && $CI_COMMIT_MESSAGE =~ /opensbi/i'
+      when: manual
+
     # Run if any files affecting the build output are touched
     - changes:
         - .gitlab-ci.d/opensbi.yml
Signature · 1 line
2.31.1
#6 lore raw

[PULL 10/14] tests: use consistent bandwidth/downtime limits in migration tests

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

The different migration test cases are using a variety of settings to ensure convergance/non-convergance. Introduce two helpers to extra the common functionality and ensure consistency.

* Non-convergance: 1ms downtime, 30mbs bandwidth
* Convergance: 30s downtime, 1gbs bandwidth

Message-Id: <[email protected]>

---
 tests/qtest/migration-test.c | 54 +++++++++++++-----------------------
 1 file changed, 20 insertions(+), 34 deletions(-)
tests/qtest/migration-test.c +20 -34
index a54eff6d56..9e64125f02 100644
@@ -46,9 +46,6 @@ unsigned start_address;
 unsigned end_address;
 static bool uffd_feature_thread_id;
 
-/* A downtime where the test really should converge */
-#define CONVERGE_DOWNTIME (1000 * 30)
-
 #if defined(__linux__)
 #include <sys/syscall.h>
 #include <sys/vfs.h>
@@ -402,6 +399,20 @@ static void migrate_set_parameter_str(QTestState *who, const char *parameter,
     migrate_check_parameter_str(who, parameter, value);
 }
 
+static void migrate_ensure_non_converge(QTestState *who)
+{
+    /* Can't converge with 1ms downtime + 30 mbs bandwidth limit */
+    migrate_set_parameter_int(who, "max-bandwidth", 30 * 1000 * 1000);
+    migrate_set_parameter_int(who, "downtime-limit", 1);
+}
+
+static void migrate_ensure_converge(QTestState *who)
+{
+    /* Should converge with 30s downtime + 1 gbs bandwidth limit */
+    migrate_set_parameter_int(who, "max-bandwidth", 1 * 1000 * 1000 * 1000);
+    migrate_set_parameter_int(who, "downtime-limit", 30 * 1000);
+}
+
 static void migrate_pause(QTestState *who)
 {
     QDict *rsp;
@@ -984,12 +995,7 @@ static int migrate_postcopy_prepare(QTestState **from_ptr,
     migrate_set_capability(to, "postcopy-ram", true);
     migrate_set_capability(to, "postcopy-blocktime", true);
 
-    /* We want to pick a speed slow enough that the test completes
-     * quickly, but that it doesn't complete precopy even on a slow
-     * machine, so also set the downtime.
-     */
-    migrate_set_parameter_int(from, "max-bandwidth", 30000000);
-    migrate_set_parameter_int(from, "downtime-limit", 1);
+    migrate_ensure_non_converge(from);
 
     /* Wait for the first serial output from the source */
     wait_for_serial("src_serial");
@@ -1188,15 +1194,7 @@ static void test_precopy_common(MigrateCommon *args)
         return;
     }
 
-    /*
-     * We want to pick a speed slow enough that the test completes
-     * quickly, but that it doesn't complete precopy even on a slow
-     * machine, so also set the downtime.
-     */
-    /* 1 ms should make it not converge*/
-    migrate_set_parameter_int(from, "downtime-limit", 1);
-    /* 1GB/s */
-    migrate_set_parameter_int(from, "max-bandwidth", 1000000000);
+    migrate_ensure_non_converge(from);
 
     if (args->start_hook) {
         data_hook = args->start_hook(from, to);
@@ -1230,7 +1228,7 @@ static void test_precopy_common(MigrateCommon *args)
             wait_for_migration_pass(from);
         }
 
-        migrate_set_parameter_int(from, "downtime-limit", CONVERGE_DOWNTIME);
+        migrate_ensure_converge(from);
 
         /* We do this first, as it has a timeout to stop us
          * hanging forever if migration didn't converge */
@@ -1694,8 +1692,7 @@ static void test_migrate_auto_converge(void)
      * Set the initial parameters so that the migration could not converge
      * without throttling.
      */
-    migrate_set_parameter_int(from, "downtime-limit", 1);
-    migrate_set_parameter_int(from, "max-bandwidth", 100000000); /* ~100Mb/s */
+    migrate_ensure_non_converge(from);
 
     /* To check remaining size after precopy */
     migrate_set_capability(from, "pause-before-switchover", true);
@@ -2000,15 +1997,7 @@ static void test_multifd_tcp_cancel(void)
         return;
     }
 
-    /*
-     * We want to pick a speed slow enough that the test completes
-     * quickly, but that it doesn't complete precopy even on a slow
-     * machine, so also set the downtime.
-     */
-    /* 1 ms should make it not converge*/
-    migrate_set_parameter_int(from, "downtime-limit", 1);
-    /* 300MB/s */
-    migrate_set_parameter_int(from, "max-bandwidth", 30000000);
+    migrate_ensure_non_converge(from);
 
     migrate_set_parameter_int(from, "multifd-channels", 16);
     migrate_set_parameter_int(to, "multifd-channels", 16);
@@ -2054,10 +2043,7 @@ static void test_multifd_tcp_cancel(void)
 
     wait_for_migration_status(from, "cancelled", NULL);
 
-    /* 300ms it should converge */
-    migrate_set_parameter_int(from, "downtime-limit", 300);
-    /* 1GB/s */
-    migrate_set_parameter_int(from, "max-bandwidth", 1000000000);
+    migrate_ensure_converge(from);
 
     migrate_qmp(from, uri, "{}");
 
Signature · 1 line
2.31.1
#7 lore raw

[PULL 06/14] gitlab-ci: Extend timeout for ubuntu-20.04-s390x-all to 75m

In reply to Thomas Huth

From: Richard Henderson <[email protected]>

Recent runs have been taking just over the 60m default.

Message-Id: <[email protected]>

---
 .gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml | 1 +
 1 file changed, 1 insertion(+)
.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml +1 -0
index 4f292a8a5b..9f1fe9e7dc 100644
@@ -31,6 +31,7 @@ ubuntu-20.04-s390x-all:
  - s390x
  variables:
     DFLTCC: 0
+ timeout: 75m
  rules:
  - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH =~ /^staging/'
  - if: "$S390X_RUNNER_AVAILABLE"
Signature · 1 line
2.31.1
#8 lore raw

[PULL 01/14] tests: fix test-cutils leaks

In reply to Thomas Huth

From: Marc-André Lureau <[email protected]>

Reported by ASAN.

Fixes commit cfb34489 ("cutils: add functions for IEC and SI prefixes").

Message-Id: <[email protected]>

---
 tests/unit/test-cutils.c | 42 ++++++++++++++++++++++++++++++++--------
 1 file changed, 34 insertions(+), 8 deletions(-)
tests/unit/test-cutils.c +34 -8
index f5b780f012..86caddcf64 100644
@@ -2452,18 +2452,44 @@ static void test_qemu_strtosz_metric(void)
 
 static void test_freq_to_str(void)
 {
-    g_assert_cmpstr(freq_to_str(999), ==, "999 Hz");
-    g_assert_cmpstr(freq_to_str(1000), ==, "1 KHz");
-    g_assert_cmpstr(freq_to_str(1010), ==, "1.01 KHz");
+    char *str;
+
+    str = freq_to_str(999);
+    g_assert_cmpstr(str, ==, "999 Hz");
+    g_free(str);
+
+    str = freq_to_str(1000);
+    g_assert_cmpstr(str, ==, "1 KHz");
+    g_free(str);
+
+    str = freq_to_str(1010);
+    g_assert_cmpstr(str, ==, "1.01 KHz");
+    g_free(str);
 }
 
 static void test_size_to_str(void)
 {
-    g_assert_cmpstr(size_to_str(0), ==, "0 B");
-    g_assert_cmpstr(size_to_str(1), ==, "1 B");
-    g_assert_cmpstr(size_to_str(1016), ==, "0.992 KiB");
-    g_assert_cmpstr(size_to_str(1024), ==, "1 KiB");
-    g_assert_cmpstr(size_to_str(512ull << 20), ==, "512 MiB");
+    char *str;
+
+    str = size_to_str(0);
+    g_assert_cmpstr(str, ==, "0 B");
+    g_free(str);
+
+    str = size_to_str(1);
+    g_assert_cmpstr(str, ==, "1 B");
+    g_free(str);
+
+    str = size_to_str(1016);
+    g_assert_cmpstr(str, ==, "0.992 KiB");
+    g_free(str);
+
+    str = size_to_str(1024);
+    g_assert_cmpstr(str, ==, "1 KiB");
+    g_free(str);
+
+    str = size_to_str(512ull << 20);
+    g_assert_cmpstr(str, ==, "512 MiB");
+    g_free(str);
 }
 
 static void test_iec_binary_prefix(void)
Signature · 1 line
2.31.1
#9 lore raw

[PULL 07/14] tests: wait max 120 seconds for migration test status changes

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

Currently the wait_for_migration_fail and wait_for_migration_complete functions will spin in an infinite loop checking query-migrate status to detect a specific change/goal. This is fine when everything goes to plan, but when the unusual happens, these will hang the test suite forever.

Any normally executing migration test case normally takes < 1 second for a state change, with exception of the autoconverge test which takes about 5 seconds. Taking into account possibility of people running tests inside TCG, allowing a factor of x20 slowdown gives a reasonable worst case of 120 seconds. Anything taking longer than this is a strong sign that the test has hung, or the test should be rewritten to be faster.

Message-Id: <[email protected]>

---
 tests/qtest/migration-helpers.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
tests/qtest/migration-helpers.c +14 -0
index a6aa59e4e6..e81e831c85 100644
@@ -15,6 +15,14 @@
 
 #include "migration-helpers.h"
 
+/*
+ * Number of seconds we wait when looking for migration
+ * status changes, to avoid test suite hanging forever
+ * when things go wrong. Needs to be higher enough to
+ * avoid false positives on loaded hosts.
+ */
+#define MIGRATION_STATUS_WAIT_TIMEOUT 120
+
 bool got_stop;
 
 static void check_stop_event(QTestState *who)
@@ -166,8 +174,11 @@ static bool check_migration_status(QTestState *who, const char *goal,
 void wait_for_migration_status(QTestState *who,
                                const char *goal, const char **ungoals)
 {
+    g_test_timer_start();
     while (!check_migration_status(who, goal, ungoals)) {
         usleep(1000);
+
+        g_assert(g_test_timer_elapsed() < MIGRATION_STATUS_WAIT_TIMEOUT);
     }
 }
 
@@ -178,6 +189,7 @@ void wait_for_migration_complete(QTestState *who)
 
 void wait_for_migration_fail(QTestState *from, bool allow_active)
 {
+    g_test_timer_start();
     QDict *rsp_return;
     char *status;
     bool failed;
@@ -193,6 +205,8 @@ void wait_for_migration_fail(QTestState *from, bool allow_active)
         g_assert(result);
         failed = !strcmp(status, "failed");
         g_free(status);
+
+        g_assert(g_test_timer_elapsed() < MIGRATION_STATUS_WAIT_TIMEOUT);
     } while (!failed);
 
     /* Is the machine currently running? */
Signature · 1 line
2.31.1
#10 lore raw

[PULL 12/14] po: add ukrainian translation

In reply to Thomas Huth

From: Andrij Mizyk <[email protected]>

Message-Id: <[email protected]>

---
 po/LINGUAS |  1 +
 po/uk.po   | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
 create mode 100644 po/uk.po
po/LINGUAS +1 -0
index cc4b5c3b36..9b33a3659f 100644
@@ -5,4 +5,5 @@ hu
 it
 sv
 tr
+uk
 zh_CN
po/uk.po new file +75 -0

75 lines not on this page · raw message

Signature · 1 line
2.31.1
#11 lore raw

[PULL 14/14] include/qemu/host-utils: Remove unused code in the *_overflow wrappers

In reply to Thomas Huth

According to commit cec07c0b612975 the code in the #else paths was required for GCC < 5.0 and Clang < 3.8. We don't support such old compilers at all anymore, so we can remove these lines now. We keep the wrapper function, though, since they are easier to read and help to make sure that the parameters have the right types.

Message-Id: <[email protected]>

---
 include/qemu/host-utils.h | 65 ---------------------------------------
 1 file changed, 65 deletions(-)
include/qemu/host-utils.h +0 -65
index bc743f5e32..29f3a99878 100644
@@ -376,12 +376,7 @@ static inline uint64_t uabs64(int64_t v)
  */
 static inline bool sadd32_overflow(int32_t x, int32_t y, int32_t *ret)
 {
-#if __has_builtin(__builtin_add_overflow) || __GNUC__ >= 5
     return __builtin_add_overflow(x, y, ret);
-#else
-    *ret = x + y;
-    return ((*ret ^ x) & ~(x ^ y)) < 0;
-#endif
 }
 
 /**
@@ -394,12 +389,7 @@ static inline bool sadd32_overflow(int32_t x, int32_t y, int32_t *ret)
  */
 static inline bool sadd64_overflow(int64_t x, int64_t y, int64_t *ret)
 {
-#if __has_builtin(__builtin_add_overflow) || __GNUC__ >= 5
     return __builtin_add_overflow(x, y, ret);
-#else
-    *ret = x + y;
-    return ((*ret ^ x) & ~(x ^ y)) < 0;
-#endif
 }
 
 /**
@@ -412,12 +402,7 @@ static inline bool sadd64_overflow(int64_t x, int64_t y, int64_t *ret)
  */
 static inline bool uadd32_overflow(uint32_t x, uint32_t y, uint32_t *ret)
 {
-#if __has_builtin(__builtin_add_overflow) || __GNUC__ >= 5
     return __builtin_add_overflow(x, y, ret);
-#else
-    *ret = x + y;
-    return *ret < x;
-#endif
 }
 
 /**
@@ -430,12 +415,7 @@ static inline bool uadd32_overflow(uint32_t x, uint32_t y, uint32_t *ret)
  */
 static inline bool uadd64_overflow(uint64_t x, uint64_t y, uint64_t *ret)
 {
-#if __has_builtin(__builtin_add_overflow) || __GNUC__ >= 5
     return __builtin_add_overflow(x, y, ret);
-#else
-    *ret = x + y;
-    return *ret < x;
-#endif
 }
 
 /**
@@ -449,12 +429,7 @@ static inline bool uadd64_overflow(uint64_t x, uint64_t y, uint64_t *ret)
  */
 static inline bool ssub32_overflow(int32_t x, int32_t y, int32_t *ret)
 {
-#if __has_builtin(__builtin_sub_overflow) || __GNUC__ >= 5
     return __builtin_sub_overflow(x, y, ret);
-#else
-    *ret = x - y;
-    return ((*ret ^ x) & (x ^ y)) < 0;
-#endif
 }
 
 /**
@@ -468,12 +443,7 @@ static inline bool ssub32_overflow(int32_t x, int32_t y, int32_t *ret)
  */
 static inline bool ssub64_overflow(int64_t x, int64_t y, int64_t *ret)
 {
-#if __has_builtin(__builtin_sub_overflow) || __GNUC__ >= 5
     return __builtin_sub_overflow(x, y, ret);
-#else
-    *ret = x - y;
-    return ((*ret ^ x) & (x ^ y)) < 0;
-#endif
 }
 
 /**
@@ -487,12 +457,7 @@ static inline bool ssub64_overflow(int64_t x, int64_t y, int64_t *ret)
  */
 static inline bool usub32_overflow(uint32_t x, uint32_t y, uint32_t *ret)
 {
-#if __has_builtin(__builtin_sub_overflow) || __GNUC__ >= 5
     return __builtin_sub_overflow(x, y, ret);
-#else
-    *ret = x - y;
-    return x < y;
-#endif
 }
 
 /**
@@ -506,12 +471,7 @@ static inline bool usub32_overflow(uint32_t x, uint32_t y, uint32_t *ret)
  */
 static inline bool usub64_overflow(uint64_t x, uint64_t y, uint64_t *ret)
 {
-#if __has_builtin(__builtin_sub_overflow) || __GNUC__ >= 5
     return __builtin_sub_overflow(x, y, ret);
-#else
-    *ret = x - y;
-    return x < y;
-#endif
 }
 
 /**
@@ -524,13 +484,7 @@ static inline bool usub64_overflow(uint64_t x, uint64_t y, uint64_t *ret)
  */
 static inline bool smul32_overflow(int32_t x, int32_t y, int32_t *ret)
 {
-#if __has_builtin(__builtin_mul_overflow) || __GNUC__ >= 5
     return __builtin_mul_overflow(x, y, ret);
-#else
-    int64_t z = (int64_t)x * y;
-    *ret = z;
-    return *ret != z;
-#endif
 }
 
 /**
@@ -543,14 +497,7 @@ static inline bool smul32_overflow(int32_t x, int32_t y, int32_t *ret)
  */
 static inline bool smul64_overflow(int64_t x, int64_t y, int64_t *ret)
 {
-#if __has_builtin(__builtin_mul_overflow) || __GNUC__ >= 5
     return __builtin_mul_overflow(x, y, ret);
-#else
-    uint64_t hi, lo;
-    muls64(&lo, &hi, x, y);
-    *ret = lo;
-    return hi != ((int64_t)lo >> 63);
-#endif
 }
 
 /**
@@ -563,13 +510,7 @@ static inline bool smul64_overflow(int64_t x, int64_t y, int64_t *ret)
  */
 static inline bool umul32_overflow(uint32_t x, uint32_t y, uint32_t *ret)
 {
-#if __has_builtin(__builtin_mul_overflow) || __GNUC__ >= 5
     return __builtin_mul_overflow(x, y, ret);
-#else
-    uint64_t z = (uint64_t)x * y;
-    *ret = z;
-    return z > UINT32_MAX;
-#endif
 }
 
 /**
@@ -582,13 +523,7 @@ static inline bool umul32_overflow(uint32_t x, uint32_t y, uint32_t *ret)
  */
 static inline bool umul64_overflow(uint64_t x, uint64_t y, uint64_t *ret)
 {
-#if __has_builtin(__builtin_mul_overflow) || __GNUC__ >= 5
     return __builtin_mul_overflow(x, y, ret);
-#else
-    uint64_t hi;
-    mulu64(ret, &hi, x, y);
-    return hi != 0;
-#endif
 }
 
 /*
Signature · 1 line
2.31.1
#12 lore raw

[PULL 09/14] tests: increase migration test converge downtime to 30 seconds

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

While 1 second might be enough to converge migration on a fast host, this is not guaranteed, especially if using TLS in the tests without hardware accelerated crypto available.

Increasing the downtime to 30 seconds should guarantee it can converge in any sane scenario.

Message-Id: <[email protected]>

---
 tests/qtest/migration-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/migration-test.c +1 -1
index ac9e303b1f..a54eff6d56 100644
@@ -47,7 +47,7 @@ unsigned end_address;
 static bool uffd_feature_thread_id;
 
 /* A downtime where the test really should converge */
-#define CONVERGE_DOWNTIME 1000
+#define CONVERGE_DOWNTIME (1000 * 30)
 
 #if defined(__linux__)
 #include <sys/syscall.h>
Signature · 1 line
2.31.1
#13 lore raw

[PULL 11/14] disas: Remove libvixl disassembler

In reply to Thomas Huth

The disassembly via capstone should be superiour to our old vixl sources nowadays, so let's finally cut this old disassembler out of the QEMU source tree.

Message-Id: <[email protected]>

---
 meson.build                                |    4 -
 disas/libvixl/vixl/a64/assembler-a64.h     | 4624 --------------------
 disas/libvixl/vixl/a64/constants-a64.h     | 2116 ---------
 disas/libvixl/vixl/a64/cpu-a64.h           |   83 -
 disas/libvixl/vixl/a64/decoder-a64.h       |  275 --
 disas/libvixl/vixl/a64/disasm-a64.h        |  177 -
 disas/libvixl/vixl/a64/instructions-a64.h  |  757 ----
 disas/libvixl/vixl/code-buffer.h           |  113 -
 disas/libvixl/vixl/compiler-intrinsics.h   |  155 -
 disas/libvixl/vixl/globals.h               |  155 -
 disas/libvixl/vixl/invalset.h              |  775 ----
 disas/libvixl/vixl/platform.h              |   39 -
 disas/libvixl/vixl/utils.h                 |  286 --
 include/exec/poison.h                      |    2 -
 disas.c                                    |    3 -
 target/arm/cpu.c                           |    7 -
 MAINTAINERS                                |    4 -
 disas/arm-a64.cc                           |  101 -
 disas/libvixl/LICENCE                      |   30 -
 disas/libvixl/README                       |   11 -
 disas/libvixl/meson.build                  |    7 -
 disas/libvixl/vixl/a64/decoder-a64.cc      |  877 ----
 disas/libvixl/vixl/a64/disasm-a64.cc       | 3495 ---------------
 disas/libvixl/vixl/a64/instructions-a64.cc |  622 ---
 disas/libvixl/vixl/compiler-intrinsics.cc  |  144 -
 disas/libvixl/vixl/utils.cc                |  142 -
 disas/meson.build                          |    5 -
 scripts/clean-header-guards.pl             |    4 +-
 scripts/clean-includes                     |    2 +-
 scripts/coverity-scan/COMPONENTS.md        |    3 -
 30 files changed, 3 insertions(+), 15015 deletions(-)
 delete mode 100644 disas/libvixl/vixl/a64/assembler-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/constants-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/cpu-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/decoder-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/disasm-a64.h
 delete mode 100644 disas/libvixl/vixl/a64/instructions-a64.h
 delete mode 100644 disas/libvixl/vixl/code-buffer.h
 delete mode 100644 disas/libvixl/vixl/compiler-intrinsics.h
 delete mode 100644 disas/libvixl/vixl/globals.h
 delete mode 100644 disas/libvixl/vixl/invalset.h
 delete mode 100644 disas/libvixl/vixl/platform.h
 delete mode 100644 disas/libvixl/vixl/utils.h
 delete mode 100644 disas/arm-a64.cc
 delete mode 100644 disas/libvixl/LICENCE
 delete mode 100644 disas/libvixl/README
 delete mode 100644 disas/libvixl/meson.build
 delete mode 100644 disas/libvixl/vixl/a64/decoder-a64.cc
 delete mode 100644 disas/libvixl/vixl/a64/disasm-a64.cc
 delete mode 100644 disas/libvixl/vixl/a64/instructions-a64.cc
 delete mode 100644 disas/libvixl/vixl/compiler-intrinsics.cc
 delete mode 100644 disas/libvixl/vixl/utils.cc
meson.build +0 -4
index 65a885ea69..f34ae9a5f8 100644
@@ -250,7 +250,6 @@ endif
 add_project_arguments('-iquote', '.',
                       '-iquote', meson.current_source_dir(),
                       '-iquote', meson.current_source_dir() / 'include',
-                      '-iquote', meson.current_source_dir() / 'disas/libvixl',
                       language: ['c', 'cpp', 'objc'])
 
 link_language = meson.get_external_property('link_language', 'cpp')
@@ -2372,7 +2371,6 @@ config_target_mak = {}
 
 disassemblers = {
   'alpha' : ['CONFIG_ALPHA_DIS'],
-  'arm' : ['CONFIG_ARM_DIS'],
   'avr' : ['CONFIG_AVR_DIS'],
   'cris' : ['CONFIG_CRIS_DIS'],
   'hexagon' : ['CONFIG_HEXAGON_DIS'],
@@ -2395,8 +2393,6 @@ disassemblers = {
 }
 if link_language == 'cpp'
   disassemblers += {
-    'aarch64' : [ 'CONFIG_ARM_A64_DIS'],
-    'arm' : [ 'CONFIG_ARM_DIS', 'CONFIG_ARM_A64_DIS'],
     'mips' : [ 'CONFIG_MIPS_DIS', 'CONFIG_NANOMIPS_DIS'],
   }
 endif
disas/libvixl/vixl/a64/assembler-a64.h deleted +0 -4624

2,978 lines not on this page · raw message

disas/libvixl/vixl/a64/constants-a64.h deleted +0 -2116

2,116 lines not on this page · raw message

disas/libvixl/vixl/a64/cpu-a64.h deleted +0 -83

83 lines not on this page · raw message

disas/libvixl/vixl/a64/decoder-a64.h deleted +0 -275

275 lines not on this page · raw message

disas/libvixl/vixl/a64/disasm-a64.h deleted +0 -177

177 lines not on this page · raw message

disas/libvixl/vixl/a64/instructions-a64.h deleted +0 -757

757 lines not on this page · raw message

disas/libvixl/vixl/code-buffer.h deleted +0 -113

113 lines not on this page · raw message

disas/libvixl/vixl/compiler-intrinsics.h deleted +0 -155

155 lines not on this page · raw message

disas/libvixl/vixl/globals.h deleted +0 -155

155 lines not on this page · raw message

disas/libvixl/vixl/invalset.h deleted +0 -775

775 lines not on this page · raw message

disas/libvixl/vixl/platform.h deleted +0 -39
deleted file mode 100644
index 26a74de81b..0000000000

Lines of this file are not shown. View the raw message.

disas/libvixl/vixl/utils.h deleted +0 -286

286 lines not on this page · raw message

include/exec/poison.h +0 -2
index bbb82cf9ec..f0959bc84e 100644

Lines of this file are not shown. View the raw message.

disas.c +0 -3
index b2753e1902..e31438f349 100644

Lines of this file are not shown. View the raw message.

target/arm/cpu.c +0 -7
index bb44ad45aa..ae6dca2f01 100644

Lines of this file are not shown. View the raw message.

MAINTAINERS +0 -4
index d9378511b7..450abd0252 100644

Lines of this file are not shown. View the raw message.

disas/arm-a64.cc deleted +0 -101

101 lines not on this page · raw message

disas/libvixl/LICENCE deleted +0 -30
deleted file mode 100644
index b7e160a3f5..0000000000

Lines of this file are not shown. View the raw message.

disas/libvixl/README deleted +0 -11
deleted file mode 100644
index 932a41adf7..0000000000

Lines of this file are not shown. View the raw message.

disas/libvixl/meson.build deleted +0 -7
deleted file mode 100644
index 5e2eb33e8e..0000000000

Lines of this file are not shown. View the raw message.

disas/libvixl/vixl/a64/decoder-a64.cc deleted +0 -877

877 lines not on this page · raw message

disas/libvixl/vixl/a64/disasm-a64.cc deleted +0 -3495

3,495 lines not on this page · raw message

disas/libvixl/vixl/a64/instructions-a64.cc deleted +0 -622

622 lines not on this page · raw message

disas/libvixl/vixl/compiler-intrinsics.cc deleted +0 -144

144 lines not on this page · raw message

disas/libvixl/vixl/utils.cc deleted +0 -142

142 lines not on this page · raw message

disas/meson.build +0 -5
index 7da48ea74a..ba22f7cbcd 100644

Lines of this file are not shown. View the raw message.

scripts/clean-header-guards.pl +2 -2
index a6680253b1..a7fd8dc99f 100755

Lines of this file are not shown. View the raw message.

scripts/clean-includes +1 -1
index aaa7d4ceb3..d37bd4f692 100755

Lines of this file are not shown. View the raw message.

scripts/coverity-scan/COMPONENTS.md +0 -3
index 183f26a32c..de2eb96241 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.31.1

Part of the diff is not shown here. View the raw message.

#14 lore raw

[PULL 13/14] meson.build: Require a recent version of libpng

In reply to Thomas Huth

According to https://gitlab.com/qemu-project/qemu/-/issues/1080#note_998088246
QEMU does not compile with older versions of libpng, so we should check for a good version in meson.build. According to repology.org, our supported host target operating systems ship these versions:

             Fedora 35: 1.6.37
     CentOS 8 (RHEL-8): 1.6.34
             Debian 11: 1.6.37
    OpenSUSE Leap 15.3: 1.6.34
      Ubuntu LTS 20.04: 1.6.37
         FreeBSD Ports: 1.6.37
         NetBSD pkgsrc: 1.6.37
         OpenBSD Ports: 1.6.37
              Homebrew: 1.6.37
           MSYS2 mingw: 1.6.37

So it seem reasonable to require at least libpng version 1.6.34 for our builds.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1080
Message-Id: <[email protected]>

---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
index f34ae9a5f8..bc5569ace1 100644
@@ -1209,7 +1209,7 @@ if gtkx11.found()
 endif
 png = not_found
 if get_option('png').allowed() and have_system
-   png = dependency('libpng', required: get_option('png'),
+   png = dependency('libpng', version: '>=1.6.34', required: get_option('png'),
                     method: 'pkg-config', kwargs: static_kwargs)
 endif
 vnc = not_found
Signature · 1 line
2.31.1
#15 lore raw
In reply to Thomas Huth
Quoted 14 lines · Thomas Huth

Hi Richard!

The following changes since commit dfe2382f0641f537fdd33399d579215077c8f68c:

   Merge tag 'kraxel-20220704-pull-request' of https://gitlab.com/kraxel/qemu into staging (2022-07-04 14:57:21 +0530)

are available in the Git repository at:

   https://gitlab.com/thuth/qemu.git tags/pull-request-2022-07-05

for you to fetch changes up to 7a890b756620223f35f8056baddf0406526ae025:

   include/qemu/host-utils: Remove unused code in the *_overflow wrappers (2022-07-05 10:15:49 +0200)
Quoted 7 lines

----------------------------------------------------------------
* Fix memory leak in test-cutils
* Fix edk2/opensbi jobs to not run automatically by accident
* Improve timings in the migration qtest
* Remove libvixl disassembler
* Add ukrainian translation
* Require a recent version of libpng

Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.

r~

Quoted 93 lines

----------------------------------------------------------------

Andrij Mizyk (1):
po: add ukrainian translation

Daniel P. Berrangé (7):
gitlab: normalize indentation in edk2/opensbi rules
gitlab: tweak comments in edk2/opensbi jobs
gitlab: honour QEMU_CI variable in edk2/opensbi jobs
tests: wait max 120 seconds for migration test status changes
tests: wait for migration completion before looking for STOP event
tests: increase migration test converge downtime to 30 seconds
tests: use consistent bandwidth/downtime limits in migration tests

Marc-André Lureau (1):
tests: fix test-cutils leaks

Philippe Mathieu-Daudé (1):
tests/fp: Do not build softfloat3 tests if TCG is disabled

Richard Henderson (1):

   gitlab-ci: Extend timeout for ubuntu-20.04-s390x-all to 75m

Thomas Huth (3):
disas: Remove libvixl disassembler
meson.build: Require a recent version of libpng include/qemu/host-utils: Remove unused code in the *_overflow wrappers

  meson.build                                   |    6 +-
  disas/libvixl/vixl/a64/assembler-a64.h        | 4624 -----------------
  disas/libvixl/vixl/a64/constants-a64.h        | 2116 --------
  disas/libvixl/vixl/a64/cpu-a64.h              |   83 -
  disas/libvixl/vixl/a64/decoder-a64.h          |  275 -
  disas/libvixl/vixl/a64/disasm-a64.h           |  177 -
  disas/libvixl/vixl/a64/instructions-a64.h     |  757 ---
  disas/libvixl/vixl/code-buffer.h              |  113 -
  disas/libvixl/vixl/compiler-intrinsics.h      |  155 -
  disas/libvixl/vixl/globals.h                  |  155 -
  disas/libvixl/vixl/invalset.h                 |  775 ---
  disas/libvixl/vixl/platform.h                 |   39 -
  disas/libvixl/vixl/utils.h                    |  286 -
  include/exec/poison.h                         |    2 -
  include/qemu/host-utils.h                     |   65 -
  disas.c                                       |    3 -
  target/arm/cpu.c                              |    7 -
  tests/qtest/migration-helpers.c               |   14 +
  tests/qtest/migration-test.c                  |   59 +-
  tests/unit/test-cutils.c                      |   42 +-
  .../custom-runners/ubuntu-20.04-s390x.yml     |    1 +
  .gitlab-ci.d/edk2.yml                         |  133 +-
  .gitlab-ci.d/opensbi.yml                      |  134 +-
  MAINTAINERS                                   |    4 -
  disas/arm-a64.cc                              |  101 -
  disas/libvixl/LICENCE                         |   30 -
  disas/libvixl/README                          |   11 -
  disas/libvixl/meson.build                     |    7 -
  disas/libvixl/vixl/a64/decoder-a64.cc         |  877 ----
  disas/libvixl/vixl/a64/disasm-a64.cc          | 3495 -------------
  disas/libvixl/vixl/a64/instructions-a64.cc    |  622 ---
  disas/libvixl/vixl/compiler-intrinsics.cc     |  144 -
  disas/libvixl/vixl/utils.cc                   |  142 -
  disas/meson.build                             |    5 -
  po/LINGUAS                                    |    1 +
  po/uk.po                                      |   75 +
  scripts/clean-header-guards.pl                |    4 +-
  scripts/clean-includes                        |    2 +-
  scripts/coverity-scan/COMPONENTS.md           |    3 -
  tests/fp/meson.build                          |    3 +
  40 files changed, 314 insertions(+), 15233 deletions(-)

delete mode 100644 disas/libvixl/vixl/a64/assembler-a64.h delete mode 100644 disas/libvixl/vixl/a64/constants-a64.h delete mode 100644 disas/libvixl/vixl/a64/cpu-a64.h delete mode 100644 disas/libvixl/vixl/a64/decoder-a64.h delete mode 100644 disas/libvixl/vixl/a64/disasm-a64.h delete mode 100644 disas/libvixl/vixl/a64/instructions-a64.h delete mode 100644 disas/libvixl/vixl/code-buffer.h delete mode 100644 disas/libvixl/vixl/compiler-intrinsics.h delete mode 100644 disas/libvixl/vixl/globals.h delete mode 100644 disas/libvixl/vixl/invalset.h delete mode 100644 disas/libvixl/vixl/platform.h delete mode 100644 disas/libvixl/vixl/utils.h delete mode 100644 disas/arm-a64.cc
delete mode 100644 disas/libvixl/LICENCE
delete mode 100644 disas/libvixl/README
delete mode 100644 disas/libvixl/meson.build
delete mode 100644 disas/libvixl/vixl/a64/decoder-a64.cc delete mode 100644 disas/libvixl/vixl/a64/disasm-a64.cc delete mode 100644 disas/libvixl/vixl/a64/instructions-a64.cc delete mode 100644 disas/libvixl/vixl/compiler-intrinsics.cc delete mode 100644 disas/libvixl/vixl/utils.cc create mode 100644 po/uk.po