Repository navigation
refactor(vpi)!: own runtime state in an explicit VPI session - #1532
Merged
mergify[bot] merged 1 commit intoOct 19, 2026
Conversation
This was referenced Oct 19, 2026
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. |
This was referenced Oct 19, 2026
Contributor
Author
|
This pull request is part of a Mergify stack:
|
tignear
force-pushed
the
stack/tignear/fix/sv-conformance-gaps/own-runtime-state-explicit-vpi-session--64b5892d
branch
from
October 19, 2026 06:42
5678bad to
9f55e70
Compare
tignear
force-pushed
the
stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc
branch
from
October 19, 2026 06:42
fcd71e8 to
4aa94ef
Compare
Contributor
Author
Revision history
|
tignear
force-pushed
the
stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc
branch
from
October 19, 2026 07:08
4aa94ef to
23b440b
Compare
tignear
force-pushed
the
stack/tignear/fix/sv-conformance-gaps/own-runtime-state-explicit-vpi-session--64b5892d
branch
2 times, most recently
from
October 19, 2026 07:35
f99483e to
c6c1fcf
Compare
tignear
force-pushed
the
stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc
branch
from
October 19, 2026 07:35
23b440b to
a6397b5
Compare
Move runtime, forced values, pending writes, callback state and vlog storage out of thread-local variables into VpiHost owned by VpiSession. The context-free standard C ABI selects one process host under a synchronized registry and checks thread ownership before accessing it. No registry lock is held across callbacks. Retain the host during callback dispatch and defer teardown until dispatch ends. Reject nested hosts and nested dispatch, clean up on unwind, and reject unbound pointer-producing calls before allocation. The C loader has an explicit celox_vpi_clear_runtime lifecycle boundary. BREAKING CHANGE: install_runtime returns Result<VpiSession, String>. Rust callers must retain the session guard while using VPI; simultaneous process hosts are rejected instead of being separated implicitly by thread-local storage. Validation: backend and VPI all-target Clippy pass; 35 VPI regressions, CLI and compilation tests, scheduler unwind regression and cocotb end-to-end test pass. Change-Id: I64b5892dd5f7379d7b84c93ce21840573732a447
tignear
force-pushed
the
stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc
branch
from
October 19, 2026 08:35
a6397b5 to
87c8f5e
Compare
tignear
force-pushed
the
stack/tignear/fix/sv-conformance-gaps/own-runtime-state-explicit-vpi-session--64b5892d
branch
from
October 19, 2026 08:35
c6c1fcf to
4a0c90a
Compare
Contributor
Merge Queue Status
This pull request spent 3 hours 33 minutes 49 seconds in the queue, including 4 hours 50 minutes 42 seconds running CI. Required conditions to merge
|
This was referenced Oct 19, 2026
Base automatically changed from
stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc
to
master
October 19, 2026 13:37
mergify
Bot
deleted the
stack/tignear/fix/sv-conformance-gaps/own-runtime-state-explicit-vpi-session--64b5892d
branch
October 19, 2026 13:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move runtime, forced values, pending writes, callback state and vlog storage out
of thread-local variables into VpiHost owned by VpiSession. The context-free
standard C ABI selects one process host under a synchronized registry and checks
thread ownership before accessing it. No registry lock is held across callbacks.
Retain the host during callback dispatch and defer teardown until dispatch ends.
Reject nested hosts and nested dispatch, clean up on unwind, and reject unbound
pointer-producing calls before allocation. The C loader has an explicit
celox_vpi_clear_runtime lifecycle boundary.
BREAKING CHANGE: install_runtime returns Result<VpiSession, String>. Rust callers
must retain the session guard while using VPI; simultaneous process hosts are
rejected instead of being separated implicitly by thread-local storage.
Validation: backend and VPI all-target Clippy pass; 35 VPI regressions, CLI and
compilation tests, scheduler unwind regression and cocotb end-to-end test pass.
Depends-On: #1531