Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Skip to content
BoardRunner

Glossary

The terms below distinguish the firmware being executed, the tools preparing its environment, and the native code that implements the experiment. A capability can belong to the general framework while a particular adapter still has an architecture or firmware-specific contract.

Execution and instrumentation

TermMeaning in FastDynRead more
GuestThe emulated target CPU, firmware, memory, and visible devices. A guest register or address belongs to this target, not to the machine running FastDyn.System model
HostThe real machine and software running Python preparation, QEMU, native plugins, model libraries, and optional helpers. Host-side analysis is separate from guest execution.Execution pipeline
RehostingExecuting a firmware image in a reconstructed environment that supplies the CPU, memory, device behavior, and other dependencies required by the selected workload. Booting is one milestone, not a complete validation criterion.Choose a workflow
ISAInstruction set architecture: the instruction encodings and architectural behavior expected by a firmware. CPU mode and enabled extensions also matter; an architecture family name alone may not determine decoding.Portability
ABIApplication binary interface: conventions for arguments, return values, stack use, data layout, and related boundaries. A callback replacing a function must honor the target's ABI. FastDyn's x86-64 convenience macros use System V AMD64, not Windows x64.Virtual plugins
Guest address / PCAn address in the target's address space; the program counter identifies execution position. Numeric trigger PCs are tied to an image and load layout. Some architectures also encode execution mode in function-pointer representations.Virtuals and modifiers
Translation block (TB)QEMU's unit of translated guest code. TB formation depends on translator constraints and runtime state; a TB is not guaranteed to match one source-level basic block.Execution pipeline
TCGQEMU's Tiny Code Generator, which uses an intermediate representation to generate host code for guest execution. FastDyn's translation hooks and supported modifiers interact with this path.Execution pipeline
SupercacheA separately versioned QEMU backend facility for persisting and reusing translated code. Backend compatibility, cache identity, and supported execution modes are part of its setup contract.Supercache
Supercache optimizer / scoptAn offline tool on the FastDyn scopt branch that imports captured host translations and metadata, applies selected passes, and validates separate output artifacts against the recorded runtime and experiment.Supercache optimizer
Native host inliningIn scopt, replacing an admitted host call with a checked native fragment inside the saved translation. The implementation checks the callee's bytes, runtime binding, effects, and emitted correspondence before accepting the candidate.Supercache optimizer
FirmBOLTThe separately pinned firmbolt branch's extended BOLT pipeline and firmware acceptance layer. It rewrites eligible firmware instructions, including a direct Cortex-M/Thumb path, and checks references, origins, layout, and the selected observation contract before publication.FirmBOLT
FirmwareCandidateA versioned artifact containing an exact firmware image, target description, memory/layout evidence, origin map, and optimization report. Consumer-specific hook rebinding and execution validation are separate steps.FirmBOLT
Virtual instructionA named FastDyn runtime action triggered at a guest PC, usually implemented as a callback. It does not mean a new opcode was written into the firmware image.Virtuals and modifiers
ModifierA configured state operation associated with a guest PC, such as a register update or supported memory operation. The supported forms are lowered through the patched translation machinery; the original firmware bytes remain unchanged.Virtuals and modifiers
JIT patcher / guest instruction fragmentA native SDK facility that registers bounded, admitted guest instruction bytes before an original PC. The target frontend translates them without placing the bytes in the firmware image or relocating its instructions.JIT patcher
HookA selected event or execution point where instrumentation takes effect. PC callbacks, interrupt entry/exit observers, and translation hooks are different hook types with different contexts.Virtual plugins
Host preprocessorPython code that runs during preparation to resolve symbols, select instrumentation, generate rules, and write runtime input artifacts. It is not invoked for every guest instruction.Host analysis
Runtime pluginA native extension using FastDyn's runtime SDK inside the QEMU process. It can register callbacks and observers and access its artifacts. This differs from the top-level libfastdyn.so QEMU plugin that hosts the extensions.Plugin catalog
Host analysis sessionA lazy, scoped source of reusable facts about an immutable firmware image: image data, symbols, DWARF, and supported decoding. Plugins retain ownership of selection policy and instrumentation plans.Host analysis

Devices and physical models

TermMeaning in FastDynRead more
MMIOMemory-mapped input/output: accesses to guest addresses whose meaning is supplied by a device rather than ordinary RAM. Reads and writes may have side effects such as consuming data, clearing status, or starting DMA.Device models
Device modelA runtime implementation of a device's observable behavior, including registers, transactions, state transitions, and interrupts as required by the experiment. A physical transfer function supplies only part of this behavior.Writing a model
Inline device modelingA translated device operation at a selected firmware PC using host backing state. The legacy manual finline path uses a separate buffer and requires explicit handling of the original instruction.Inline device modeling
Automatic MMIO optimizationThe experimental mmio_opt pipeline introduced at a38af40: model-operation extraction, shared firmware access discovery, binding to initialized elder state, and guarded load replacement. Its analyzer and runtime have documented correctness limits.Automatic MMIO
Hardware passthroughForwarding selected peripheral interactions to a real board through libhw and a probe. The real peripheral contributes behavior while firmware execution remains in QEMU.Hardware and traces
TwinTraceFastDyn's hardware-trace recording and replay machinery. Replay follows the recorded interaction contract; it does not create an unrestricted generative model of the device.Hardware and traces
LibVIOThe companion library providing reusable bus, signal, DMA, and host-I/O mechanisms for C device models. Device-specific register semantics still belong to the model.Writing a model
SVDCMSIS System View Description data used for device/register and interrupt metadata. Selecting an SVD platform does not automatically implement that platform's peripherals.Configuration
Firmware profileA concrete configuration and associated hooks or adapters for a particular firmware, version, and execution path. Courbet vehicle profiles contain this firmware-specific knowledge.Flight controllers
FMIFunctional Mock-up Interface, the interface through which a model is instantiated, receives inputs, advances, and supplies outputs. The maintained FastDyn path uses FMI 3 Co-Simulation.Physics and FMU
FMUFunctional Mock-up Unit: the model artifact, commonly packaged with modelDescription.xml, executable binaries or sources, and resources. FastDyn's current backend loads the compiled model into the QEMU process.Physics and FMU
PlantThe physical system modeled around the controller, such as a motor, vehicle, circuit, or thermal process. Firmware produces actuation inputs; the plant produces states or observations delivered back through an adapter.World models

Time and orchestration

TermMeaning in FastDynRead more
Host elapsed timeReal elapsed duration on the computer executing the experiment. It includes the work being measured and can be affected by scheduling, logging, and other host load. It is distinct from simulated time.Performance
Guest virtual timeQEMU's simulation clock, exposed by FastDyn in nanoseconds. How it advances depends on the configured timing mode; it is not automatically a cycle-accurate MCU clock.Multiple firmwares
Plant timeThe time to which a physical model has been advanced. The integration policy aligns plant progress with guest time; the FMI boundary may express times in seconds while FastDyn scheduling uses nanoseconds.Physics and FMU
Instruction count / icountQEMU icount relates instruction progress to virtual time. It is separate from FastDyn's virtual_icount() counter, whose current wiring depends on twintrace. Neither establishes real hardware instruction latency.Configuration
Secondary simulator / co-simulation slaveA FastDyn guest whose execution is paced by an external controller through QMP time grants. The shipped client is BudgetMaster; state exchange and physical-model ownership remain explicit parts of the experiment.Secondary execution
SliceA bounded interval of virtual execution granted to a secondary by its controller. Completion is established by a stop event and observed time; the stopping mode and instruction-time granularity determine the reached boundary.Secondary execution
Physics stepAn advancement interval used by the physical model or its integration loop. It is separate from a TB and from a controller's execution slice, even when the experiment coordinates these intervals.World models
LockstepCoordinated advancement in which participants exchange required inputs or results at defined synchronization boundaries. Synchronizing clocks alone does not define the data connections between participants.Multiple firmwares
SwarmFastDyn's orchestration of isolated copies of a configuration with distinct worker resources. It scales independent experiments; cross-worker device or physical connections must be defined separately.CLI reference
TempoThe companion native co-simulation scheduler and federation compiler, configured through Python or TOML. The reviewed revision executes mock participants.Tempo
FederationIn Tempo, a configured collection of participant instances, typed input/output ports, connections, and scheduling settings, compiled into a native execution plan.Tempo
MicrostepTempo's ordering index for activity at one physical timestamp. A tag combines time and microstep so same-time work can be processed in a defined order subject to the configured iteration bound.Tempo

Analysis and testing

TermMeaning in FastDynRead more
Fuzzing schemaA JSON description of input fields, incremental streams, injection hooks, and optional snapshot/synchronization flow. The schema describes a chosen harness; it does not prove its state assumptions are valid.Fuzzing
CoverageFeedback recording executed regions or transitions, such as translated-block PCs and cumulative edges. It helps compare exploration but does not establish correctness, physical feasibility, or a lossless instruction trace.Fuzzing
SnapshotCaptured guest state used to repeat an execution boundary. The current native fuzzing implementation has ARM-oriented register and memory contracts. Rewinding it does not automatically rewind arbitrary host services, physical boards, or external model state.Fuzzing

Source guide