How au-ts/libvmm works
libvmm is a seL4/Microkit virtual-machine monitor library. A VMM uses it to create and manage a guest, select architecture-specific boot and interrupt facilities, and expose guest devices through VirtIO transports. The README documents Linux and EFI boot, ARM PSCI/GIC support, x86 ACPI/APIC, and storage, networking, and console capabilities. The tree also contains a Linux UIO sound driver; its sampled code maps shared queues and updates streams. Most library wiring was not sampled, so only documented relationships are shown.
Main entry points: guest.h Guest management · virtio.c VirtIO core · stream.c ALSA stream handling · main.c Linux UIO sound driver
Components 22
Guest lifecycle
- VM management API
include/libvmm/libvmm.h - Guest management
include/libvmm/guest.h
Architecture support
- ARM Linux boot
src/arch/aarch64/linux.c - PSCI multicore
src/arch/aarch64/psci.c - Hardware GIC
src/arch/aarch64/vgic - x86 Linux boot
src/arch/x86_64/linux.c - EFI boot
src/arch/x86_64/uefi.c - ACPI tables
src/arch/x86_64/acpi.c - Software APIC
src/arch/x86_64/apic.c
Guest devices
- PCI bus
src/pci.c - VirtIO core
src/virtio/virtio.c - PCI transport
src/virtio/pci.c - MMIO transport
src/virtio/mmio.c - Block device
src/virtio/block.c - Network device
src/virtio/net.c - Console device
src/virtio/console.c - VirtIO sound
src/virtio/sound.c
Sound UIO tool
- Linux UIO sound driver
tools/linux/uio_drivers/snd/main.c - ALSA stream handling
tools/linux/uio_drivers/snd/stream.c - Format conversion
tools/linux/uio_drivers/snd/convert.c
Other components
- VMM application
- Host ALSA
Connections 21
- VMM application → VM management API: uses
- VM management API → Guest management: manages
- Guest management → ARM Linux boot: boots Linux
- Guest management → PSCI multicore: starts VCPUs
- Guest management → Hardware GIC: virtualizes GIC
- Guest management → x86 Linux boot: boots Linux
- Guest management → EFI boot: boots EFI
- Guest management → ACPI tables: provides ACPI
- Guest management → Software APIC: virtualizes APIC
- Guest management → PCI transport: exposes transport
- Guest management → MMIO transport: exposes transport
- PCI transport → VirtIO core: transports devices
- MMIO transport → VirtIO core: transports devices
- VirtIO core → Block device: serves storage
- VirtIO core → Network device: serves networking
- VirtIO core → Console device: serves console
- VirtIO core → VirtIO sound: serves sound
- Linux UIO sound driver → ALSA stream handling: updates streams
tools/linux/uio_drivers/snd/main.c - ALSA stream handling → Format conversion: converts formats
tools/linux/uio_drivers/snd/stream.c - ALSA stream handling → Host ALSA: uses ALSA
- Linux UIO sound driver → VirtIO sound: handles device queues