Python patches
The following changes since commit e9fa1f66f0d47c74b6766e1b8b87ad7c2a9394d5:
Merge tag 'pull-nbd-2026-11-10-v2' of https://gitlab.com/ebblake/qemu into staging (2026-11-13 08:44:16 -0700)
are available in the Git repository at:
[email protected]:jsnow/qemu.git tags/python-pull-request
for you to fetch changes up to 8ff6cd65b6e4a9944e54dd27aa3a72ebef8f93d4:
python/utils: fix accelerator detection with annotated -accel help (2026-11-16 11:53:21 -0500)
----------------------------------------------------------------
python: pull request for-11.2
----------------------------------------------------------------
John Snow (1):
python: add support for Python3.15
Marc-André Lureau (1):
python/utils: fix accelerator detection with annotated -accel help
configure | 2 +- tests/docker/dockerfiles/python.docker | 5 ++--- python/Makefile | 4 ++-- python/qemu/utils/accel.py | 5 +++-- python/setup.cfg | 3 ++- 5 files changed, 10 insertions(+), 9 deletions(-)
Signature · 1 line
2.56.1
[PULL 1/2] python: add support for Python3.15
Update tests, docs and infrastructure to explicitly support and test Python3.15.
Message-ID: <[email protected]>
--- configure | 2 +- tests/docker/dockerfiles/python.docker | 5 ++--- python/Makefile | 4 ++-- python/setup.cfg | 3 ++- 4 files changed, 7 insertions(+), 7 deletions(-)
configure +1 -1
@@ -497,7 +497,7 @@ first_python= if test -z "${PYTHON}"; then # A bare 'python' is traditionally python 2.x, but some distros # have it as python 3.x, so check in both places. - for binary in python3 python python3.14 python3.13 python3.12; do + for binary in python3 python python3.15 python3.14 python3.13 python3.12; do if has "$binary"; then python=$(command -v "$binary") if check_py_version "$python"; then
tests/docker/dockerfiles/python.docker +2 -3
@@ -11,11 +11,10 @@ ENV PACKAGES="\ python3-pip \ python3-tox \ python3-virtualenv \ - python3.10 \ - python3.11 \ python3.12 \ python3.13 \ - python3.9 \ + python3.14 \ + python3.15 \ " RUN dnf install -y $PACKAGES
python/Makefile +2 -2
@@ -15,8 +15,8 @@ help: @echo "make check-tox:" @echo " Run tests against multiple python versions." @echo " These tests use the newest dependencies." - @echo " Requires: Python 3.12 - 3.14, and tox." - @echo " Hint (Fedora): 'sudo dnf install python3-tox python3.14'" + @echo " Requires: Python 3.12 - 3.15, and tox." + @echo " Hint (Fedora): 'sudo dnf install python3-tox python3.15'" @echo " The variable QEMU_TOX_EXTRA_ARGS can be use to pass extra" @echo " arguments to tox". @echo ""
python/setup.cfg +2 -1
@@ -17,6 +17,7 @@ classifiers = Programming Language :: Python :: 3.12 Programming Language :: Python :: 3.13 Programming Language :: Python :: 3.14 + Programming Language :: Python :: 3.15 Typing :: Typed [options]
@@ -145,7 +146,7 @@ multi_line_output=3 # of python available on your system to run this test. [tox:tox] -envlist = py312, py313, py314 +envlist = py312, py313, py314, py315 skip_missing_interpreters = true [testenv]
Signature · 1 line
2.56.1
[PULL 2/2] python/utils: fix accelerator detection with annotated -accel help
In reply to John SnowFrom: Marc-André Lureau <[email protected]>
QEMU annotates the accelerator names in "-accel help" with their security status, eg "kvm (secure)". kvm_available() compares the entries with the plain accelerator name, so the check fails and functional tests using require_accelerator('kvm') are silently skipped.
Keep only the accelerator name of each line.
fwiw, I am surprised we don't seem to have a CI that exercice functional kvm tests, or compare against a baseline to avoid this kind of regression.
Message-ID: <[email protected]>
--- python/qemu/utils/accel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
python/qemu/utils/accel.py +3 -2
@@ -47,8 +47,9 @@ def list_accel(qemu_bin: str) -> List[str]: except: LOG.debug("Failed to get the list of accelerators in %s", qemu_bin) raise - # Skip the first line which is the header. - return [acc.strip() for acc in out.splitlines()[1:]] + # Skip the first line which is the header, and drop annotations + # such as " (secure)" from the accelerator names. + return [acc.split(' ')[0] for acc in out.splitlines()[1:]] def kvm_available(target_arch: Optional[str] = None,
Signature · 1 line
2.56.1
Quoted 31 lines · John Snow
The following changes since commit
e9fa1f66f0d47c74b6766e1b8b87ad7c2a9394d5:Merge tag 'pull-nbd-2026-11-10-v2' of https://gitlab.com/ebblake/qemu into staging (2026-11-13 08:44:16 -0700)
are available in the Git repository at:
[email protected]:jsnow/qemu.git tags/python-pull-request
for you to fetch changes up to
8ff6cd65b6e4a9944e54dd27aa3a72ebef8f93d4:python/utils: fix accelerator detection with annotated -accel help (2026-11-16 11:53:21 -0500)
----------------------------------------------------------------
python: pull request for-11.2----------------------------------------------------------------
John Snow (1):
python: add support for Python3.15Marc-André Lureau (1):
python/utils: fix accelerator detection with annotated -accel helpconfigure | 2 +- tests/docker/dockerfiles/python.docker | 5 ++--- python/Makefile | 4 ++-- python/qemu/utils/accel.py | 5 +++-- python/setup.cfg | 3 ++- 5 files changed, 10 insertions(+), 9 deletions(-)
Quoted 3 lines
--
2.56.1
For posterity, my refreshed gpg key with an expiration in 2028 was pushed to the ubuntu keyserver.
--js
Richard Henderson
AppliedQuoted 6 lines · John Snow
The following changes since commit
e9fa1f66f0d47c74b6766e1b8b87ad7c2a9394d5:Merge tag 'pull-nbd-2026-11-10-v2' ofhttps://gitlab.com/ebblake/qemu into staging (2026-11-13 08:44:16 -0700)are available in the Git repository at:
Quoted 8 lines
[email protected]:jsnow/qemu.git tags/python-pull-request
for you to fetch changes up to
8ff6cd65b6e4a9944e54dd27aa3a72ebef8f93d4:python/utils: fix accelerator detection with annotated -accel help (2026-11-16 11:53:21 -0500)----------------------------------------------------------------
python: pull request for-11.2
Applied, thanks.
r~