vdev virtio-blk

Provide the standard VirtIO interface for block devices

Synopsis:

vdev virtio-blk options

vdev virtio-blk

Options:

delayed seconds|forever
If specified, delay opening the device in the host until it is first referenced by the guest.
If the device isn't found in the host, continue trying for the number of seconds specified by seconds before timing out (e.g., delayed 5). If seconds is set to 0 (e.g., delayed 0), try only once to find the device on the host. If the argument is set to “forever” (e.g., delayed forever), never time out (i.e., keep trying to find the device on the host).
hostdev [<]host_filename
Provides the name of the host file to use for the contents of the device.
A “<” symbol in front of host_filename indicates that device contents will be enforced as read-only (e.g., hostdev </dev/hd0 will make /dev/hd0 read-only to the guest). The default (no <) is read/write access.
intr intr
Signal intr for device interrupts. Not required when the vdev appears as a PCI device.
legacy
Provide the VirtIO legacy interface (0.9.5) rather than the 1.0 standard version.
loc addr
Set the base address of the device registers to addr. Not required if the vdev appears as a PCI device.

For a list of options available to all vdevs, see Common vdev options at the beginning of this chapter.

Description:

ARM and x86. Normally this device appears as a PCI device, but if you specify the loc and intr options, the guest will see it as a memory-mapped I/O device at the specified location.