Skip to content
Snippets Groups Projects
  1. Jun 07, 2023
  2. Jun 06, 2023
    • Paolo Bonzini's avatar
      meson: subprojects: replace berkeley-{soft,test}float-3 with wraps · d2dfe0b5
      Paolo Bonzini authored
      
      Unlike other subprojects, these require an overlay directory to include
      meson rules to build the libraries.  The rules are basically lifted
      from tests/fp/meson.build, with a few changes to create platform.h
      and publish a dependency.
      
      The build defines are passed through a subproject option, and posted
      back to users of the library via the dependency's compile_args.
      
      The only remaining user of GIT_SUBMODULES and GIT_SUBMODULES_ACTION
      is roms/SLOF, which is used to build pc-bios/s390-ccw.  All other
      roms submodules are only present to satisfy the license on pre-built
      firmware blobs.
      
      Best reviewed with --color-moved.
      
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      d2dfe0b5
  3. Mar 01, 2023
  4. Jan 11, 2023
    • Daniel P. Berrangé's avatar
      enforce use of G_GNUC_PRINTF attributes · 88a0ef00
      Daniel P. Berrangé authored
      
      We've been very gradually adding G_GNUC_PRINTF annotations
      to functions over years. This has been useful in detecting
      certain malformed printf strings, or cases where we pass
      user data as the printf format which is a potential security
      flaw.
      
      Given the inherant memory corruption danger in use of format
      strings vs mis-matched variadic arguments, it is worth applying
      G_GNUC_PRINTF to all functions using printf, even if we know
      they are safe.
      
      The compilers can reasonably reliably identify such places
      with the -Wsuggest-attribute=format / -Wmissing-format-attribute
      flags.
      
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20221219130205.687815-7-berrange@redhat.com>
      [-Wsuggest-attribute=format and -Wmissing-format-attribute are
       synonyms, only include one; disable it for testfloat. - Paolo]
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      88a0ef00
  5. Sep 01, 2022
  6. Jul 05, 2022
  7. Apr 21, 2022
  8. Apr 06, 2022
  9. Mar 15, 2022
  10. Dec 23, 2021
    • Paolo Bonzini's avatar
      build: use "meson test" as the test harness · 3d2f73ef
      Paolo Bonzini authored
      
      "meson test" starting with version 0.57 is just as capable and easy to
      use as QEMU's own TAP driver.  All existing options for "make check"
      work.  The only required code change involves how to mark "slow" tests;
      they need to belong to an additional "slow" suite.
      
      The rules for .tap output are replaced by JUnit XML; GitLab is able
      to parse that output and present it in the CI pipeline report.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3d2f73ef
  11. Jun 03, 2021
  12. May 16, 2021
  13. Mar 09, 2021
  14. Mar 06, 2021
    • Paolo Bonzini's avatar
      meson: adjust timeouts for some slower tests · dc1d91ac
      Paolo Bonzini authored
      
      Adjust the timeouts for the benchmarks (Meson 0.57 allows 0 to mean
      infinite) and for the longest running tests.  These are the
      times that I measured and the corresponding timeouts.  For generic
      qtests, the target that reported the longest runtime is included.
      
      unit tests:
          test-crypto-tlscredsx509        13.15s   45s
          test-crypto-tlssession          14.12s   45s
      
      qtests:
          qos-test                        21.26s   60s   (i386)
          ahci-test                       22.18s   60s
          pxe-test                        26.51s   60s
          boot-serial-test                28.02s   60s   (sparc)
          prom-env-test                   28.86s   60s
          bios-tables-test                50.17s   120s   (aarch64)
          test-hmp                        57.15s   120s   (aarch64)
          npcm7xx_pwm-test                71.27s   150s
          migration-test                  97.09s   150s  (aarch64)
          qom-test                        139.20s  240s  (aarch64)
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      dc1d91ac
  15. Dec 18, 2020
  16. Oct 22, 2020
  17. Oct 13, 2020
  18. Sep 30, 2020
  19. Aug 21, 2020
    • Paolo Bonzini's avatar
      3941996b
    • Paolo Bonzini's avatar
      meson: rename included C source files to .c.inc · 139c1837
      Paolo Bonzini authored
      
      With Makefiles that have automatically generated dependencies, you
      generated includes are set as dependencies of the Makefile, so that they
      are built before everything else and they are available when first
      building the .c files.
      
      Alternatively you can use a fine-grained dependency, e.g.
      
              target/arm/translate.o: target/arm/decode-neon-shared.inc.c
      
      With Meson you have only one choice and it is a third option, namely
      "build at the beginning of the corresponding target"; the way you
      express it is to list the includes in the sources of that target.
      
      The problem is that Meson decides if something is a source vs. a
      generated include by looking at the extension: '.c', '.cc', '.m', '.C'
      are sources, while everything else is considered an include---including
      '.inc.c'.
      
      Use '.c.inc' to avoid this, as it is consistent with our other convention
      of using '.rst.inc' for included reStructuredText files.  The editorconfig
      file is adjusted.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      139c1837
  20. May 19, 2020
  21. Jan 09, 2020
  22. Feb 26, 2019
  23. Jan 22, 2019
  24. Dec 20, 2018
  25. Dec 17, 2018
  26. Oct 05, 2018
Loading