distro_bootcmd: refactor virtio to support PCI block devices
authorDavid Abdurachmanov <david.abdurachmanov@gmail.com>
Mon, 22 Jul 2019 08:38:11 +0000 (11:38 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 24 Jul 2019 18:15:38 +0000 (14:15 -0400)
commitf0ebcf8c17c086cfc96914ee2e6c5210ab4551d5
tree3447cf41ac0063d61250322472fbb2285652cbec
parent26557d1025eff712a5fd5ff98cfd831727bdd009
distro_bootcmd: refactor virtio to support PCI block devices

Starting libvirt v5.3.0 with QEMU 4.0.0 use of PCI is automatic
and thus storage is connected via PCI, which is not visible to
U-Boot out-of-the-box.

Refactor to do "pci enum" followed by "virtio scan" to see PCI
connected storage, and allow bootloader to load kernel and
initramfs images.

Tested with Fedora/RISCV using releases: libvirt 5.4.0 & 5.5.0,
QEMU 4.0.0 and U-Boot 2019.07 RC4.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
include/config_distro_bootcmd.h