qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 06/22] hw/arm: Select VIRTIO_BLK for virt machine


From: Paolo Bonzini
Subject: Re: [PATCH 06/22] hw/arm: Select VIRTIO_BLK for virt machine
Date: Wed, 3 May 2023 19:21:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1

On 5/3/23 11:12, Alex Bennée wrote:
From: Fabiano Rosas<farosas@suse.de>

The virt machine has IF_VIRTIO as block_default_type, which causes the
generic code to try to create a virtio-blk-pci device pair at
configure_blockdev()/qemu_create_cli_devices().

Select VIRTIO_BLK and VIRTIO_PCI from CONFIG_ARM_VIRT to avoid errors
when PCI_DEVICES=n (due to e.g. --without-default-devices):

$ ./qemu-system-aarch64 -M virt -accel tcg -cpu max -nodefaults -cdrom foo.qcow2
qemu-system-aarch64: -cdrom foo.qcow2: 'virtio-blk' (alias
'virtio-blk-pci') is not a valid device model name

This is also not needed. It doesn't matter what's the default - it's possible to create a machine without block devices at all, therefore VIRTIO_BLK should not be selected.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]