diff mbox series

riscv: qemu: enable booting on a second virtio device

Message ID 20240110202656.984622-1-aurelien@aurel32.net
State Accepted
Commit cbc45cb5964297e682f072e56336288a8b5c881a
Delegated to: Andes
Headers show
Series riscv: qemu: enable booting on a second virtio device | expand

Commit Message

Aurelien Jarno Jan. 10, 2024, 8:26 p.m. UTC
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.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
 include/configs/qemu-riscv.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Leo Liang Jan. 31, 2024, 2:57 a.m. UTC | #1
On Wed, Jan 10, 2024 at 09:26:53PM +0100, Aurelien Jarno wrote:
> 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.
> 
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> ---
>  include/configs/qemu-riscv.h | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
diff mbox series

Patch

diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h
index 584559cfa3..2f594bfcfd 100644
--- a/include/configs/qemu-riscv.h
+++ b/include/configs/qemu-riscv.h
@@ -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)