]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
qemu: upgrade 10.2.0 -> 11.0.0
authorAlexander Kanavin <alex@linutronix.de>
Wed, 10 Jun 2026 14:12:07 +0000 (16:12 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Jun 2026 09:41:52 +0000 (10:41 +0100)
commitf74d4025afc5d4df4238d218df15cd5acfe2589a
tree74375e0d4ff79ee789090dd2a0cc9f12312db9d8
parentfb964f5da64bcf7fae33d9cc57b42d2fbd4d5438
qemu: upgrade 10.2.0 -> 11.0.0

Upgrade QEMU to version 11.0.0.

Main changes:

- QEMU 11.0.0 has officially dropped all support for 32-bit host systems.
  This includes the ability to build the system emulator (softmmu) on
  any 32-bit host architecture. Add COMPATIBLE_HOST for class-target and
  class-nativesdk to restrict builds to 64-bit architectures. Fix SDK
  build failure when SDKMACHINE is 32-bit.
  Note: QEMU 11.0.0 still supports emulating 32-bit guest architectures
  (such as qemu-system-i386 or qemu-system-arm) as long as they are
  running on a 64-bit host.

- qemu-targets.inc: skip linux-user targets when HOST_ARCH is not in the
  set of architectures supported by QEMU 11.0.0's linux-user mode
  (64-bit only: aarch64, loongarch64, mips64, ppc64, riscv64, s390x,
  sparc64, x86_64).

- Add --cpu=${TUNE_ARCH} to EXTRA_OECONF for class-target, and add
  --cpu=${SDK_ARCH} to nativesdk configure options to fix build
  failure. QEMU 11's configure script falls back to 'uname -m' (x86_64)
  when it cannot detect the host CPU.

- Add 0012-meson-fix-close_range-detection-on-older-glibc.patch:
  the meson has_function('close_range') check succeeds at link time on
  hosts with kernel >= 5.9 even when glibc < 2.34 does not declare the
  function, causing implicit declaration errors. Add a prefix include
  so the check only succeeds when the header declares close_range().

- Add 0013-hw-scsi-vhost-scsi-include-standard-headers-for-vhost-worker-structs.patch:
  on build hosts with kernel headers < 6.0, vhost-scsi.c fails to
  compile due to missing struct vhost_vring_worker/vhost_worker_state.
  Include QEMU's bundled standard-headers before the system header,
  matching the pattern already used in hw/virtio/vhost-backend.c.

- Drop fix-strerrorname_np.patch (fixed upstream).
  Drop 0001-linux-user-elfload.c-Correction-to-HWCAP2-accessor.patch
  (fixed upstream).
  Drop 0001-accel-tcg-Fix-iotlb_to_section-for-different-Address.patch
  (fixed upstream).

AI-Generated: kiro-cli

Signed-off-by: Quan Sun <Quan.Sun@windriver.com>
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
21 files changed:
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
meta/recipes-devtools/qemu/qemu-native_11.0.0.bb [moved from meta/recipes-devtools/qemu/qemu-native_10.2.0.bb with 99% similarity]
meta/recipes-devtools/qemu/qemu-system-native_11.0.0.bb [moved from meta/recipes-devtools/qemu/qemu-system-native_10.2.0.bb with 99% similarity]
meta/recipes-devtools/qemu/qemu-targets.inc
meta/recipes-devtools/qemu/qemu.inc
meta/recipes-devtools/qemu/qemu/0001-accel-tcg-Fix-iotlb_to_section-for-different-Address.patch [deleted file]
meta/recipes-devtools/qemu/qemu/0001-linux-user-elfload.c-Correction-to-HWCAP2-accessor.patch [deleted file]
meta/recipes-devtools/qemu/qemu/0001-qemu-Add-addition-environment-space-to-boot-loader-q.patch
meta/recipes-devtools/qemu/qemu/0002-apic-fixup-fallthrough-to-PIC.patch
meta/recipes-devtools/qemu/qemu/0004-qemu-Do-not-include-file-if-not-exists.patch
meta/recipes-devtools/qemu/qemu/0005-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch
meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch
meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch
meta/recipes-devtools/qemu/qemu/0008-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch
meta/recipes-devtools/qemu/qemu/0010-configure-lookup-meson-exutable-from-PATH.patch
meta/recipes-devtools/qemu/qemu/0011-qemu-Ensure-pip-and-the-python-venv-aren-t-used-for-.patch
meta/recipes-devtools/qemu/qemu/0012-meson-fix-close_range-detection-on-older-glibc.patch [new file with mode: 0644]
meta/recipes-devtools/qemu/qemu/0013-hw-scsi-vhost-scsi-include-standard-headers-for-vhost-worker-structs.patch [new file with mode: 0644]
meta/recipes-devtools/qemu/qemu/fix-strerrorname_np.patch [deleted file]
meta/recipes-devtools/qemu/qemu_11.0.0.bb [moved from meta/recipes-devtools/qemu/qemu_10.2.0.bb with 100% similarity]