Public bug reported:

qemu-system-riscv64   -machine virt,acpi=on,aia=aplic-imsic  -accel kvm
-m 4G -smp cpus=2   -nographic   -drive
if=pflash,format=raw,unit=0,file=/usr/share/qemu-efi-
riscv64/RISCV_VIRT_CODE.fd,readonly=on   -drive
if=pflash,format=raw,unit=1,file=RISCV_VIRT_VARS.fd,readonly=off
-netdev user,id=net0   -device virtio-net-device,netdev=net0   -device
virtio-rng-pci   -drive file=ubuntu-26.04-preinstalled-server-
riscv64.img,format=raw,if=virtio

leads to an error

qemu-system-riscv64: KVM AIA: failed to set number of input irq lines

Here is a related patch series:
https://lore.kernel.org/all/[email protected]/

An alternative patch:
https://lore.kernel.org/qemu-riscv/[email protected]/
--- 
ProblemType: Bug
ApportVersion: 2.36.0-0ubuntu1
Architecture: riscv64
CasperMD5CheckResult: pass
CurrentDmesg: Error: command ['dmesg'] failed with exit code 1: dmesg: read 
kernel buffer failed: Operation not permitted
DistroRelease: Ubuntu 26.10
InstallationDate: Installed on 2026-11-10 (3 days ago)
InstallationMedia: Ubuntu-Server 26.10 "Stonking Stingray" - Official riscv64 
(20261012.1)
KvmCmdLine: COMMAND         STAT  EUID  RUID     PID    PPID %CPU COMMAND
Lspci-vt:
 -[0000:00]---00.0-[01]----00.0  Samsung Electronics Co Ltd NVMe SSD Controller 
S4LV008[Pascal]
 -[0003:00]---00.0-[01]----00.0  SK hynix Gold P31/BC711/PC711 NVMe Solid State 
Drive
 -[0004:00]---00.0-[01]----00.0  Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 
802.11ax Wireless Network Controller
MachineType: SpacemiT k3_com260_ifx
NonfreeKernelModules: zfs
Package: qemu (not installed)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.3.0-10-generic 
root=UUID=3ebefdae-a5bf-4c11-9bac-6910a9867f5b ro 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
ProcVersionSignature: Ubuntu 7.3.0-10.10.1-generic 7.3.0
RebootRequiredPkgs: Error: path contained symlinks.
Tags: stonking
Uname: Linux 7.3.0-10-generic riscv64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sudo users
_MarkForUpload: True
acpidump:
 
dmi.bios.date: 10/08/2026
dmi.bios.vendor: SPACEMIT
dmi.bios.version: 0.0.9-5
dmi.board.asset.tag: Not Specified
dmi.board.name: k3_com260_ifx
dmi.board.vendor: SpacemiT
dmi.board.version: MPK3
dmi.chassis.asset.tag: Not Specified
dmi.chassis.type: 0
dmi.chassis.vendor: Not Specified
dmi.chassis.version: Not Specified
dmi.modalias: 
dmi:bvnSPACEMIT:bvr0.0.9-5:bd10/08/2026:svnSpacemiT:pnk3_com260_ifx:pvrNotSpecified:rvnSpacemiT:rnk3_com260_ifx:rvrMPK3:cvnNotSpecified:ct0:cvrNotSpecified:skuMPK3:pfaK3:
dmi.product.family: K3
dmi.product.name: k3_com260_ifx
dmi.product.sku: MPK3
dmi.product.version: Not Specified
dmi.sys.vendor: SpacemiT

** Affects: qemu (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: qemu (Ubuntu Resolute)
     Importance: Undecided
         Status: New

** Affects: qemu (Ubuntu Stonking)
     Importance: Undecided
         Status: New

** Affects: qemu (Ubuntu Tenacious)
     Importance: Undecided
         Status: New


** Tags: apport-collected stonking

** Description changed:

  qemu-system-riscv64   -machine virt,acpi=on,aia=aplic-imsic  -accel kvm
  -m 4G -smp cpus=2   -nographic   -drive
  if=pflash,format=raw,unit=0,file=/usr/share/qemu-efi-
  riscv64/RISCV_VIRT_CODE.fd,readonly=on   -drive
  if=pflash,format=raw,unit=1,file=RISCV_VIRT_VARS.fd,readonly=off
  -netdev user,id=net0   -device virtio-net-device,netdev=net0   -device
  virtio-rng-pci   -drive file=ubuntu-26.04-preinstalled-server-
  riscv64.img,format=raw,if=virtio
  
  leads to an error
  
  qemu-system-riscv64: KVM AIA: failed to set number of input irq lines
  
  Here is a related patch series:
  https://lore.kernel.org/all/[email protected]/
+ 
+ An alternative patch:
+ 
https://lore.kernel.org/qemu-riscv/[email protected]/

** Tags added: apport-collected stonking

** Description changed:

  qemu-system-riscv64   -machine virt,acpi=on,aia=aplic-imsic  -accel kvm
  -m 4G -smp cpus=2   -nographic   -drive
  if=pflash,format=raw,unit=0,file=/usr/share/qemu-efi-
  riscv64/RISCV_VIRT_CODE.fd,readonly=on   -drive
  if=pflash,format=raw,unit=1,file=RISCV_VIRT_VARS.fd,readonly=off
  -netdev user,id=net0   -device virtio-net-device,netdev=net0   -device
  virtio-rng-pci   -drive file=ubuntu-26.04-preinstalled-server-
  riscv64.img,format=raw,if=virtio
  
  leads to an error
  
  qemu-system-riscv64: KVM AIA: failed to set number of input irq lines
  
  Here is a related patch series:
  https://lore.kernel.org/all/[email protected]/
  
  An alternative patch:
  
https://lore.kernel.org/qemu-riscv/[email protected]/
+ --- 
+ ProblemType: Bug
+ ApportVersion: 2.36.0-0ubuntu1
+ Architecture: riscv64
+ CasperMD5CheckResult: pass
+ CurrentDmesg: Error: command ['dmesg'] failed with exit code 1: dmesg: read 
kernel buffer failed: Operation not permitted
+ DistroRelease: Ubuntu 26.10
+ InstallationDate: Installed on 2026-11-10 (3 days ago)
+ InstallationMedia: Ubuntu-Server 26.10 "Stonking Stingray" - Official riscv64 
(20261012.1)
+ KvmCmdLine: COMMAND         STAT  EUID  RUID     PID    PPID %CPU COMMAND
+ Lspci-vt:
+  -[0000:00]---00.0-[01]----00.0  Samsung Electronics Co Ltd NVMe SSD 
Controller S4LV008[Pascal]
+  -[0003:00]---00.0-[01]----00.0  SK hynix Gold P31/BC711/PC711 NVMe Solid 
State Drive
+  -[0004:00]---00.0-[01]----00.0  Realtek Semiconductor Co., Ltd. RTL8852BE 
PCIe 802.11ax Wireless Network Controller
+ MachineType: SpacemiT k3_com260_ifx
+ NonfreeKernelModules: zfs
+ Package: qemu (not installed)
+ ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.3.0-10-generic 
root=UUID=3ebefdae-a5bf-4c11-9bac-6910a9867f5b ro 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
+ ProcVersionSignature: Ubuntu 7.3.0-10.10.1-generic 7.3.0
+ RebootRequiredPkgs: Error: path contained symlinks.
+ Tags: stonking
+ Uname: Linux 7.3.0-10-generic riscv64
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups: adm cdrom dip lpadmin lxd plugdev sudo users
+ _MarkForUpload: True
+ acpidump:
+  
+ dmi.bios.date: 10/08/2026
+ dmi.bios.vendor: SPACEMIT
+ dmi.bios.version: 0.0.9-5
+ dmi.board.asset.tag: Not Specified
+ dmi.board.name: k3_com260_ifx
+ dmi.board.vendor: SpacemiT
+ dmi.board.version: MPK3
+ dmi.chassis.asset.tag: Not Specified
+ dmi.chassis.type: 0
+ dmi.chassis.vendor: Not Specified
+ dmi.chassis.version: Not Specified
+ dmi.modalias: 
dmi:bvnSPACEMIT:bvr0.0.9-5:bd10/08/2026:svnSpacemiT:pnk3_com260_ifx:pvrNotSpecified:rvnSpacemiT:rnk3_com260_ifx:rvrMPK3:cvnNotSpecified:ct0:cvrNotSpecified:skuMPK3:pfaK3:
+ dmi.product.family: K3
+ dmi.product.name: k3_com260_ifx
+ dmi.product.sku: MPK3
+ dmi.product.version: Not Specified
+ dmi.sys.vendor: SpacemiT

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174362

Title:
  qemu-system-riscv64: KVM AIA: failed to set number of input irq lines

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2174362/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to