vmem: Add stronger tlb invalidation barrier - #1876
syntactically wants to merge 1 commit into
Conversation
This comment has been minimized.
This comment has been minimized.
9717eee to
e18ba90
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unaligned ranges can leave stale permissions cached, and the new architecture-specific behavior lacks tests.
Review effort: Balanced
Findings: 1
Open (4)
What changed in this PR
Adds a guest paging barrier for invalidating cached translations after permission downgrades.
Changes:
- Exposes
downgrade_in_place. - Uses
invlpgon amd64. - Uses
DSB,TLBI, andISBon AArch64.
| File | Description |
|---|---|
src/hyperlight_guest_bin/src/paging.rs |
Exposes the barrier API. |
src/hyperlight_guest_bin/src/arch/amd64/paging.rs |
Adds amd64 invalidation. |
src/hyperlight_guest_bin/src/arch/aarch64/paging.rs |
Adds AArch64 invalidation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
e18ba90 to
3423312
Compare
Benchmark ResultsMeasured commit: kvm / amd (Linux) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
kvm / intel (Linux) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
mshv3 / amd (Linux) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
mshv3 / intel (Linux) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
hyperv-ws2025 / amd (Windows) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
hyperv-ws2025 / intel (Windows) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
Reported by |



No description provided.