Skip to contentSkip to conversation

riscv: qemu: enable booting on a second virtio device

PATCH In review Aurelien Jarno 2 participants 2 messages Jan 10, 2024 – Jan 31, 2024 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: qemu: enable booting on a second virtio device

QEMU RISC-V supports multiple virtio devices, but only tries to boot to the first one. Enable support for a second virtio device, that is useful for instance to boot on a disk image + an installer. Ideally that should be made dynamic, but that's a first step.

---
 include/configs/qemu-riscv.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/qemu-riscv.h +1 -0
index 584559cfa3..2f594bfcfd 100644
@@ -23,6 +23,7 @@
 
 #define BOOT_TARGET_DEVICES(func) \
 	func(VIRTIO, virtio, 0) \
+	func(VIRTIO, virtio, 1) \
 	func(SCSI, scsi, 0) \
 	func(DHCP, dhcp, na)
 
Signature · 1 line
2.42.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Aurelien Jarno

QEMU RISC-V supports multiple virtio devices, but only tries to boot to the first one. Enable support for a second virtio device, that is useful for instance to boot on a disk image + an installer. Ideally that should be made dynamic, but that's a first step.

---
 include/configs/qemu-riscv.h | 1 +
 1 file changed, 1 insertion(+)