|Home > Fast Models components > Peripheral components > VirtioBlockDevice|
virtio block device. This model is written in C++.
VirtioBlockDevice contains the following CADI targets:
VirtioBlockDevice contains the following MTI components:
VirtioBlockDevice implements a block device that can be accessed from the simulated OS if
it has an appropriate driver. Similarly to the VirtioP9Device, this component is
targeted primarily at Linux, which has a built-in Virtio block driver. VirtioBlockDevice
allows you to use a file on the host that you specify using the
image_path parameter, as a hard drive in the simulated OS.
Unlike the VirtioP9Device, you should not need to carry out any special set up to use
VirtioBlockDevice on VE or Base platforms, because it is usually already included in the
device trees. Set the
image_path parameter to point to your image, and
then on Linux it is available as a block device, usually /dev/vda,
which you then use like any other hard drive.
Table 3-264 Ports
||Master||Virtio device sets interrupt to signal completion.|
||Slave||Virtio MMIO control/config/status registers.|
||Master||Virtio device performs DMA accesses via master.|