Repository navigation
feat(runtime)!: separate core snapshots from host effect state - #2121
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merge Queue Status
This pull request spent 3 minutes 4 seconds in the queue, with no time running CI. ReasonPull request #2121 has been dequeued Queue conditions are not satisfied:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Requeued — the merge queue status continues in this comment ↓. |
Core checkpoints now save HDL execution state independently of effects. File I/O, VPI and component handler state stays with the embedding system; taking or restoring a core checkpoint does not ask those handlers to snapshot or restore themselves. Add a replaceable Rust FileSystem boundary with the OS filesystem as its default. The host can separately capture descriptor mappings, EOF/lookahead and opaque backend state, prepare a replacement FileIo handler, and compose it with a core checkpoint. No filesystem storage strategy is imposed on Rust callers. Persist timed core checkpoints in a versioned container, including heap values, live fork activations, lexical cells, event queues and edge baselines. Event IDs are rebound to the receiving instance instead of persisting code pointers. Loading is an unsafe trusted-artifact API with compatibility, layout and corruption checks. Add passive StateFile capture to native instances and VPI sessions, including timed ReadOnly callbacks and celox_vpi_save_state. These diagnostic captures do not settle HDL or dispatch callbacks. Portable StateFile remains distinct from a host-composed system checkpoint. Validation: checkpoint roundtrips on interpreter, native, tiered, Cranelift and WASM; fork-control and file-handler regressions; CLI consumer tests; formatting and clippy. The test coverage includes explicit host/core composition, capture with the default OS handler, failed handler preparation, descriptor reuse and separate-instance restoration. BREAKING CHANGE: SimulatorOptions gains the file_system field. Update explicit options literals or use ..Default::default(). Change-Id: Icc2fc1b000bf2d3742536b5ba735d6332ad109a1
fc5c5cd to
d966c72
Compare
Revision history
|
|
This pull request is part of a Mergify stack:
|
Merge Queue Status
This pull request spent 43 minutes 15 seconds in the queue, including 40 minutes 44 seconds running CI. Required conditions to merge
|
Core checkpoints now save HDL execution state independently of effects. File I/O, VPI and component handler state stays with the embedding system; taking or restoring a core checkpoint does not ask those handlers to snapshot or restore themselves.
Add a replaceable Rust FileSystem boundary with the OS filesystem as its default. The host can separately capture descriptor mappings, EOF/lookahead and opaque backend state, prepare a replacement FileIo handler, and compose it with a core checkpoint. No filesystem storage strategy is imposed on Rust callers.
Persist timed core checkpoints in a versioned container, including heap values, live fork activations, lexical cells, event queues and edge baselines. Event IDs are rebound to the receiving instance instead of persisting code pointers. Loading is an unsafe trusted-artifact API with compatibility, layout and corruption checks.
Add passive StateFile capture to native instances and VPI sessions, including timed ReadOnly callbacks and celox_vpi_save_state. These diagnostic captures do not settle HDL or dispatch callbacks. Portable StateFile remains distinct from a host-composed system checkpoint.
Validation: checkpoint roundtrips on interpreter, native, tiered, Cranelift and WASM; fork-control and file-handler regressions; CLI consumer tests; formatting and clippy. The test coverage includes explicit host/core composition, capture with the default OS handler, failed handler preparation, descriptor reuse and separate-instance restoration.
BREAKING CHANGE: SimulatorOptions gains the file_system field. Update explicit options literals or use ..Default::default().