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
| Term | Meaning in FastDyn | Read more |
|---|---|---|
| Guest | The 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 |
| Host | The 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 |
| Rehosting | Executing 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 |
| ISA | Instruction 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 |
| ABI | Application 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 / PC | An 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 |
| TCG | QEMU'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 |
| Supercache | A 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 / scopt | An 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 inlining | In 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 |
| FirmBOLT | The 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 |
| FirmwareCandidate | A 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 instruction | A 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 |
| Modifier | A 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 fragment | A 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 |
| Hook | A 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 preprocessor | Python 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 plugin | A 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 session | A 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
| Term | Meaning in FastDyn | Read more |
|---|---|---|
| MMIO | Memory-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 model | A 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 modeling | A 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 optimization | The 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 passthrough | Forwarding 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 |
| TwinTrace | FastDyn'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 |
| LibVIO | The 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 |
| SVD | CMSIS 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 profile | A 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 |
| FMI | Functional 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 |
| FMU | Functional 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 |
| Plant | The 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
| Term | Meaning in FastDyn | Read more |
|---|---|---|
| Host elapsed time | Real 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 time | QEMU'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 time | The 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 / icount | QEMU 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 slave | A 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 |
| Slice | A 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 step | An 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 |
| Lockstep | Coordinated 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 |
| Swarm | FastDyn'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 |
| Tempo | The companion native co-simulation scheduler and federation compiler, configured through Python or TOML. The reviewed revision executes mock participants. | Tempo |
| Federation | In Tempo, a configured collection of participant instances, typed input/output ports, connections, and scheduling settings, compiled into a native execution plan. | Tempo |
| Microstep | Tempo'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
| Term | Meaning in FastDyn | Read more |
|---|---|---|
| Fuzzing schema | A 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 |
| Coverage | Feedback 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 |
| Snapshot | Captured 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
- Native SDK and architecture contracts
- Offline optimizer contracts and checked host inlining
- FirmBOLT implementation and firmware contracts and FirmwareCandidate artifact
- Automatic MMIO pipeline at a38af40
- Host analysis contracts
- Co-simulation control implementation
- Tempo federation and scheduling interfaces
- FMU runtime preparation
- Schema and snapshot semantics
- Native coverage and state handling