]> git.dujemihanovic.xyz Git - u-boot.git/commit
virtio: pci: Support non-legacy PCI transport device
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:23 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:28 +0000 (09:16 -0800)
commit550435edf810ad0a96a50e6a94d4ebf693fc5913
tree3146d991760fad1a33d4ffca3b50680b4056d850
parent7a20614eb292c48b4a42c3b5314b26d975aa84b4
virtio: pci: Support non-legacy PCI transport device

By default QEMU creates legacy PCI transport devices, but we can
ask QEMU to create non-legacy one if we pass additional device
property/value pairs in the command line:

  -device virtio-blk-pci,disable-legacy=true,disable-modern=false

This adds a new driver driver to support non-legacy (modern) device
mode. Previous driver/file name is changed accordingly.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/virtio/Makefile
drivers/virtio/virtio_pci_legacy.c [moved from drivers/virtio/virtio_pci.c with 98% similarity]
drivers/virtio/virtio_pci_modern.c [new file with mode: 0644]