Public bug reported: Host OS: Focal, 20.04(5.4.0-52-generic) QEMU: 1:4.2-3ubuntu6.8 OpenSBI: 0.8.1
Guest VM: Focal(5.4 Kernel) When the VM is instructed to reboot, via systemctl or without systemctl I can reproduce 100% a soft lockup. [ 107.637699] reboot: Restarting system [ 132.687087] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-shutdow:1] [ 132.687751] Modules linked in: ofpart redboot cmdlinepart cfi_cmdset_0001 cfi_probe cfi_util gen_probe physmap map_funcs chipreg mtd virtio_rng uio_pdrv_genirq uio sch_fq_codel drm drm_panel_orientation_quirks ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear virtio_net net_failover failover virtio_blk [ 132.690237] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.4.0-24-generic #28-Ubuntu [ 132.690777] sepc: ffffffe0000b658e ra : ffffffe0000b658e sp : ffffffe1f5badd30 [ 132.691226] gp : ffffffe000d51a40 tp : ffffffe1f5bb8b80 t0 : ffffffe000d69248 [ 132.691658] t1 : ffffffe0004f053c t2 : 000000000000000a s0 : ffffffe1f5badd50 [ 132.692085] s1 : 0000000000000000 a0 : 0000000000000000 a1 : 0000000000000000 [ 132.692530] a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000000000000000 [ 132.692945] a5 : 0000000000000000 a6 : 000000000000076d a7 : 0000000000000137 [ 132.693368] s2 : 0000000028121969 s3 : ffffffe000c6abf0 s4 : fffffffffee1dead [ 132.693825] s5 : 6d07a9c2f20a9100 s6 : 0000003fffc539d0 s7 : 0000003fffc53cf8 [ 132.694271] s8 : 0000000000000fff s9 : fffffffffffff000 s10: 0000000000000000 [ 132.694730] s11: 0000000000000000 t3 : 0000000000000000 t4 : 000000000003ab28 [ 132.695177] t5 : ffffffe000d52928 t6 : ffffffe000d61588 [ 132.695519] sstatus: 0000000000000120 sbadaddr: 0000000000000000 scause: 8000000000000005 The full log is attached. Command to launch VM and utilize existing bridged network device. qemu-system-riscv64 -nographic -machine virt -m 8G -smp 8 \ -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf \ -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf \ -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-device,rng=rng0 \ -append "console=ttyS0 rw root=/dev/vda1" \ -device virtio-blk-device,drive=hd0 -drive file=riscv64-focal-ubuntu.img,format=raw,id=hd0 \ -device virtio-net-device,netdev=eth0 -netdev tap,id=eth0 The Soft Lockup is also exhibited on Groovy using the 5.8.0-7 kernel Welcome to Ubuntu 20.10 (GNU/Linux 5.8.0-7-generic riscv64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Last login: Fri Nov 20 17:29:12 UTC 2020 on ttyS0 root@galrog:~# reboot -f Rebooting. [ 45.812221] reboot: Restarting system [ 72.085848] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [reboot:404] [ 100.086371] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [reboot:404] [ 105.818281] rcu: INFO: rcu_sched self-detected stall on CPU [ 105.819258] rcu: 0-....: (14998 ticks this GP) idle=f82/1/0x4000000000000002 softirq=1584/1584 fqs=7362 ** Affects: qemu (Ubuntu) Importance: Undecided Status: New ** Attachment added: "riscv64-reboot.txt" https://bugs.launchpad.net/bugs/1905066/+attachment/5436395/+files/riscv64-reboot.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1905066 Title: qemu-system-riscv64 soft lockup while restarting/shutdown vm To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1905066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs