
From: Simon Glass <sjg@chromium.org> This series introduces support for virtio-fs, a filesystem which provides access to host files from within a QEMU guest OS. A new filesystem driver is created with support for the three uclasses (FS, DIR, FILE). A compatibility layer is added as well, so that the existing cmdline work as expected. Only listing directories and reading files are supported so far. Since sandbox works by using a NULL blk_desc, a workaround is added for now. Once we switch commands (and bootstd!) over to the new filesystem approach, this will go away. It is possible to test this using something like: ./scripts/build-qemu -a x86 -rs -D . then within U-Boot: ls virtio 0 Simon Glass (7): fs: Bring in fuse header file from Linux virtio: Acknowledge devices only when probed virtio: Rename a few legacy-PCI functions virtio: Add top-level functions for virtio-fs virtio: Add support for directories virtio: Add support for files virtio: Plumb virtio-fs into the legacy filesystem code MAINTAINERS | 2 + disk/part.c | 6 + drivers/virtio/Kconfig | 13 + drivers/virtio/Makefile | 1 + drivers/virtio/fs.c | 428 +++++++++ drivers/virtio/fs_compat.c | 163 ++++ drivers/virtio/fs_dir.c | 200 +++++ drivers/virtio/fs_file.c | 136 +++ drivers/virtio/fs_internal.h | 181 ++++ drivers/virtio/virtio-uclass.c | 13 +- drivers/virtio/virtio_pci_legacy.c | 8 +- fs/fs-uclass.c | 25 + fs/fs_legacy.c | 43 +- include/fs.h | 12 + include/fs_common.h | 6 + include/linux/fuse.h | 1289 ++++++++++++++++++++++++++++ include/virtio.h | 1 + include/virtio_fs.h | 82 ++ 18 files changed, 2594 insertions(+), 15 deletions(-) create mode 100644 drivers/virtio/fs.c create mode 100644 drivers/virtio/fs_compat.c create mode 100644 drivers/virtio/fs_dir.c create mode 100644 drivers/virtio/fs_file.c create mode 100644 drivers/virtio/fs_internal.h create mode 100644 include/linux/fuse.h create mode 100644 include/virtio_fs.h -- 2.43.0 base-commit: 0886499b1facb39c23a6ee5a014c192dc881e5e2 branch: qemf