2023-10-18 15:02:14 |
Heinrich Schuchardt |
bug |
|
|
added bug |
2023-10-18 15:04:53 |
Heinrich Schuchardt |
attachment added |
|
Crash file https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2039700/+attachment/5710835/+files/qemu-system-riscv64.1000.crash.tgz |
|
2023-10-18 15:23:57 |
Heinrich Schuchardt |
qemu (Ubuntu): assignee |
|
Heinrich Schuchardt (xypron) |
|
2023-10-18 15:24:18 |
Heinrich Schuchardt |
description |
I have started a virtual machine on amd64 with:
/usr/bin/qemu-system-riscv64 -machine virt -nographic -m 8192 -smp 8 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -device virtio-rng-pci -drive file=ubuntu-23.10-preinstalled-server-riscv64.img,format=raw,if=virtio
That VM provides the hypervisor extension needed for KVM. I try to launch a nested VM with:
qemu-system-riscv64 -machine virt -nographic -m 768 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -device virtio-rng-pci -drive file=ubuntu-23.10-preinstalled-server-riscv64.img,format=raw,if=virtio -accel kvm -cpu host
This leads to a crash
ERROR:target/riscv/cpu.c:313:satp_mode_str: code should not be reached
Bail out! ERROR:target/riscv/cpu.c:313:satp_mode_str: code should not be reached
Aborted (core dumped)
ubuntu@ubuntu:~$ ls /var/crash/
_usr_bin_qemu-system-riscv64.1000.crash
Nested emulation was working on kinetic.
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: qemu-system-misc 1:8.0.4+dfsg-1ubuntu3
ProcVersionSignature: Ubuntu 6.5.0-9.9.1-generic 6.5.3
Uname: Linux 6.5.0-9-generic riscv64
ApportVersion: 2.27.0-0ubuntu5
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20231010
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Wed Oct 18 14:56:16 2023
KvmCmdLine: COMMAND STAT EUID RUID PID PPID %CPU COMMAND
Lspci-vt:
-[0000:00]-+-00.0 Red Hat, Inc. QEMU PCIe Host bridge
+-01.0 Red Hat, Inc. Virtio RNG
\-02.0 Red Hat, Inc. Virtio block device
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=vt220
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-9-generic root=LABEL=cloudimg-rootfs ro efi=debug earlycon
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump: |
I have started a virtual machine on amd64 with:
/usr/bin/qemu-system-riscv64 -machine virt -nographic -m 8192 -smp 8 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -device virtio-rng-pci -drive file=ubuntu-23.10-preinstalled-server-riscv64.img,format=raw,if=virtio
That VM provides the hypervisor extension needed for KVM. I try to launch a nested VM with:
qemu-system-riscv64 -machine virt -nographic -m 768 -smp 4 -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -device virtio-rng-pci -drive file=ubuntu-23.10-preinstalled-server-riscv64.img,format=raw,if=virtio -accel kvm -cpu host
This leads to a crash
ERROR:target/riscv/cpu.c:313:satp_mode_str: code should not be reached
Bail out! ERROR:target/riscv/cpu.c:313:satp_mode_str: code should not be reached
Aborted (core dumped)
ubuntu@ubuntu:~$ ls /var/crash/
_usr_bin_qemu-system-riscv64.1000.crash
Nested emulation was working on kinetic.
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: qemu-system-misc 1:8.0.4+dfsg-1ubuntu3
ProcVersionSignature: Ubuntu 6.5.0-9.9.1-generic 6.5.3
Uname: Linux 6.5.0-9-generic riscv64
ApportVersion: 2.27.0-0ubuntu5
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20231010
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Wed Oct 18 14:56:16 2023
KvmCmdLine: COMMAND STAT EUID RUID PID PPID %CPU COMMAND
Lspci-vt:
-[0000:00]-+-00.0 Red Hat, Inc. QEMU PCIe Host bridge
+-01.0 Red Hat, Inc. Virtio RNG
\-02.0 Red Hat, Inc. Virtio block device
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=vt220
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-9-generic root=LABEL=cloudimg-rootfs ro efi=debug earlycon
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump: |
|
2023-10-18 15:27:24 |
Heinrich Schuchardt |
description |
I have started a virtual machine on amd64 with:
/usr/bin/qemu-system-riscv64 -machine virt -nographic -m 8192 -smp 8 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -device virtio-rng-pci -drive file=ubuntu-23.10-preinstalled-server-riscv64.img,format=raw,if=virtio
That VM provides the hypervisor extension needed for KVM. I try to launch a nested VM with:
qemu-system-riscv64 -machine virt -nographic -m 768 -smp 4 -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -device virtio-rng-pci -drive file=ubuntu-23.10-preinstalled-server-riscv64.img,format=raw,if=virtio -accel kvm -cpu host
This leads to a crash
ERROR:target/riscv/cpu.c:313:satp_mode_str: code should not be reached
Bail out! ERROR:target/riscv/cpu.c:313:satp_mode_str: code should not be reached
Aborted (core dumped)
ubuntu@ubuntu:~$ ls /var/crash/
_usr_bin_qemu-system-riscv64.1000.crash
Nested emulation was working on kinetic.
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: qemu-system-misc 1:8.0.4+dfsg-1ubuntu3
ProcVersionSignature: Ubuntu 6.5.0-9.9.1-generic 6.5.3
Uname: Linux 6.5.0-9-generic riscv64
ApportVersion: 2.27.0-0ubuntu5
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20231010
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Wed Oct 18 14:56:16 2023
KvmCmdLine: COMMAND STAT EUID RUID PID PPID %CPU COMMAND
Lspci-vt:
-[0000:00]-+-00.0 Red Hat, Inc. QEMU PCIe Host bridge
+-01.0 Red Hat, Inc. Virtio RNG
\-02.0 Red Hat, Inc. Virtio block device
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=vt220
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-9-generic root=LABEL=cloudimg-rootfs ro efi=debug earlycon
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump: |
I have started a virtual machine on amd64 with:
/usr/bin/qemu-system-riscv64 -machine virt -nographic -m 8192 -smp 8 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -device virtio-rng-pci -drive file=ubuntu-23.10-preinstalled-server-riscv64.img,format=raw,if=virtio
That VM provides the hypervisor extension needed for KVM. I try to launch a nested VM with:
qemu-system-riscv64 -machine virt -nographic -m 768 -smp 4 -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -device virtio-rng-pci -drive file=ubuntu-23.10-preinstalled-server-riscv64.img,format=raw,if=virtio -accel kvm -cpu host
This leads to a crash
ERROR:target/riscv/cpu.c:313:satp_mode_str: code should not be reached
Bail out! ERROR:target/riscv/cpu.c:313:satp_mode_str: code should not be reached
Aborted (core dumped)
ubuntu@ubuntu:~$ ls /var/crash/
_usr_bin_qemu-system-riscv64.1000.crash
The error only occurs when specifying -cpu host (which is enumerated with -cpu list).
Nested emulation was working on kinetic with -cpu host.
-bios must not be specified for the secondary VM running on KVM as kvm provides the SBI implementation.
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: qemu-system-misc 1:8.0.4+dfsg-1ubuntu3
ProcVersionSignature: Ubuntu 6.5.0-9.9.1-generic 6.5.3
Uname: Linux 6.5.0-9-generic riscv64
ApportVersion: 2.27.0-0ubuntu5
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20231010
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Wed Oct 18 14:56:16 2023
KvmCmdLine: COMMAND STAT EUID RUID PID PPID %CPU COMMAND
Lspci-vt:
-[0000:00]-+-00.0 Red Hat, Inc. QEMU PCIe Host bridge
+-01.0 Red Hat, Inc. Virtio RNG
\-02.0 Red Hat, Inc. Virtio block device
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=vt220
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-9-generic root=LABEL=cloudimg-rootfs ro efi=debug earlycon
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump: |
|
2023-10-18 16:03:31 |
Heinrich Schuchardt |
qemu (Ubuntu): assignee |
Heinrich Schuchardt (xypron) |
|
|
2023-10-20 13:29:03 |
Paride Legovini |
qemu (Ubuntu): status |
New |
Triaged |
|
2023-10-20 13:30:34 |
Paride Legovini |
bug |
|
|
added subscriber Ubuntu Server |
2023-10-20 14:51:22 |
Sergio Durigan Junior |
qemu (Ubuntu): assignee |
|
Sergio Durigan Junior (sergiodj) |
|
2023-10-25 14:55:27 |
Sergio Durigan Junior |
tags |
apport-bug cloud-image mantic riscv64 |
apport-bug cloud-image mantic riscv64 server-todo |
|
2023-10-30 20:20:40 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~sergiodj/ubuntu/+source/qemu/+git/qemu/+merge/454830 |
|
2023-10-31 14:50:55 |
Launchpad Janitor |
merge proposal unlinked |
https://code.launchpad.net/~sergiodj/ubuntu/+source/qemu/+git/qemu/+merge/454830 |
|
|
2023-11-29 03:39:25 |
Sergio Durigan Junior |
merge proposal linked |
|
https://code.launchpad.net/~sergiodj/ubuntu/+source/qemu/+git/qemu/+merge/456217 |
|
2023-12-02 07:17:31 |
Heinrich Schuchardt |
marked as duplicate |
|
2044425 |
|
2023-12-11 16:46:37 |
Launchpad Janitor |
qemu (Ubuntu): status |
Triaged |
Fix Released |
|