Repository navigation
feat(relinker): lower MCOMMIT and RDPRU for Intel with execution tests - #2780
Conversation
|
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Thanks for reopening this. It no longer merges cleanly into current main. Could you rebase onto current main? The MCOMMIT/RDPRU lowering part overlaps #2771, which is open for the same instructions, so it would help to split this into separate PRs (symbol index, fuzz test, Intel lowering) and leave the lowering to whichever of the two lands first. We'll review and run full CI on the new heads. |
|
@SuarezPM A correction to our 17 Oct comment: #2771 isn't open. It was closed without merging, so Since then, |
MCOMMIT becomes STC plus NOP padding and RDPRU goes through a runtime-checked stub returning the host TSC for MPERF/APERF while other selectors yield zero, with converter and execution tests. docs/dev/debt/relinker.md records the new lowering and its unverified assumptions.
fcf38be to
bf47697
Compare
|
Rebased to current main as requested 19 Oct, narrowed to just the Intel lowering with its execution tests.
|
What
Narrowed per 19 Oct review: only the Intel lowering with its execution tests, rebased onto current
main(eaa5c9238). The symbol-index and fuzz parts from the previous head are dropped:mainalready covers the hashed export provider map, and the matcher has been restructured since.MCOMMITlowers in place toSTCplus NOP padding via_inPlace, preserving instruction length.RDPRUlowers through an out-of-line stub that frames the red zone with the existingLeaRspBelowRedZone/LeaRspRestorespills and dispatchesECX: selectors 0/1 (AMD APM Vol. 3 MPERF/APERF, unreadable on Intel hosts) return the host TSC as a disclosed monotonic-counter approximation (ratio always 1.0); other selectors yield zeroEDX:EAX.LOCK-prefixedMCOMMIT/RDPRUstayUnsupported. Sequences containing either instruction lower through_emitOutOfLinewith the same wait-state check.docs/dev/debt/relinker.mdreplaces thedoes not lower RDPRU/MCOMMITentry with the lowering description and its unverified assumptions (TSC-for-MPERF/APERF substitution, non-zero selectors, any console path reportingMCOMMITCF=0).Tested
Host: Linux x86-64 (CachyOS), Ryzen 5 3600, RTX 2060 Super. Execution tests ran on this host. Full Linux/Windows builds need the maintainer manual
build.ymlrun for PR 2780.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)