FL4 is a Rust re-implementation of the seL4 17.0 microkernel (MCS API) with first-class SMP and fine-grained locking. See DESIGN.md.
| Path | Contents |
|---|---|
crates/fl4-core |
Kernel logic, safe Rust, extracted to Lean by Charon/Aeneas |
crates/fl4-abi |
ABI numbering generated from interfaces/ and the build configuration |
crates/fl4-kernel |
The x86_64 kernel image (boot, glue) |
crates/fl4-arch-x86_64 |
x86_64 hardware backend |
crates/fl4-kernel-aarch64 |
The AArch64 kernel image (boot, glue) |
crates/fl4-arch-aarch64 |
AArch64 hardware backend |
crates/fl4-efi, fl4-bootinfo |
The AArch64 UEFI loader and its boot protocol |
crates/fl4-sync, fl4-store |
Entry runtime (serial gate, local paths) and object store |
crates/fl4-sim |
Deterministic simulator |
interfaces/ |
The one interface definition (seL4's XML, pruned to FL4's configuration, plus FL4 methods) |
libsel4/ |
FL4's libsel4 |
cmake/ |
Drop-in kernel directory for seL4 CMake projects such as sel4test |
proofs/ |
Lean 4 project: Fl4Core/ is extracted, Fl4Proofs/ holds the proofs |
vendor/seL4 |
Pinned upstream seL4 (submodule) |
Development runs use QEMU. The AMD SEV guest test runs on a confidential VM. Intel TDX support has host tests only.
cargo xtask run [--setup kvm|kvm-reduced|tcg] # boot the standalone kernel
cargo xtask sel4test [--release] [--smp N] [--setup ...]
cargo xtask extract # Charon + Aeneas -> proofs/Fl4Core
cargo xtask extract --arch aarch64 # the AArch64 build -> proofs/Fl4CoreA64
(cd proofs && lake build) # check the proofs
--arch aarch64 selects the AArch64 kernel for run, sel4test,
fl4test and uefi (setups tcg, tcg-gicv3, tcg-el2, tcg-a57,
tcg-acpi, and kvm or hvf on an Arm host), and the AArch64 build of
fl4-core for extract.
Host dependencies live in $FL4_DEPS (default ~/Projects/fl4-deps):
venv/ with sel4-deps, and an aeneas/ checkout with Charon built.
The AArch64 extraction also needs aarch64-unknown-none-softfloat for
Charon's Rust toolchain (rustup target add ... --toolchain <Charon's>).
FL4 supports base AMD Secure Encrypted Virtualization (SEV) and AMD SEV-SNP on x86_64. Kernel and userspace RAM, page tables, boot modules and firmware ACPI data start private. Device MMIO uses shared mappings. The serial banner shows the active technology and C-bit.
SEV-SNP boots at VMPL0 through FL4's x86_64 UEFI loader with firmware-accepted RAM and standard interrupt delivery. The loader requires the base SNP feature set and rejects optional SEV_STATUS bits such as DebugSwap. It uses the firmware's SNP CPUID page, GHCB v2 for virtual device access, and guest-created VMSAs for secondary CPUs when the hypervisor advertises AP creation. Userspace MMIO emulates scalar 8-, 16-, 32- and 64-bit MOV accesses and byte and word MOVZX reads. Use ordinary scalar loads and stores in drivers. The SNP kernel forwards intercepted APIC and timer MSRs. Other intercepted MSRs fail closed, and the benchmark profile's raw MSR syscalls are disabled. Standalone SEV-ES, guest attestation and nested virtualization are outside the supported configuration. AMD GHCB specification
The extra BootInfo record SEL4_BOOTINFO_HEADER_SHARED_DMA tells drivers
that DMA requires shared RAM. Drivers allocate buffers with
seL4_Untyped_RetypeShared(source, size_bits, root, node_index, node_depth, node_offset, num_objects).
The call takes ordinary RAM from the same allocation watermark as
seL4_Untyped_Retype. It creates up to 256 contiguous 4 KiB frames or one
2 MiB frame per call and installs one cap per consecutive empty destination
slot. Zero index and depth address the supplied root CNode directly.
The frames start zeroed, including for uncached access. Copies of a frame cap
share its visibility. seL4_X86_Page_GetAddress returns the GPA to program
into the device. Userspace NVMe example
Shared frames have device-frame restrictions, including exclusion from IPC
buffers and subframe derivation. Stop DMA before revoking the source or
deleting the last frame cap. Final deletion unmaps the frame, flushes the
shared alias, and zeros the private memory before reuse. SNP also changes
the page state in the Reverse Map Table and validates the page before
returning it to private use. On native hardware
drivers use ordinary RAM and the invocation returns seL4_IllegalOperation.
In an SEV guest a device untyped returns seL4_InvalidCapability and an
unsupported frame size returns seL4_InvalidArgument. AMD memory encryption
To build an SNP EFI executable with your own x86_64 root task, use:
cargo xtask kernel
FL4_KERNEL_ELF="$PWD/build/kernel.elf" \
FL4_ROOTSERVER_ELF="/absolute/path/to/rootserver.elf" \
cargo build --release -p fl4-efi --target x86_64-unknown-uefiCopy target/x86_64-unknown-uefi/release/fl4-efi.efi to
/EFI/BOOT/BOOTX64.EFI on the EFI system partition.
Like GRUB, the x86_64 loader passes the display firmware set up to the kernel as the Multiboot 2 framebuffer: the Graphics Output Protocol's current mode when it is 32-bit RGB, and not in SEV or TDX guests.
An x86_64 EFI application can supply its own boot policy through the
fl4-efi library. Use with_firmware for EFI services and pass its
selected kernel and ordered modules to Firmware::boot for the FL4 handoff.
xtask/scripts/sev-smoke-image.sh sev builds build/sev-smoke/fl4-sev.tar.gz
with GRUB. Use xtask/scripts/sev-smoke-image.sh snp to build
build/snp-smoke/fl4-snp.tar.gz with FL4's UEFI loader. Both modes require
the sel4test build dependencies, sgdisk and mtools. SEV also requires GRUB's
x86_64 EFI tools.
Import the SNP archive as a GCE image tagged
UEFI_COMPATIBLE,SEV_SNP_CAPABLE,GVNIC. Boot it as an NVMe boot disk on an
n2d-standard-2 AMD Milan VM in an SNP zone such as us-central1-a, with
--confidential-compute-type=SEV_SNP --maintenance-policy=TERMINATE. For base
SEV, use the SEV archive, the SEV_CAPABLE image tag and
--confidential-compute-type=SEV. The serial log reports the shared-frame
allocation and reuse checks and the NVMe Identify DMA result.
GCE confidential VM configuration
FL4 runs as an Intel TDX guest (an L1 TD, TDX Module 1.5 and GHCI 1.5) on
x86_64 through its UEFI loader, which detects the TD from CPUID leaf 21H and
TDG.VP.INFO. RAM, page tables and boot modules are private. A page-table leaf
for shared memory sets the top bit of the guest physical address width (48 or
52), the mirror image of SEV's C-bit. Device untypeds, RetypeShared and
SEL4_BOOTINFO_HEADER_SHARED_DMA work as they do under SEV. A private to
shared transition zeroes, flushes and shoots down the page around MapGPA; the
way back accepts the page and zeroes it again, whatever the VMM did to it.
The kernel accepts firmware's unaccepted RAM on all cores at boot, starts secondary cores through the ACPI wakeup mailbox, and takes the TSC rate from CPUID leaf 15H. It requires #VE on pending private pages to be off, except in a debug TD. Kernel #VE handles only CPUID, the idle loop's HLT and the x2APIC and timer MSRs, and terminates the guest on anything else. User #VE emulates CPUID and the scalar MMIO accesses listed for SNP, after checking the access against the thread's page tables, never an address the VMM supplies.
Root CNode slot seL4_CapX86TdxControl holds the attestation capability in a
TD, and a null cap otherwise. Hand it to the task that does attestation with
seL4_CNode_Copy or seL4_CNode_Move. It offers
seL4_X86_TdxControl_GetReport (into a private 4 KiB frame),
seL4_X86_TdxControl_ExtendRTMR and seL4_X86_TdxControl_GetQuote (on a
RetypeShared frame). BootInfo records SEL4_BOOTINFO_HEADER_TDX_INFO and
SEL4_BOOTINFO_HEADER_CC_EVENT_LOG give the TD's attributes and its RTMR event
log. Files named by the loader's rootserver= and module= options are
measured into RTMR[2]. Nested virtualization is outside the supported
configuration.
FL4 runs on AArch64 machines with UEFI firmware. Where it runs is decided
at boot (fl4-arch-aarch64 cpu::ElMode): started at EL1, or at EL2 on a
processor with a physical address size below 40 bits, it runs at EL1
without virtualization support; started at EL2 with FEAT_VHE it stays at
EL2 (VHE); started at EL2 without VHE it runs at EL1 and keeps an
identity-mapped EL2 switch stub (nVHE) for guest entry and exit, Stage-2
TLB maintenance and the GICv3 ICH_* registers. In the two EL2 modes user
space can retype ArmVcpu and ArmStage2VSpace objects and run guests;
at EL1 retyping them returns seL4_InvalidArgument. One image serves
every platform: fl4.efi is a UEFI application with the
kernel built in. Its load options name the root task and further boot
modules, and the remaining words are the kernel command line:
fl4.efi rootserver=\EFI\fl4\rootserver module=\EFI\fl4\data.bin
A root task can be built in too (FL4_ROOTSERVER_ELF when building
fl4-efi); seL4 CMake projects for PLATFORM=qemu-arm-virt produce such
an image in place of an elfloader image. The kernel finds the GIC (v2 or
v3), the cores and PSCI conduit, the console UART (PL011, SBSA or 16550)
and the timer in the ACPI tables (MADT, GTDT, SPCR, FADT), or in the
device tree when there is no ACPI, which it also passes to the root task
in BootInfo. Other cores start through PSCI CPU_ON. The MCS timer is the
EL1 virtual timer at the CNTFRQ_EL0 rate; ASIDs are the 16-bit hardware
ASIDs; TLB maintenance is broadcast, with no IPIs; FP/SIMD switching is
lazy. A trapped syscall (seL4_TCBFlag_trapSyscalls) reports x8, the
Linux syscall number, and BootInfo carries the boot core's ID registers
(l4h 0015, 0016, 0018). The hardware debug API is not implemented on
AArch64 (KernelHardwareDebugAPI is off).
The shared kernel modules live in crates/fl4-core/src. Architecture-specific
implementations are grouped by subsystem under src/arch/x86_64 and
src/arch/aarch64. The crate root selects one directory for the build
(default x86_64, or the aarch64 feature). Each implementation contributes
items to the same public modules, preserving the paths used by the backends
and by the proof extractions (proofs/Fl4Core for x86_64,
proofs/Fl4CoreA64 for AArch64). P0 (no failure) covers both builds;
P3 is about the x86_64 build, one serial kernel entry at a time; P1 covers
the x86_64 entries and, on AArch64, the decode step of the capability
invocations in DecArmS1aAll (syscall.decode_invocation.s1aStepR2All, a
sibling of s1aStepR2K over DecArmS1aH; DESIGN.md §9): from the reachable
VSpace record S1aR2, the kernel-table / Untyped separation and the
kernel-table level column S1aHiK it returns all three with the
syscall-level bundle, and the boot witnesses give them at entry. The arms
covered are Null and Zombie caps, Endpoint and Notification sends, Domain,
Untyped, IrqControl, IRQ handler Ack / Clear / Set, CNode Copy / Mint / Move /
Mutate / Rotate / Revoke / Delete / CancelBadgedSends, every TCB label
(SetSpace, SetHighVSpace, SetIPCBuffer, Configure, SetEPTRoot,
SetTimeoutEndpoint, SetSchedParams, SetPriority, SetMCPriority, Suspend,
Resume, ReadRegisters, WriteRegisters, CopyRegisters, SetTLSBase,
SetPACKeys, SetFlags, ReadFPU, WriteFPU, SetTimer, BindNotification and
UnbindNotification; ConfigureSingleStepping and Set / Get / UnsetBreakpoint
share SetEPTRoot's label U64::MAX on AArch64 and decode as it), SchedContext
Unbind / UnbindObject / Consumed / Bind / YieldTo, SchedControl
ConfigureFlags (with two cap well-formedness case facts: the core and the SC
cap's size), the Reply cap (its transfer and timeout fault), every VCPU label, every
Stage-2 (Ept) invocation, Frame Map / Unmap / GetAddress /
TestAndClearAccessed and the four cache operations, PageTable Map / Unmap,
the Pml4, PageDirectory and Pdpt invocations, ASIDPool Assign and
ASIDControl MakePool, direct HighVSpace invocations and every unknown-label
error branch (all rejected), and the IoPortControl, IoPort and
TdxControl caps, which AArch64 rejects. Not covered on AArch64: Frame
DeriveSubframe (FrameOK's exact-size frame objects, which a subframe beside
its source violates; generalising them is a backlog item). The step still
takes entry-layer inputs its post does not return (DelIn, DecPre,
SysPlace, hIq, hSC, mcp, cs, fh, and s1aStepR2All's hScC), so it is not yet an induction
over kernel_entry.
Outside the decode, the time and budget functions, schedule,
activate_thread, vcpu::check, syscall::finish, the fault handlers,
yield, the MCS preemption point, handle_recv, handle_interrupt and
the VCPU completion / VGIC / vPPI events, reply_error and reply_success_empty each have a theorem
from the same inputs to the same post; the entry wrappers around them are
composed at entry level. On the decode arms that keep the heap, a sibling
post also gives the entry facts (S1aStepEnt: HeapOK, BXI, OSOK,
UserOK, VsTy, SysL).
The existing x86_64 P2 theorem is about the transactional runtime that
was removed (DESIGN.md §9). On AArch64, P2 proves serializability for
the serial gate and the local paths that run SMP today
(serializable_fl4_localVXb, over the shared gate model in
proofs/Fl4P2Base): the VM fault, VM ReplyRecv, TCB_SetTimer, the
timer interrupt, the local syscall path, NBWait, the ARMVCPURun exit,
the VM-timer interrupt and arm_vm_entry_ready, from named premises
(DESIGN.md §9). serializable_fl4_localVP extends it to the leaf
page-table entries (KLayoutP / ownP), adding the frame-cap PageMap and
the Delete of a mapped frame cap, under the epoch contract EpochAP,
which is proved at the two boot witnesses w0 and w1 (w0_serial,
w1_serial). The top family is fl4LocPBL (the Delete start checked
only at its own locked slots), with the CDT tree facts of the replayed
history kept along every execution (w0_serial_mdbL, w1_serial_mdbL),
and the runtime itself is tied to it: a hand transcription of fl4-sync's
gate and fl4-store's locks (proofs/Fl4P2Base/GateImpl.lean, in
TRUSTED) refines the gate model step by step, racy reads and the
guest's hardware writes included, so the runtime's executions from w0 /
w1 are serializable (w0_serializable_impl, w1_serializable_impl),
from four memory-model and IPI premises. cargo xtask gate checks the x86_64
extraction; the AArch64 one is extracted and checked on its own
(lake build Fl4ProofsA64). P3 also covers the x86_64 VCPU/EPT
extension on a joint VM state (VmEptState): retype and untyped, the EPT
syscalls through the dispatcher, the VCPU report and detach, the IO-port
cap's owner, revoke and delete, capability delete of every cap
(VmEptState.capDelete), and every CNode invocation (labels 25–32:
Revoke, Delete, CancelBadgedSends, Copy, Mint, Move, Mutate, Rotate) at
that state through FL4's dispatcher (VmEptState.cnodeDecodeAll).
Stage 3 proves one theorem over the nine x86 core entries
(VEAnyX.outerS3): native syscall, VMEnter on VMX and SVM, ordinary
unknown and trapped syscalls, host interrupts, user exceptions, VM
faults, and stalled and unstalled VCPU exits. The syscall case
(VmEptState.kernel_entryS3) covers the native-capability dispatcher
cases, the invocation, receive and yield arms and the finish, which
Stage 2 (VmEptState.kernel_entry) took as premises. Every entry starts
from the joint VM state (VEAnyX) and the premises of that event
(S3Pre), and returns a related extended-spec outcome at VEAnyX. The
post does not re-establish S3Pre, so the next entry must be given it
again, and no run of several entries is proved. Producing the first
VEAnyX state from boot is open. VEAnyX and S3Pre are not vacuous:
a constructed concrete state with a running guest and its VCPU satisfies
both for a syscall invoking a SchedControl cap and for one invoking an
Untyped cap (JBootQ.VWit.witness_schedControl, witness_untyped; the
state is not shown to be reached from boot). At that state a dispatch
pair exists and the invoked cap's core restriction is exercised
(w_core_exercised), and outerS3 applies with every platform argument
instantiated except premises on opaque spec constants (outer_schedControl,
outer_untyped). The premises are listed in
DESIGN.md §9.
The [S] scope is serial core entry after the gate, with one scheduling
domain and the single-core IRQ view. Assembly, hardware guest execution
and the capture of the VCPU image and vector lie at the trusted boundary.
Both fresh host and saved guest interrupt vectors exclude cross-core IPIs
126 and 127. The saved path covers no vector, active and inactive device
lines, and non-IPI vectors above the device range. Native syscall numbers
are −11 through −1 with the trap flag clear. For the capability the
syscall invokes, a SchedControl cap must name the executing core and an
Untyped cap is covered only on core 0. VMEnter (−23) also requires a
clear trap flag, an agreed enabled backend and a bound VCPU. Ordinary
unknown syscalls use UnkSys, exclude debug/TLS calls, and require the
spec to select the ordinary fault case. Software-trap vectors are below
256 and use FL4's zero-extended payload.
FL4 exposes the seL4 VCPU/EPT API and the l4h extensions from patches
0038–0043. One image selects Intel VT-x or AMD-V at boot. On unsupported
CPUs, firmware-disabled virtualization, missing mitigation microcode or
capabilities, or the SKIM path on the boot processor, native boot continues
and retyping VCPU/EPT objects returns seL4_InvalidArgument for the type.
Incompatible enabled application processors or their startup timeouts halt boot
before userspace starts; an already-selected backend is not downgraded during
AP startup. Disabled CPU hotplug slots are not started.
KernelVTX and KernelX86_64VTX64BitGuests are always enabled in the ABI.
Use seL4_X86_ASIDPool_Assign for an EPT root and
seL4_TCB_SetEPTRoot/seL4_X86_VCPU_SetTCB to bind it to a thread.
seL4_VMEnter and the MR layout in sel4/arch/vmenter.h are shared by
both backends. Intel uses ReadVMCS/WriteVMCS; AMD uses
ReadVMCB/WriteVMCB, with byte offsets from the AMD VMCB layout.
Physical pointers, the ASID word (0x058) and the clean bits (0x0c0) read
as 0 and cannot be written: the kernel sets the last two from per-core
state on every entry.
The other backend's field operations return seL4_IllegalOperation.
VCPU objects occupy 32 KiB (seL4_VCPUBits = 15).
Use seL4_VMEnterFull when the VMM needs all 30 guest-state words on a
notification, including one already pending at entry. This wrapper puts
the requested length (30) in the syscall's message-info register. The
ordinary seL4_VMEnter wrapper passes zero and keeps the upstream
three-word notification reply. Both calls work on the same kernel.
In the full reply MR2 holds an unconsumed entry event. MR27 and MR28
report interrupted delivery and its error code. On AMD, stage an entry
exception's error code with WriteVMCB before passing its 32-bit
descriptor in MR2. A signal completes a descheduled full-state caller
immediately if there is no hardware exit pending.
Each VCPU has its own VMCS, in its object's first page, and uses VMRESUME
after its first successful launch on a core. The VMCS keeps the guest's
state between exits: an exit reads only what the exit message and the
kernel need (RIP, RFLAGS, interruptibility, the entry event and the exit
fields), and ReadVMCS/WriteVMCS read any other guest-state field from
the VMCS first. Under a hypervisor without VMCS shadowing for a field each
VMREAD is an exit of its own, so reading the whole image at every exit made
a guest's CPUID take 65 µs on GCE C4 instead of 5 µs under KVM. A per-VCPU
field cache follows both software writes and guest changes read, so entries
write only changed VMCS fields. Before a VCPU runs on another core, and
when it is deleted, its VMCS is cleared (VMCLEAR, by remote call) on the
core that last loaded it. EPT translations survive entries. Nested unmaps and
root/ASID-pool deletion synchronously invalidate every core recorded in
the root before memory can be reused. Recording a core already present in
the root's lifetime bitmap does not write the hardware page table again.
VMX uses no VPID. SVM retains ASID 1 only for the last VCPU/root on each
core. VCPU switches, migration, retype, failed entry, nested invalidation,
explicit TLB flushes and software paging writes force a flush before reuse.
Guest-linear translations can survive SVM entries. A VMM that edits guest
page tables or emulates translation-invalidating operations (such as INVLPG,
INVPCID or a task switch) must call seL4_X86_VCPU_FlushTLB before reentry,
unless a software paging-register write already requested the flush.
VMCB clean bits track both software writes and hardware's exit state.
The host VMLOAD image is refreshed when FS/GS selectors or bases change
(on every entry with the dangerous-MSR API); AMD entry avoids VMX-only
MSR and descriptor-table work. Guest FPU state is the bound TCB's;
XCR0, CR2, syscall MSRs, descriptor-table limits, and host state are
restored on successful and failed entries.
VT-x supports Intel CPUs reporting RDCL_NO (hardware Meltdown immunity);
AMD-V supports Zen 2 and newer. Required security microcode must be installed
by firmware. Enhanced/Automatic IBRS are used when present; older supported
CPUs use software return-stack protection. IBPB runs on kernel entry and VM
exit, including the return to the userspace VMM. Intel additionally uses
legacy IBRS, PBRSB, and BHI protection where needed. Memory-form VERW clears
CPU buffers before guest/user entry and idle on affected CPUs. SMT siblings
are parked on SRSO-affected AMD and MDS/MMIO-affected Intel CPUs; STIBP is
enabled when supported. Missing required protections disable virtualization
on the boot processor with a diagnostic. Nested hosts must expose mitigation
capabilities accurately. See the security policy for
firmware checks, SMT restrictions, and validation limits.
The requirements are checked on each core. VMX event and instruction metadata is copied only where architecturally defined; invalid vector/error fields and undefined instruction bits are zeroed before reaching the VMM.
Virtualization regression tests run real guests and cover field restrictions, CPUID/HLT exits, repeated entry, failed entry, GPRs, notifications, replacement of cached nested mappings, explicit guest TLB invalidation, same-value CR3 writes, cross-core rebinding, migration, revocation, and deletion of a running VCPU:
cargo test -p fl4-core -p fl4-arch-x86_64
FL4_EXPECT_VM=present FL4_TESTS='^FL4VCPU' cargo xtask fl4test --smp 4 --setup kvm
FL4_EXPECT_VM=absent FL4_TESTS='^FL4VCPU' cargo xtask fl4test --smp 2 --setup kvm-no-vm
FL4_EXPECT_VM=present FL4_TESTS='^FL4VCPU' cargo xtask fl4test --smp 2 --setup kvm-no-ibrs
FL4_EXPECT_VM=absent FL4_TESTS='^FL4VCPU' cargo xtask fl4test --smp 2 --setup kvm-no-ibpb
FL4_EXPECT_VM=absent FL4_TESTS='^FL4VCPU' cargo xtask fl4test --smp 2 --setup kvm-no-rdcl
FL4_EXPECT_VM=present FL4_TESTS='^FL4VCPU' cargo xtask fl4test --smp 1 --setup kvm-no-pmu
FL4_P0_STRICT=1 cargo xtask gate
P0 checks totality for every extracted core function. One theorem has a
precondition (listed under preconditions in status.json): the
FrameBatch loop vspace.decode_frame_batch_loop is total for entries of at
most 3 words and at most 255 entries, which its only caller
vspace.decode_frame_batch guarantees and its P0 theorem discharges. For guest memory,
guest_pte_roundtrip proves that constructing a 4 KiB, 2 MiB or 1 GiB
leaf, extracting its address and removing the visibility bits recovers the
frame's aligned GPA. The store laws admit private and shared address masks.
The native l4v page and untyped refinements assume plain frame addresses.
The x86 proofs refine VMEnter, SetEPTRoot, EPT mapping, guest-root ASID
assignment, and VCPU operations against FL4's extended specification.
SEV memory sharing is outside the native l4v refinement scope. The
entry/exit assembly, hardware guest execution, and the architecture
backend are trusted. See DESIGN.md §9 for the exact claims.
Real-guest execution passes on AMD-V under QEMU/KVM, including SMP,
release, reduced-feature and no-PMU configurations. The retained Intel
VMCS path has stateful host tests and a two-core Bochs 3.0 VMX run covering
repeated and failed entry, mapping replacement, migration, revocation and
deletion. That emulator run enabled guest IF for the timer and loop tests:
the IF-clear timer test also hangs with the original backend in Bochs.
The RSB/PBRSB/BHB sequences have a host assembly regression checking register
and stack restoration and a linked-kernel instruction-order check. The Bochs
run predates the current mitigation policy. The available AMD runner lacks
TSA microcode: positive guest tests use an explicitly labelled QEMU
VERW_CLEAR capability fixture, while the unmodified capability set correctly
disables virtualization. These runs validate control flow, not hardware TSA
protection. See the security policy for reproduction commands.
Intel validation of the per-VCPU VMCS path: L4H HVM guests on GCE C4 (nested under Google's KVM); bare-metal Intel remains outstanding.
VMX performance-MSR switching is enabled only when CPUID exposes a suitable
PMU; a PMU-present Intel hardware runtime has not been tested.