🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #170

Bug#1150345: qemu: autopkgtest failure on riscv64 for hosts with vector extensions

#170
From: Aurelien Jarno
Date: Thu, 08 Oct 2026 20:00
39 lines
3189 bytes
Source: qemu
Version: 1:11.1.2+ds-2
Severity: important
Tags: patch upstream
Control: found -1 1:10.0.11+ds-0+deb13u1

Dear Michael,

As you pointed out on IRC the qemu autopkgtest sometimes fail on riscv64:

| 717s === Checking if /usr/bin/qemu-arm64 can run executables:
| 717s glob with sh: /usr/bin/qemu-arm64 /bin/busybox ash -c "/usr/bin/qemu-arm64 /bin/busybox ls -dCFl debian/*[t]*":
| 717s /bin/busybox: line 0: can't open ash: no such file
| 717s Expected output not found

The full autopkgtest log is available here:
https://ci.debian.net/data/autopkgtest/testing/riscv64/q/qemu/76104339/log.gz

This happens on hosts with CPU which support vector extension. QEMU
detects it and use it. In this particular case, the RISCV-V vector
instructions are used, among other things, to emulate the aarch64 NEON
instructions.

I have found two issues in the TCG RISC-V backend that explain this
issue. I have submitted them upstream as patches:
- https://lore.kernel.org/qemu-devel/20261008181611.3015838-1-aurelien@aurel32.net/
- https://lore.kernel.org/qemu-devel/20261008181647.3015949-1-aurelien@aurel32.net/

I have tested that they fix the autopkgtest failure. Once accepted
upstream, could you please merge them (or a newer version if needed) in
the Debian package?

Note that the issue also affects the version in trixie, and as hardware
with vector instructions is becoming more common, we might also want to
fix it. The patch applies cleanly after adjusting the paths that got
changed as part of the 32-bit host support removal.

Thanks
Aurelien
Technical Details
Message-ID: <NM2rv-4k8A-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Aurelien Jarno <aurel32@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1150345: qemu: autopkgtest failure on riscv64 for hosts with vector extensions
Date: Thu, 08 Oct 2026 22:00:01 +0200
Message-ID: <NM2rv-4k8A-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct  8 19:59:16 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.699
Reply-To: Aurelien Jarno <aurel32@debian.org>, 1150345@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-qemu-devel@lists.alioth.debian.org
X-Debian-Pr-Message: report 1150345
X-Debian-Pr-Package: src:qemu
X-Debian-Pr-Keywords: patch upstream
X-Debian-Pr-Source: qemu
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-User: aurel32
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995759
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 39
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 08 Oct 2026 21:55:30 +0200
X-Original-Message-ID: <179148933037.2967459.18348640617450191302.reportbug@ohm.local>