Public bug reported:
qemu-system-riscv64 -machine virt -bios none -kernel kernel/kernel -m
128M -smp 3 -nographic -global virtio-mmio.force-legacy=false -drive
file=fs.img,if=none,format=raw,id=x0 -device virtio-blk-
device,drive=x0,bus=virtio-mmio-bus.0
The above command hangs and seems to consume a lot of CPU.
It is obtained from `make qemu` in the repo
git://g.csail.mit.edu/xv6-labs-2025
Steps to reproduce:
1. Install Ubuntu 25.10 on bare metal, container, or VM (I tried all 3)
2. sudo apt-get install git build-essential gdb-multiarch qemu-system-misc
gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu
3. git clone git://g.csail.mit.edu/xv6-labs-2025
4. cd xv6-labs-2025
5. make qemu
# System Details Report
---
## Report details
- **Date generated:** 2025-10-16 20:00:24
## Hardware Information:
- **Hardware Model:** Apple Inc. MacBookPro14,1
- **Memory:** 8.0 GiB
- **Processor:** Intel® Core™ i5-7360U × 4
- **Graphics:** Intel® Iris® Plus Graphics
640 (Kaby Lake GT3e) (KBL GT3)
- **Disk Capacity:** 121.3 GB
## Software Information:
- **Firmware Version:** 529.140.2.0.0
- **OS Name:** Ubuntu 25.10
- **OS Build:** (null)
- **OS Type:** 64-bit
- **GNOME Version:** 49
- **Windowing System:** Wayland
- **Kernel Version:** Linux 6.17.0-5-generic
ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: qemu-system-riscv 1:10.1.0+ds-5ubuntu2
ProcVersionSignature: Ubuntu 6.17.0-5.5-generic 6.17.0-rc7
Uname: Linux 6.17.0-5-generic x86_64
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 16 19:53:43 2025
InstallationDate: Installed on 2025-10-16 (0 days ago)
InstallationMedia: Ubuntu 25.10 "Questing Quokka" - Release amd64 (20251007)
KvmCmdLine: COMMAND STAT EUID RUID PID PPID %CPU COMMAND
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Lsusb-t:
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/12p, 480M
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 480M
/: Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
MachineType: Apple Inc. MacBookPro14,1
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.17.0-5-generic
root=UUID=d8a47149-4861-4be5-a4b1-2ca206a54faf ro quiet splash
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
vt.handoff=7
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/23/2024
dmi.bios.release: 0.1
dmi.bios.vendor: Apple Inc.
dmi.bios.version: 529.140.2.0.0
dmi.board.name: Mac-B4831CEBD52A0C4C
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro14,1
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-B4831CEBD52A0C4C
dmi.modalias:
dmi:bvnAppleInc.:bvr529.140.2.0.0:bd06/23/2024:br0.1:svnAppleInc.:pnMacBookPro14,1:pvr1.0:rvnAppleInc.:rnMac-B4831CEBD52A0C4C:rvrMacBookPro14,1:cvnAppleInc.:ct9:cvrMac-B4831CEBD52A0C4C:sku:
dmi.product.family: MacBook Pro
dmi.product.name: MacBookPro14,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.
** Affects: qemu (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug questing wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2128545
Title:
qemu-system-riscv: qemu-system-riscv64 hangs emulating xv6
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2128545/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs