How george17c/kvm-vmm works
This is an early-stage educational Linux KVM virtual machine monitor. Its workflow parses a memory-size option and checks a supplied file path, creates a VM and guest RAM, creates and configures an x86_64 vCPU, copies in hardcoded test instructions, runs until HLT, handles simple serial output, and cleans up. The supplied file is not parsed or loaded as a kernel. The graph reflects the shown runtime calls and README capabilities; the test-bytecode implementation is unsampled, so its connection is documented rather than source-verified.
Main entry points: vmm.c CLI and lifecycle · kvm.c KVM VM lifecycle · vcpu.c x86 vCPU · mem.c Guest RAM mapping
Components 9
VMM control
- CLI and lifecycle
src/vmm.c - VM declarations
include
KVM and memory
- KVM VM lifecycle
src/kvm.c - Guest RAM mapping
src/mem.c
x86 execution
- x86 vCPU
src/arch/x86_64/vcpu.c - Test instructions
src/arch/x86_64/test.c
Other components
- Operator
- Linux KVM
- Terminal output
Connections 10
- Operator → CLI and lifecycle: runs
README.md - CLI and lifecycle → KVM VM lifecycle: creates VM
src/vmm.c - KVM VM lifecycle → Linux KVM: opens and configures
src/kvm.c - KVM VM lifecycle → Guest RAM mapping: sets RAM
src/kvm.c - Guest RAM mapping → Linux KVM: registers RAM
src/mem.c - CLI and lifecycle → x86 vCPU: creates and runs
src/vmm.c - x86 vCPU → Linux KVM: configures and runs
src/arch/x86_64/vcpu.c - CLI and lifecycle → Test instructions: copies instructions
README.md - x86 vCPU → Terminal output: prints serial output
src/arch/x86_64/vcpu.c - CLI and lifecycle → KVM VM lifecycle: destroys VM
src/vmm.c