[PULL 00/22] Misc TCG & HW patches for 2026-11-17

Philippe Mathieu-Daudé posted 22 patches 6 days, 4 hours ago
There is a newer version of this series
configs/devices/i386-softmmu/default.mak |   6 +-
meson.build                              |   2 +-
tcg/riscv64/tcg-target-con-set.h         |   1 +
tcg/riscv64/tcg-target-con-str.h         |   1 +
hw/block/m25p80.c                        |   1 +
hw/i386/x86-bios.c                       | 143 ++++++++++++++
hw/i386/x86-common.c                     | 125 ------------
hw/i386/x86.c                            |   1 -
hw/usb/ccid-card-emulated.c              |  22 +--
hw/usb/dev-mtp.c                         |  24 ++-
hw/usb/u2f-emulated.c                    |  19 +-
hw/usb/u2f.c                             |  31 +++
hw/virtio/virtio-iommu.c                 |   2 +-
hw/xen/xen-legacy-backend.c              |   7 +
qga/commands-posix.c                     |   8 +-
tests/tcg/aarch64/sve-vec-imm.c          | 233 +++++++++++++++++++++++
tcg/riscv64/tcg-target.c.inc             | 116 ++++++++---
hw/i386/meson.build                      |   1 +
meson_options.txt                        |   2 +-
tests/qtest/meson.build                  |   2 +-
tests/tcg/aarch64/meson.build            |   1 +
21 files changed, 555 insertions(+), 193 deletions(-)
create mode 100644 hw/i386/x86-bios.c
create mode 100644 tests/tcg/aarch64/sve-vec-imm.c
[PULL 00/22] Misc TCG & HW patches for 2026-11-17
Posted by Philippe Mathieu-Daudé 6 days, 4 hours ago
The following changes since commit 573577bff0138681ddd4ee2410c51bead7b53e74:

  Merge tag 'pull-target-arm-20261116' of https://gitlab.com/pm215/qemu into staging (2026-11-16 12:09:43 -0800)

are available in the Git repository at:

  https://github.com/philmd/qemu.git tags/hw-misc-20261117

for you to fetch changes up to 46baf870fa08abd39d4cfe918aa0f81a3281c7ea:

  hw/virtio/virtio-iommu: Fix IOVA address lookup (2026-11-17 00:20:11 +0100)

Ignoring usual spurious checkpatch errors.

----------------------------------------------------------------
Misc fixes for 11.2

- Build system (obsolete Kconfig, QGA, illumos, macOS pvg)
- Fix wrong constant encoding in the vector .vi immediate emitters on RISC-V TCG
- USB device fixes (CCID card, U2F, MTP)
- m25p80, virtio-iommu, Xen backends
----------------------------------------------------------------

Bin Guo (1):
  hw/usb/u2f: validate ring buffer indices on migration load

Brad Smith (1):
  qga: fix uname() return value check in guest-get-osinfo

Chao Liu (1):
  hw/block/m25p80: fix write enable latch after WRSR2

Eric Auger (1):
  hw/virtio/virtio-iommu: Fix IOVA address lookup

John Snow (3):
  build: remove vestigial CONFIG_SGA
  build: update CONFIG_PVPANIC
  hw/i386: move bios functions into x86-bios.c

Mohamed Mediouni (1):
  pvg: disable by default

Peng Fan (1):
  hw/xen: Mark legacy Xen backends as hotpluggable

Peter Maydell (1):
  hw/usb/ccid-card-emulated: Use QemuSemaphore rather than QemuCond

Philippe Mathieu-Daudé (7):
  tcg/riscv64: Factor encode_vi_raw() out of encode_vi()
  tcg/riscv64: Use a uimm5 encoder for vector shift immediates
  tcg/riscv64: Extract elements for vector arithmetic immediates
  tcg/riscv64: Fix constant handling in vector comparisons and selects
  tcg/riscv64: Fix logical vector immediate matching and emission
  tests/tcg/aarch64: Add vector immediate regression tests
  hw/usb/u2f-emulated: Use QemuSemaphore rather than QemuCond

Roman Bogorodskiy (2):
  meson.build: fix getifaddrs() detection on illumos
  qga: fix build on illumos

Tommaso Califano (3):
  hw/usb/dev-mtp: Fix recursive delete of directories
  hw/usb/dev-mtp: Check length of class control request
  hw/usb/dev-mtp: Stop processing SendObjectInfo after an error

 configs/devices/i386-softmmu/default.mak |   6 +-
 meson.build                              |   2 +-
 tcg/riscv64/tcg-target-con-set.h         |   1 +
 tcg/riscv64/tcg-target-con-str.h         |   1 +
 hw/block/m25p80.c                        |   1 +
 hw/i386/x86-bios.c                       | 143 ++++++++++++++
 hw/i386/x86-common.c                     | 125 ------------
 hw/i386/x86.c                            |   1 -
 hw/usb/ccid-card-emulated.c              |  22 +--
 hw/usb/dev-mtp.c                         |  24 ++-
 hw/usb/u2f-emulated.c                    |  19 +-
 hw/usb/u2f.c                             |  31 +++
 hw/virtio/virtio-iommu.c                 |   2 +-
 hw/xen/xen-legacy-backend.c              |   7 +
 qga/commands-posix.c                     |   8 +-
 tests/tcg/aarch64/sve-vec-imm.c          | 233 +++++++++++++++++++++++
 tcg/riscv64/tcg-target.c.inc             | 116 ++++++++---
 hw/i386/meson.build                      |   1 +
 meson_options.txt                        |   2 +-
 tests/qtest/meson.build                  |   2 +-
 tests/tcg/aarch64/meson.build            |   1 +
 21 files changed, 555 insertions(+), 193 deletions(-)
 create mode 100644 hw/i386/x86-bios.c
 create mode 100644 tests/tcg/aarch64/sve-vec-imm.c

-- 
2.55.0


Re: [PULL 00/22] Misc TCG & HW patches for 2026-11-17
Posted by Michael Tokarev 4 days, 14 hours ago
On 11/17/26 02:23, Philippe Mathieu-Daudé wrote:

> Tommaso Califano (3):
>    hw/usb/dev-mtp: Fix recursive delete of directories
>    hw/usb/dev-mtp: Check length of class control request
>    hw/usb/dev-mtp: Stop processing SendObjectInfo after an error

Hi!

Philippe, there were a 7-patch series by Tommaso, grouped into a
single patch set because they touch the same file and all together
fix a single issue --
   https://gitlab.com/qemu-project/qemu/-/work_items/4529

Did you omit the other 4 changes because of the review comments?

The original patchset cover letter is
   https://lore.kernel.org/qemu-devel/20261112174907.158825-1-tcalifano@redhat.com/

Thanks,

/mjt

Re: [PULL 00/22] Misc TCG & HW patches for 2026-11-17
Posted by Philippe Mathieu-Daudé 4 days, 13 hours ago
On 18/11/26 14:43, Michael Tokarev wrote:
> On 11/17/26 02:23, Philippe Mathieu-Daudé wrote:
> 
>> Tommaso Califano (3):
>>    hw/usb/dev-mtp: Fix recursive delete of directories
>>    hw/usb/dev-mtp: Check length of class control request
>>    hw/usb/dev-mtp: Stop processing SendObjectInfo after an error
> 
> Hi!
> 
> Philippe, there were a 7-patch series by Tommaso, grouped into a
> single patch set because they touch the same file and all together
> fix a single issue --
>    https://gitlab.com/qemu-project/qemu/-/work_items/4529

I missed all are needed for the issue to be fixed :/

> Did you omit the other 4 changes because of the review comments?

Yeah, as individual fixes they seems worthwhile in the release,
unfortunately I couldn't merge all of them because the comments
were not addressed by the time we had to tag the RC.

> 
> The original patchset cover letter is
>    https://lore.kernel.org/qemu-devel/20261112174907.158825-1- 
> tcalifano@redhat.com/
> 
> Thanks,
> 
> /mjt
> 


Re: [PULL 00/22] Misc TCG & HW patches for 2026-11-17
Posted by Tommaso Califano 4 days, 11 hours ago
Hi,

On Wed Nov 18, 2026 at 3:45 PM CET, Philippe Mathieu-Daudé wrote:
> On 18/11/26 14:43, Michael Tokarev wrote:
>> On 11/17/26 02:23, Philippe Mathieu-Daudé wrote:
>> 
>>> Tommaso Califano (3):
>>>    hw/usb/dev-mtp: Fix recursive delete of directories
>>>    hw/usb/dev-mtp: Check length of class control request
>>>    hw/usb/dev-mtp: Stop processing SendObjectInfo after an error
>> 
>> Hi!
>> 
>> Philippe, there were a 7-patch series by Tommaso, grouped into a
>> single patch set because they touch the same file and all together
>> fix a single issue --
>>    https://gitlab.com/qemu-project/qemu/-/work_items/4529
>
> I missed all are needed for the issue to be fixed :/
>

Since this issue covers multiple independent bugs, feel free to
cherry-pick only the commits you want. I’ll follow up with a new series
for the rest, and either open a new GitLab issue for the remaining bugs
or reopen the existing one once it auto-closes.

>> Did you omit the other 4 changes because of the review comments?
>
> Yeah, as individual fixes they seems worthwhile in the release,
> unfortunately I couldn't merge all of them because the comments
> were not addressed by the time we had to tag the RC.
>

Unfortunately, I just realized when (and what) the RC date is, and I had
been holding off a bit waiting for reviews :(

Regards,
Tommaso