2
0
Fork 0
mirror of https://github.com/AsahiLinux/u-boot synced 2024-12-12 14:23:00 +00:00
u-boot/drivers/virtio
Simon Glass a710f5b2eb bootstd: Correct virtio block-device handling
At present virtio tries to attach QEMU services to a bootdev device, which
cannot work. Add a check for this.

Also use bootdev_setup_sibling_blk() to create the bootdev device, since
it allows the correct name to be used and bootdev_get_sibling_blk() to
work as expected.

The bootdev is not created on sandbox since it does have a real virtio
device and it is not possible to read blocks.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: a60f7a3e35 ("bootstd: Add a virtio bootdev")
Reported-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2023-02-06 13:04:53 -05:00
..
Kconfig blk: Enable CONFIG_BLK for all media 2022-09-16 11:05:00 -04:00
Makefile virtio: pci: Allow exclusion of legacy driver 2022-05-03 15:50:45 -04:00
virtio-uclass.c bootstd: Correct virtio block-device handling 2023-02-06 13:04:53 -05:00
virtio_blk.c virtio: Add some debugging 2023-02-06 13:04:53 -05:00
virtio_blk.h virtio: Add block driver support 2018-11-14 09:16:27 -08:00
virtio_mmio.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
virtio_mmio.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
virtio_net.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
virtio_net.h virtio: Add net driver support 2018-11-14 09:16:27 -08:00
virtio_pci.h virtio: Add virtio over pci transport driver 2018-11-14 09:16:28 -08:00
virtio_pci_legacy.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
virtio_pci_modern.c virtio: pci: fix bug of virtio_pci_map_capability 2022-09-15 09:55:30 -04:00
virtio_ring.c virtio_ring: Check used descriptors are chain heads 2022-06-08 09:24:03 -04:00
virtio_rng.c virtio: rng: Check length before copying 2022-06-08 09:24:04 -04:00
virtio_sandbox.c virtio: Add a block device 2023-01-23 18:11:40 -05:00