freebsd-dev/sys/dev/virtio/mmio
Colin Percival 0e1f5ab7db virtio_mmio: Support command-line parameters
The Virtio MMIO bus driver was added in 2014 with support for devices
exposed via FDT; in 2018 support was added to discover Virtio MMIO
devices via ACPI tables, as in QEMU.  The Firecracker VMM eschews both
FDT and ACPI, instead presenting device information via kernel command
line arguments of the form virtio_mmio.device=<parameters>.

These command line parameters get converted into kernel environment
variables; this adds support for parsing those variables and attaching
virtio_mmio children to nexus.

There is a case to be made that it would be cleaner to have a new
"cmdlinebus" attached to nexus and virtio_mmio children attached to
that.  A future commit might do that.

Discussed with:	imp, jrtc27
Sponsored by:	https://patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D36189
2022-10-17 23:02:21 -07:00
..
virtio_mmio_acpi.c
virtio_mmio_cmdline.c virtio_mmio: Support command-line parameters 2022-10-17 23:02:21 -07:00
virtio_mmio_fdt.c
virtio_mmio_if.m
virtio_mmio.c virtio_mmio: Improve V1 spec conformance 2022-08-17 15:15:04 -05:00
virtio_mmio.h virtio_mmio: correct offset of VIRTIO_MMIO_CONFIG_GENERATION 2022-08-03 22:54:36 -05:00