3bcc17f065
The dataplane code used to be significantly different from the non-dataplane code and therefore had a separate source file. Over time the difference has gotten smaller because the I/O code paths were unified. Nowadays the distinction between the VirtIOBlock and VirtIOBlockDataPlane structs is more of an inconvenience that hinders code simplification. Move hw/block/dataplane/virtio-blk.c into hw/block/virtio-blk.c, merging VirtIOBlockDataPlane's fields into VirtIOBlock. hw/block/virtio-blk.c used VirtIOBlock->dataplane to check if virtio_blk_data_plane_create() was successful. This is not necessary because ->dataplane_started and ->dataplane_disabled can be used instead. This patch makes those changes in order to drop VirtIOBlock->dataplane. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-ID: <20240119135748.270944-2-stefanha@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> |
||
---|---|---|
.. | ||
vdpa-dev.h | ||
vhost-backend.h | ||
vhost-scsi-common.h | ||
vhost-scsi.h | ||
vhost-user-blk.h | ||
vhost-user-device.h | ||
vhost-user-fs.h | ||
vhost-user-gpio.h | ||
vhost-user-i2c.h | ||
vhost-user-rng.h | ||
vhost-user-scmi.h | ||
vhost-user-scsi.h | ||
vhost-user-vsock.h | ||
vhost-user.h | ||
vhost-vdpa.h | ||
vhost-vsock-common.h | ||
vhost-vsock.h | ||
vhost.h | ||
virtio-access.h | ||
virtio-acpi.h | ||
virtio-balloon.h | ||
virtio-blk-common.h | ||
virtio-blk.h | ||
virtio-bus.h | ||
virtio-crypto.h | ||
virtio-dmabuf.h | ||
virtio-gpu-bswap.h | ||
virtio-gpu-pci.h | ||
virtio-gpu-pixman.h | ||
virtio-gpu.h | ||
virtio-input.h | ||
virtio-iommu.h | ||
virtio-md-pci.h | ||
virtio-mem.h | ||
virtio-mmio.h | ||
virtio-net.h | ||
virtio-pci.h | ||
virtio-pmem.h | ||
virtio-rng.h | ||
virtio-scsi.h | ||
virtio-serial.h | ||
virtio.h |