Skip to content
Snippets Groups Projects
  1. May 14, 2022
  2. Feb 09, 2022
  3. Jan 18, 2022
    • Daniel P. Berrangé's avatar
      tests: integrate lcitool for generating build env manifests · 4ebb040f
      Daniel P. Berrangé authored
      This introduces
      
        https://gitlab.com/libvirt/libvirt-ci
      
      
      
      as a git submodule at tests/lcitool/libvirt-ci
      
      The 'lcitool' program within this submodule will be used to
      automatically generate build environment manifests from a definition
      of requirements in tests/lcitool/projects/qemu.yml
      
      It will ultimately be capable of generating
      
       - Dockerfiles
       - Package lists for installation in VMs
       - Variables for configuring Cirrus CI environments
      
      When a new build pre-requisite is needed for QEMU, if this package
      is not currently known to libvirt-ci, it must first be added to the
      'mappings.yml' file in the above git repo.
      
      Then the submodule can be updated and the build pre-requisite added
      to the tests/lcitool/projects/qemu.yml file. Now all the build env
      manifests can be re-generated using  'make lcitool-refresh'
      
      This ensures that when a new build pre-requisite is introduced, it
      is added to all the different OS containers, VMs and Cirrus CI
      environments consistently.
      
      It also facilitates the addition of containers targetting new distros
      or updating existing containers to new versions of the same distro,
      where packages might have been renamed.
      
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20211215141949.3512719-8-berrange@redhat.com>
      Message-Id: <20220105135009.1584676-8-alex.bennee@linaro.org>
      4ebb040f
  4. Jan 12, 2022
  5. 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
  6. Nov 02, 2021
    • Peter Xu's avatar
      Makefile: Fix cscope issues on MacOS and soft links · af7d106e
      Peter Xu authored
      
      This patch fixes actually two issues with 'make cscope'.
      
      Firstly, it fixes the command for MacOS "find" command as MacOS will append the
      full path of "$(SRC_PATH)/" before each found entry, then after the final "./"
      replacement trick it'll look like (e.g., "qapi/qmp-dispatch.c"):
      
        /qapi/qmp-dispatch.c
      
      Which will point to the root directory instead.
      
      Fix it by simply remove the "/" in "$(SRC_PATH)/" of "find-src-path", then
      it'll work for at least both Linux and MacOS.
      
      The other OS-independent issue is to start proactively ignoring soft links when
      generating tags, otherwise by default on master branch we'll see this error
      when "make cscope":
      
      cscope: cannot find file subprojects/libvhost-user/include/atomic.h
      
      This patch should fix the two issues altogether.
      
      Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
      Message-Id: <20210804132328.41353-3-peterx@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      af7d106e
    • Peter Xu's avatar
      Makefile: Fix gtags generation · b8c9ed15
      Peter Xu authored
      
      We should use "-print" or otherwise all "-prone" is ignored.
      
      Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
      Message-Id: <20210804132328.41353-2-peterx@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      b8c9ed15
  7. Oct 14, 2021
    • Paolo Bonzini's avatar
      configure: prepare for auto-generated option parsing · 61d63097
      Paolo Bonzini authored
      
      Prepare the configure script and Makefile for automatically generated
      help and parsing.
      
      Because we need to run the script to generate the full help, we
      cannot rely on the user supplying the path to a Python interpreter
      with --python; therefore, the introspection output is parsed into
      shell functions and stored in scripts/.  The converter is written
      in Python as standard for QEMU, and this commit contains a stub.
      
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20211007130829.632254-18-pbonzini@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      61d63097
  8. Jul 29, 2021
    • Alexey Neyman's avatar
      Makefile: ignore long options · 14833e24
      Alexey Neyman authored
      
      When searching for options like -n in MAKEFLAGS, current code may result
      in a false positive match when make is invoked with long options like
      --no-print-directory. This has been observed with certain versions of
      host make (e.g. 3.82) while building the Qemu package in buildroot.
      
      Filter out such long options before searching for one-character options.
      
      Signed-off-by: default avatarAlexey Neyman <stilor@att.net>
      Message-Id: <20210722020846.3678817-1-stilor@att.net>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      14833e24
  9. Jul 05, 2021
  10. May 26, 2021
  11. May 14, 2021
    • Thomas Huth's avatar
      configure: Poison all current target-specific #defines · e0447a83
      Thomas Huth authored
      
      We are generating a lot of target-specific defines in the *-config-devices.h
      and *-config-target.h files. Using them in common code is wrong and leads
      to very subtle bugs since a "#ifdef CONFIG_SOMETHING" is not working there
      as expected. To avoid these issues, we are already poisoning many of the
      macros in include/exec/poison.h - but it's cumbersome to maintain this
      list manually. Thus let's generate an additional list of poisoned macros
      automatically from the current config switches - this should give us a
      much better test coverage via the different CI configurations.
      
      Note that CONFIG_TCG (which is also defined in config-host.h) and
      CONFIG_USER_ONLY are special, so we have to filter these out.
      
      Message-Id: <20210414112004.943383-5-thuth@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      e0447a83
  12. Mar 06, 2021
  13. Feb 08, 2021
  14. Jan 29, 2021
    • Dan Streetman's avatar
      configure: replace --enable/disable-git-update with --with-git-submodules · 7d7dbf9d
      Dan Streetman authored
      
      Replace the --enable-git-update and --disable-git-update configure params
      with the param --with-git-submodules=(update|validate|ignore) to
      allow 3 options for building from a git repo.
      
      This is needed because downstream packagers, e.g. Debian, Ubuntu, etc,
      also keep the source code in git, but do not want to enable the
      'git_update' mode; with the current code, that's not possible even
      if the downstream package specifies --disable-git-update.
      
      The previous parameters are deprecated but still available; the
      --enable-git-update parameter maps to --with-git-submodules=update and
      --disable-git-update parameter maps to --with-git-submodules=validate.
      
      The configure script behavior is slightly modified, where previously
      the dtc, capstone, and slirp submodules were not validated when
      --disable-git-update was specified (but were updated with git-update
      enabled), now they are validated when using --with-git-submodules=validate
      and are only ignored when using --with-git-submodules=ignore.
      
      Signed-off-by: default avatarDan Streetman <ddstreet@canonical.com>
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      7d7dbf9d
  15. Jan 27, 2021
    • Vladimir Sementsov-Ogievskiy's avatar
      iotests: rewrite check into python · f203080b
      Vladimir Sementsov-Ogievskiy authored
      
      Just use classes introduced in previous three commits. Behavior
      difference is described in these three commits.
      
      Drop group file, as it becomes unused.
      
      Drop common.env: now check is in python, and for tests we use same
      python interpreter that runs the check itself. Use build environment
      PYTHON in check-block instead, to keep "make check" use the same
      python.
      
      Checking for virtio-blk moved to iotests.py, as it actually iotests.py
      dependency. Actually not all python iotests depend on it, so in future
      it may be refactored to checked only when really needed.
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Message-Id: <20210125185056.129513-6-vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      f203080b
  16. Jan 23, 2021
  17. Jan 18, 2021
  18. Jan 02, 2021
  19. Nov 09, 2020
  20. Oct 27, 2020
  21. Oct 26, 2020
  22. Oct 17, 2020
  23. Oct 06, 2020
  24. Oct 03, 2020
    • Richard Henderson's avatar
      capstone: Convert Makefile bits to meson bits · 8b18cdbf
      Richard Henderson authored
      
      There are better ways to do this, e.g. meson cmake subproject,
      but that requires cmake 3.7 and some of our CI environments
      only provide cmake 3.5.
      
      Nor can we add a meson.build file to capstone/, because the git
      submodule would then always report "untracked files".  Fixing that
      would require creating our own branch on the qemu git mirror, at
      which point we could just as easily create a native meson subproject.
      
      Instead, build the library via the main meson.build.
      
      This improves the current state of affairs in that we will re-link
      the qemu executables against a changed libcapstone.a, which we wouldn't
      do before-hand.  In addition, the use of the configuration header file
      instead of command-line -DEFINES means that we will rebuild the
      capstone objects with changes to meson.build.
      
      Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      8b18cdbf
  25. Sep 30, 2020
  26. Sep 29, 2020
    • Peter Maydell's avatar
      docs/interop: Convert qemu-qmp-ref to rST · 4ac2ee19
      Peter Maydell authored
      
      Convert qemu-qmp-ref to rST format. This includes dropping
      the plain-text, pdf and info format outputs for this document;
      as with all our other Sphinx-based documentation, we provide
      HTML and manpage only.
      
      The qemu-qmp-ref.rst is somewhat more stripped down than
      the .texi was, because we do not (currently) attempt to
      generate indexes for the commands, events and data types
      being documented.
      
      Again, we drop the direct link from index.html.in now that
      the QMP ref is part of the interop manual.
      
      This commit removes the code from the root meson.build file that
      handled the various Texinfo-based outputs, because we no longer
      generate any documentation except for the Sphinx HTML manuals and the
      manpages, and the code can't handle having an empty list of files
      to process.. We'll do further cleanup of the remainders of
      Texinfo support in subsequent commits.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200925162316.21205-10-peter.maydell@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      [Unicode legacy literal dumbed down to plain string literal, TODO
      comment on displaying QEMU version added, "make html" fixed,
      storage-daemon/qapi/meson.build updated]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      4ac2ee19
  27. Sep 13, 2020
Loading