Skip to content
Snippets Groups Projects
  1. Sep 25, 2023
  2. Aug 31, 2023
  3. Aug 23, 2023
  4. Aug 01, 2023
  5. Jul 26, 2023
    • Juan Quintela's avatar
      migration: skipped field is really obsolete. · 7b24d326
      Juan Quintela authored
      
      Has return zero for more than 10 years.
      
      Specifically we introduced the field in 1.5.0
      
      commit f1c72795
      Author: Peter Lieven <pl@kamp.de>
      Date:   Tue Mar 26 10:58:37 2013 +0100
      
          migration: do not sent zero pages in bulk stage
      
          during bulk stage of ram migration if a page is a
          zero page do not send it at all.
          the memory at the destination reads as zero anyway.
      
          even if there is an madvise with QEMU_MADV_DONTNEED
          at the target upon receipt of a zero page I have observed
          that the target starts swapping if the memory is overcommitted.
          it seems that the pages are dropped asynchronously.
      
          this patch also updates QMP to return the number of
          skipped pages in MigrationStats.
      
      but removed its usage in 1.5.3
      
      commit 9ef051e5
      Author: Peter Lieven <pl@kamp.de>
      Date:   Mon Jun 10 12:14:19 2013 +0200
      
          Revert "migration: do not sent zero pages in bulk stage"
      
          Not sending zero pages breaks migration if a page is zero
          at the source but not at the destination. This can e.g. happen
          if different BIOS versions are used at source and destination.
          It has also been reported that migration on pseries is completely
          broken with this patch.
      
          This effectively reverts commit f1c72795.
      
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Message-ID: <20230612193344.3796-2-quintela@redhat.com>
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      7b24d326
  6. Jul 10, 2023
  7. Jul 06, 2023
  8. Jun 01, 2023
  9. May 19, 2023
  10. May 18, 2023
    • Paolo Bonzini's avatar
      Python: Drop support for Python 3.6 · 5591b745
      Paolo Bonzini authored
      
      Python 3.6 was EOL 2021-12-31. Newer versions of upstream libraries have
      begun dropping support for this version and it is becoming more
      cumbersome to support. Avocado-framework and qemu.qmp each have their
      own reasons for wanting to drop Python 3.6, but won't until QEMU does.
      
      Versions of Python available in our supported build platforms as of today,
      with optional versions available in parentheses:
      
      openSUSE Leap 15.4: 3.6.15 (3.9.10, 3.10.2)
      CentOS Stream 8:    3.6.8  (3.8.13, 3.9.16)
      CentOS Stream 9:    3.9.13
      Fedora 36:          3.10
      Fedora 37:          3.11
      Debian 11:          3.9.2
      Alpine 3.14, 3.15:  3.9.16
      Alpine 3.16, 3.17:  3.10.10
      Ubuntu 20.04 LTS:   3.8.10
      Ubuntu 22.04 LTS:   3.10.4
      NetBSD 9.3:         3.9.13*
      FreeBSD 12.4:       3.9.16
      FreeBSD 13.1:       3.9.16
      OpenBSD 7.2:        3.9.16
      
      Note: Our VM tests install 3.9 explicitly for FreeBSD and 3.10 for
      NetBSD; the default for "python" or "python3" in FreeBSD is
      3.9.16. NetBSD does not appear to have a default meta-package, but
      offers several options, the lowest of which is 3.7.15. "python39"
      appears to be a pre-requisite to one of the other packages we request in
      tests/vm/netbsd. pip, ensurepip and other Python essentials are
      currently only available for Python 3.10 for NetBSD.
      
      CentOS and OpenSUSE support parallel installation of multiple Python
      interpreters, and binaries in /usr/bin will always use Python 3.6.  However,
      the newly introduced support for virtual environments ensures that all build
      steps that execute QEMU Python code use a single interpreter.
      
      Since it is safe to under our supported platform policy, bump our
      minimum supported version of Python to 3.7.
      
      Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20230511035435.734312-24-jsnow@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      5591b745
  11. May 16, 2023
  12. May 02, 2023
  13. Mar 24, 2023
  14. Mar 08, 2023
  15. Mar 07, 2023
  16. Feb 27, 2023
  17. Feb 20, 2023
    • Paolo Bonzini's avatar
      docs: build-platforms: refine requirements on Python build dependencies · 8d0efbcf
      Paolo Bonzini authored
      
      Historically, the critical dependency for both building and running
      QEMU has been the distro packages.  Because QEMU is written in C and C's
      package management has been tied to distros (at least if you do not want
      to bundle libraries with the binary, otherwise I suppose you could use
      something like conda or wrapdb), C dependencies of QEMU would target the
      version that is shipped in relatively old but still commonly used distros.
      
      For non-C libraries, however, the situation is different, as these
      languages have their own package management tool (cpan, pip, gem, npm,
      and so on).  For some of these languages, the amount of dependencies
      for even a simple program can easily balloon to the point that many
      distros have given up on packaging non-C code.  For this reason, it has
      become increasingly normal for developers to download dependencies into
      a self-contained local environment, instead of relying on distro packages.
      
      Fortunately, this affects QEMU only at build time, as qemu.git does
      not package non-C artifacts such as the qemu.qmp package; but still,
      as we make more use of Python, we experience a clash between a support
      policy that is written for the C world, and dependencies (both direct
      and indirect) that increasingly do not care for the distro versions
      and are quick at moving past Python runtime versions that are declared
      end-of-life.
      
      For example, Python 3.6 has been EOL'd since December 2021 and Meson 0.62
      (released the following March) already dropped support for it.  Yet,
      Python 3.6 is the default version of the Python runtime for RHEL/CentOS
      8 and SLE 15, respectively the penultimate and the most recent version
      of two distros that QEMU would like to support.  (It is also the version
      used by Ubuntu 18.04, but QEMU stopped supporting it in April 2022).
      
      There are good reasons to move forward with the deprecation of Python
      3.6 in QEMU as well: completing the configure->meson switch (which
      requires Meson 0.63), and making the QAPI generator fully typed (which
      requires newer versions of not just mypy but also Python, due to PEP563).
      
      Fortunately, these long-term support distros do include newer versions of
      the Python runtime.  However, these more recent runtimes only come with
      a very small subset of the Python packages that the distro includes.
      Because most dependencies are optional tests (avocado, mypy, flake8)
      and Meson is bundled with QEMU, the most noticeably missing package is
      Sphinx (and the readthedocs theme).  There are four possibilities:
      
      * we change the support policy and stop supporting CentOS 8 and SLE 15;
        not a good idea since CentOS 8 is not an unreasonable distro for us to
        want to continue to support
      
      * we keep supporting Python 3.6 until CentOS 8 and SLE 15 stop being
        supported.  This is a possibility---but we may want to revise the support
        policy anyway because SLE 16 has not even been released, so this would
        mean delaying those desirable reasons for perhaps three years;
      
      * we support Python 3.6 just for building documentation, i.e. we are
        careful not to use Python 3.7+ features in our Sphinx extensions but are
        free to use them elsewhere.  Besides being more complicated to understand
        for developers, this can be quite limiting; parts of the QAPI generator
        run at sphinx-build time, which would exclude one of the areas which
        would benefit from a newer version of the runtime;
      
      * we only support Python 3.7+, which means CentOS 8 CI and users
        have to either install Sphinx from pip or disable documentation.
      
      This proposed update to the support policy chooses the last of these
      possibilities.  It does by modifying three aspects of the support
      policy:
      
      * it introduces different support periods for *native* vs. *non-native*
        dependencies.  Non-native dependencies are currently Python ones only,
        and for simplicity the policy only mentions Python; however, the concept
        generalizes to other languages with a well-known upstream package
        manager, that users of older distributions can fetch dependencies from;
      
      * it opens up the possibility of taking non-native dependencies from their
        own package index instead of using the version in the distribution.  The
        wording right now is specific to dependencies that are only required at
        build time.  In the future we may have to refine it if, for example, parts
        of QEMU will be written in Rust; in that case, crates would be handled
        in a similar way to submodules and vendored in the release tarballs.
      
      * it mentions specifically that optional build dependencies are excluded
        from the platform policy.  Tools such as mypy don't affect the ability
        to build QEMU and move fast enough that distros cannot standardize on
        a single version of them (for example RHEL9 does not package them at
        all, nor does it run them at rpmbuild time).  In other cases, such as
        cross compilers, we have alternatives.
      
      Right now, non-native dependencies have to be download manually by
      running "pip" before "configure".  In the future, it will be desirable
      for configure to set up a virtual environment and download them in the
      same way that it populates git submodules (but, in this case, without
      vendoring them in the release tarballs).
      
      Just like with submodules, this would make things easier for people
      that can afford accessing the network in their build environment; the
      option to populate the build environment manually would remain for
      people whose build machines lack network access.  The change to the
      support policy neither requires nor forbids this future change.
      
      [Thanks to Daniel P. Berrangé, Peter Maydell and others for discussions
       that were copied or summarized in the above commit message]
      
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: John Snow <jsnow@redhat.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      8d0efbcf
  18. Feb 16, 2023
  19. Feb 15, 2023
  20. Feb 14, 2023
  21. Feb 02, 2023
  22. Jan 26, 2023
  23. Jan 13, 2023
  24. Jan 09, 2023
  25. Jan 05, 2023
Loading