Debian Patches

Status for qemu/1:7.2+dfsg-7+deb12u2~bpo11+1

Patch Description Author Forwarded Bugs Origin Last update
v7.2.1.diff v7.2.1
This is a difference between upstream qemu v7.2.0
and upstream qemu v7.2.1.

VERSION | 2 +-
block/curl.c | 44 +++++--
block/io.c | 3 +
block/iscsi.c | 1 +
block/qcow2-bitmap.c | 5 +-
chardev/char-socket.c | 1 +
configure | 2 +-
hw/acpi/cpu_hotplug.c | 3 +
hw/core/machine.c | 3 +
hw/i386/intel_iommu.c | 15 +++
hw/i386/microvm.c | 2 +-
hw/i386/pc.c | 4 +-
hw/i386/pc_piix.c | 2 -
hw/i386/pc_q35.c | 2 -
hw/i386/x86.c | 88 +++----------
hw/nvme/ctrl.c | 32 ++++-
hw/nvram/fw_cfg.c | 12 +-
hw/smbios/smbios.c | 8 +-
hw/timer/hpet.c | 19 ++-
hw/virtio/vhost-shadow-virtqueue.c | 2 +-
hw/virtio/vhost-user-gpio.c | 10 +-
hw/virtio/vhost-user-i2c.c | 5 +-
hw/virtio/vhost-user-rng.c | 5 +-
hw/virtio/vhost-vdpa.c | 17 +--
hw/virtio/vhost.c | 84 ++++++++++---
hw/virtio/virtio-mem.c | 6 +-
include/hw/i386/pc.h | 3 -
include/hw/i386/x86.h | 3 +-
include/hw/nvram/fw_cfg.h | 22 ----
include/hw/virtio/vhost-user-gpio.h | 2 +-
meson.build | 2 +-
migration/ram.c | 9 +-
scripts/shaderinclude.pl | 16 ---
scripts/shaderinclude.py | 26 ++++
scripts/symlink-install-tree.py | 1 -
subprojects/libvhost-user/libvhost-user.c | 7 ++
target/arm/helper.c | 3 +
target/arm/ptw.c | 6 +-
target/arm/sve_helper.c | 14 ++-
target/arm/translate.c | 2 +-
target/i386/tcg/emit.c.inc | 59 +++++----
target/riscv/translate.c | 12 +-
target/sh4/cpu.c | 2 +-
tests/tcg/Makefile.target | 2 +
tests/tcg/i386/Makefile.target | 6 +-
tests/tcg/i386/test-i386-adcox.c | 75 ++++++++++++
tests/tcg/i386/test-i386-bmi2.c | 197 ++++++++++++++++--------------
tests/tcg/multiarch/linux/linux-test.c | 6 +-
tests/tcg/riscv64/Makefile.target | 6 +
tests/tcg/riscv64/test-noc.S | 32 +++++
50 files changed, 548 insertions(+), 342 deletions(-)

diff --git a/VERSION b/VERSION
index 0ee843cc60..b26a34e470 100644
Michael Tokarev <mjt@tls.msk.ru> not-needed 2023-04-05
v7.2.2.diff v7.2.2
This is a difference between upstream qemu v7.2.1
and upstream qemu v7.2.2.

VERSION | 2 +-
block/vhdx-log.c | 2 +-
hw/arm/boot.c | 5 ++++-
hw/net/vmxnet3.c | 2 +-
hw/nvme/ctrl.c | 3 +++
hw/rdma/vmw/pvrdma_cmd.c | 6 ++++++
include/qemu/osdep.h | 2 +-
io/channel-tls.c | 3 +++
linux-user/fd-trans.c | 10 ++++++---
linux-user/fd-trans.h | 1 +
linux-user/generic/target_resource.h | 4 ++--
linux-user/syscall.c | 21 ++++++++++++------
qga/commands.c | 5 ++---
qga/installer/qemu-ga.wxs | 1 +
qga/vss-win32/install.cpp | 2 +-
target/arm/cpu.h | 3 +++
target/s390x/arch_dump.c | 2 +-
target/s390x/cpu.h | 1 +
target/s390x/s390x-internal.h | 3 ++-
target/s390x/tcg/insn-data.h.inc | 4 ++--
target/s390x/tcg/mem_helper.c | 1 +
target/s390x/tcg/translate.c | 41 ++++++++++++++++++++++++++++--------
ui/gtk.c | 4 +++-
util/fdmon-epoll.c | 25 ++++++++++++++++------
24 files changed, 112 insertions(+), 41 deletions(-)

diff --git a/VERSION b/VERSION
index b26a34e470..77f5bec5b2 100644
Michael Tokarev <mjt@tls.msk.ru> not-needed 2023-04-29
v7.2.3.diff diff --git a/VERSION b/VERSION
index 77f5bec5b2..429dc57af3 100644
no
v7.2.4.diff diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index d21b4a1fd4..10886bb414 100644
no
v7.2.5.diff diff --git a/VERSION b/VERSION
index 2bbaead448..8aea167e72 100644
no
microvm-default-machine-type.patch set default machine type to be microvm if CONFIG_MICROVM is defined
diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
index def37e60f79..35b948ffb11 100644
Michael Tokarev <mjt@tls.msk.ru> no 2020-02-22
skip-meson-pc-bios.diff do not include pc-bios/meson.build from main build as we build all firmware separately
pc-bios/meson.build tries to link various firmware files to the build
directory, but we DFSG-removed them so the build fails to find them.
Just disable entering the subdir entirely since we buile all the
necessary firmware in d/rules anyway.

diff --git a/meson.build b/meson.build
Michael Tokarev <mjt@tls.msk.ru> no
linux-user-binfmt-P.diff [PATCH, HACK]: linux-user: handle binfmt-misc P flag as a separate exe name
A hackish way to distinguish the case when qemu-user binary is executed
using in-kernel binfmt-misc subsystem with P flag (preserve argv).
We register binfmt interpreter under name /usr/libexec/qemu-binfmt/qemu-foo-binfmt-P
(which is just a symlink to ../../bin/qemu-foo), and if run like that,
qemu-user binary will "know" it should interpret argv[1] & argv[2]
in a special way.

diff --git a/linux-user/main.c b/linux-user/main.c
index e44bdb17b8..587bd02db2 100644
Michael Tokarev <mjt@tls.msk.ru> no 2021-02-13
note-missing-module-pkg-name.diff Note missing module package name
Debian ships different modules in different packages.
By default qemu ignores the fact that it can not load
a module, pretending this module never existed.
Give a useful hint about the package where the module
in question resides.

This is a hack, but it makes qemu a bit more user-friendly.

diff --git a/util/module.c b/util/module.c
index 32e263163c..2f3e35f781 100644
Michael Tokarev <mjt@tls.msk.ru> no 2021-08-22
openbios-address-of-packet-member.patch diff --git a/roms/openbios/drivers/usbohci.c b/roms/openbios/drivers/usbohci.c
index 774164b..42788a2 100644
no
openbios-array-bounds.diff diff --git a/roms/openbios/drivers/usb.c b/roms/openbios/drivers/usb.c
index 88b7580..03f6ebb 100644
no
openbios-array-bounds-gcc12.patch openbios: do not error-out array-bounds warning
gcc-12.2 produces an apparently wrong warning for this file:

roms/openbios/arch/ppc/qemu/init.c:400:10: error: \
array subscript 0 is outside array bounds of uint32_t[0] {aka unsigned int[]} \
[-Werror=array-bounds]
400 | *dsi = 0x48002002;
| =====^===========

Turn this particular -Werror back into warning. Gcc is apparently wrong here.

index e40385a70b..2e214aa079 100644
Michael Tokarev <mjt@tls.msk.ru> no 2022-09-02
openbios-use-source_date_epoch-in-makefile.patch roms/openbios: Use SOURCE_DATE_EPOCH in Makefile.
Embedding the build time breaks reproducibility. Instead, use the date
specified by the SOURCE_DATE_EPOCH environment variable:

https://reproducible-builds.org/docs/source-date-epoch/

This patch relies on features of GNU date, and will need further
changes for portability to other systems.
Vagrant Cascadian <vagrant@reproducible-builds.org> no 2020-06-21
seabios-hppa-use-consistent-date-and-remove-hostname.patch roms/seabios-hppa: Use consistent date and remove hostname.
Two issues break reproducibility; the time and hostname get embedded
in the resulting seabios binary.

Simply drop the hostname from the embedded version string, as it
shouldn't be needed in Debian package builds.

Use the SOURCE_DATE_EPOCH environment variable to set the build date
rather than the current time:

https://reproducible-builds.org/docs/source-date-epoch/
Vagrant Cascadian <vagrant@reproducible-builds.org> no 2020-06-21
slof-remove-user-and-host-from-release-version.patch roms/SLOF/Makefile.gen: Remove user and host from release version.
This version string ends up in the slof.bin, leading to
reproducibility issues.
Vagrant Cascadian <vagrant@reproducible-builds.org> no 2020-06-22
slof-ensure-ld-is-called-with-C-locale.patch slof/Makefile.gen: Ensure ld is called with the C locale.
The output of "ld -V" changes based on the environment's locale.
Vagrant Cascadian <vagrant@reproducible-builds.org> no 2020-06-22
spelling.diff [PATCH 2/3] hw/virtio/virtio.c: spelling: suppoted Michael Tokarev <mjt@tls.msk.ru> no 2022-11-05
openbios-spelling-endianess.patch diff --git a/roms/openbios/kernel/bootstrap.c b/roms/openbios/kernel/bootstrap.c
index b7658ab..fb4506e 100644
no
slof-spelling-seperator.patch diff --git a/roms/SLOF/lib/libnet/tftp.c b/roms/SLOF/lib/libnet/tftp.c
index 9a5817a..71ea6ae 100644
no
ignore-roms-dependency-in-qtest.patch roms as dependencies won't be available in packaged qemu Due to the removal of blobs the packaging will not have the roms
dependency set and would fail at configure stage with:
../../tests/qtest/meson.build:272:2: ERROR: Unknown variable "roms".
Switch it back to the former empty initializer.
Christian Ehrhardt <christian.ehrhardt@canonical.com> no 2022-01-05
hw_mips_malta-Fix-malta-machine-on-big-endian-hosts.patch [PATCH] hw/mips/malta: Fix the malta machine on big endian hosts
Booting a Linux kernel with the malta machine is currently broken
on big endian hosts. The cpu_to_gt32 macro wants to byteswap a value
for little endian targets only, but uses the wrong way to do this:
cpu_to_[lb]e32 works the other way round on big endian hosts! Fix
it by using the same ways on both, big and little endian hosts.
Thomas Huth <thuth@redhat.com> no 2023-03-30

All known versions for source package 'qemu'

Links