]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/riscv/virt.c: Make block devices default to virtio
authorSunil V L <sunilvl@ventanamicro.com>
Thu, 20 Jun 2024 06:47:18 +0000 (12:17 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 26 Jun 2024 13:00:59 +0000 (23:00 +1000)
commit4406ba2b5efce6af64905f827ca244f699db8170
tree490c0161eb8056ea129691b3808d5a980e749f73
parent3adf4def19c61ae15611af15a5291d13a1c9c546
hw/riscv/virt.c: Make block devices default to virtio

RISC-V virt is currently missing default type for block devices. Without
this being set, proper backend is not created when option like -cdrom
is used. So, make the virt board's default block device type be
IF_VIRTIO similar to other architectures.

We also need to set no_cdrom to avoid getting a default cdrom device.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20240620064718.275427-1-sunilvl@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c